aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorAlec Goncharow <alec@goncharow.dev>2025-04-20 15:46:33 -0400
committerAlec Goncharow <alec@goncharow.dev>2025-05-28 16:36:25 -0400
commit895de7bb2bf3381a6f796df93e0c25e8d4b0ff8b (patch)
tree805e2237bb8c75c8497d13f9d4622682b08afcec /functions
parent143847c01930c4e7e0283c019002a95193175557 (diff)
maybe useful
idk
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/fzf.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/functions/fzf.sh b/functions/fzf.sh
index 8761247..e806da1 100755
--- a/functions/fzf.sh
+++ b/functions/fzf.sh
@@ -7,11 +7,12 @@ function frg {
--delimiter ':' \
--preview "bat --color=always {1} --theme='gruvbox-dark' --highlight-line {2}" \
--preview-window 'up,60%,border-bottom,+{2}+3/3,~3')
- file=${result%%:*}
- linenumber=$(echo "${result}" | cut -d: -f2)
- if [[ -n "$file" ]]; then
- nvim +"${linenumber}" "$file"
- fi
+
+ file=${result%%:*}
+ linenumber=$(echo "${result}" | cut -d: -f2)
+ if [[ -n "$file" ]]; then
+ nvim +"${linenumber}" "$file"
+ fi
}
alias rgf=frg