diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -125,12 +125,12 @@ function fore(){ #search any folder like you're in nvalt: function nv() { - ${EDITOR:-vim} "$(find ${2:-~/notes} -maxdepth ${3:-1} -type f -print0 | xargs -0 grep -li $1 | fzf --preview="bat {}" --preview-window=right:70%:wrap)"; + ${EDITOR:-vim} "$(find ${2:-~/Notes} -maxdepth ${3:-1} -type f -print0 | xargs -0 grep -li $1 | fzf --preview="bat {}" --preview-window=right:70%:wrap)"; } #search any folder like you're in nvalt but have ripgrep at your disposal function fn() { - ${EDITOR:-vim} "$(rg -l $1 ${2:-~/notes} | fzf --preview="bat {}" --preview-window=right:70%:wrap)"; + ${EDITOR:-vim} "$(rg -l $1 ${2:-~/Notes} | fzf --preview="bat {}" --preview-window=right:70%:wrap)"; } # same thing, but context function nvl(){ @@ -139,10 +139,10 @@ function nvl(){ #find in "notes" which might be in any of half a dozen folders function fntt(){ - find ~/notes ~/documents/bookmarks ~/documents/reading\ notes -type f -maxdepth 2 -print0 | xargs -0 grep -$2i $1 + find ~/Notes ~/Documents/bookmarks ~/Documents/reading\ notes -type f -maxdepth 2 -print0 | xargs -0 grep -$2i $1 } function fnt(){ - ${EDITOR:-vim} "$(rg -l $1 ~/notes/ ~/documents/bookmarks/ ~/documents/reading\ notes/ ~/lux/ | fzf --preview="bat {}" --preview-window=right:70%:wrap)"; + ${EDITOR:-vim} "$(rg -l $1 ~/Notes/ ~/Documents/bookmarks/ ~/Documents/reading\ Notes/ ~/lux/ | fzf --preview="bat {}" --preview-window=right:70%:wrap)"; } #fuzzy find function f() { |