changeset 588:7f2a18dd6b8f

Clean up unused zsh function
author zegervdv <zegervdv@me.com>
date Sat, 16 Apr 2022 17:59:38 +0200
parents 77280c499124
children 6bb59cb7cdd4
files dot_zshrc
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/dot_zshrc	Thu Apr 14 22:14:57 2022 +0200
+++ b/dot_zshrc	Sat Apr 16 17:59:38 2022 +0200
@@ -212,21 +212,6 @@
 export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc
 export BAT_CONFIG_PATH=$HOME/.config/bat/config
 
-# # source: https://gist.github.com/gnanderson/d74079d16714bb8b2822a7a07cc883d4
-function fif() {
-  rg \
-  --column \
-  --no-heading \
-  --fixed-strings \
-  --ignore-case \
-  --hidden \
-  --follow \
-  --glob '!.git/*' "$1" \
-  | awk -F  ":" '/1/ {start = $2<5 ? 0 : $2 - 5; end = $2 + 5; print $1 " " $2 " " start ":" end " " $3}' \
-  | fzf --preview 'bat --wrap character --color always {1} --highlight-line {2} --line-range {3}' \
-        --bind 'ctrl-o:execute(nvim {1}:{2}:{4})+cancel'
-}
-
 [ -f ~/.zshrc.local ] && source ~/.zshrc.local
 
 # Must run after brew is loaded