commit da3cdddce76875e11a0a124d25929d8505f35198
parent 316ca622881d6230556bf20d61760c972f388e93
Author: Anton Konyahin <me@konyahin.xyz>
Date: Fri, 10 Feb 2023 16:17:00 +0300
sh: view notes and add preview in fzf
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/sh/.config/ksh/kshrc b/sh/.config/ksh/kshrc
@@ -36,9 +36,11 @@ alias evim="$EDITOR $MYVIMRC"
alias enb='$EDITOR ~/.newsboat/config'
alias enbu='$EDITOR ~/.newsboat/urls'
+export FZF_DEFAULT_OPTS="--preview='bat {}'"
alias ef='$EDITOR $(find . | fzf)'
alias et='$EDITOR -t $(cat tags | awk "{print \$1}" | fzf)'
alias en='$EDITOR "$(find ~/data/notes -type f | fzf)"'
+alias vn='v "$(find ~/data/notes -type f | fzf)"'
alias es='$EDITOR "$(find ~/dotfiles -type f ! -path "*.git/*" | fzf)"'
me () {