summaryrefslogtreecommitdiff
path: root/.config/fish/functions/_fzf_wrapper.fish
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-09-14 23:53:11 -0400
committerMica White <botahamec@outlook.com>2026-09-14 23:53:11 -0400
commita248cc5aa23bbb4e6aa00cb3e5904142234512ff (patch)
treea096895b9a2cd75136cd9c23529a815a8bea6bcd /.config/fish/functions/_fzf_wrapper.fish
parent9b3ac1442aabcacbf8323badb0126f0a03790b9f (diff)
Cleanup
Diffstat (limited to '.config/fish/functions/_fzf_wrapper.fish')
-rw-r--r--.config/fish/functions/_fzf_wrapper.fish21
1 files changed, 0 insertions, 21 deletions
diff --git a/.config/fish/functions/_fzf_wrapper.fish b/.config/fish/functions/_fzf_wrapper.fish
deleted file mode 100644
index 486e36c..0000000
--- a/.config/fish/functions/_fzf_wrapper.fish
+++ /dev/null
@@ -1,21 +0,0 @@
-function _fzf_wrapper --description "Prepares some environment variables before executing fzf."
- # Make sure fzf uses fish to execute preview commands, some of which
- # are autoloaded fish functions so don't exist in other shells.
- # Use --function so that it doesn't clobber SHELL outside this function.
- set -f --export SHELL (command --search fish)
-
- # If neither FZF_DEFAULT_OPTS nor FZF_DEFAULT_OPTS_FILE are set, then set some sane defaults.
- # See https://github.com/junegunn/fzf#environment-variables
- set --query FZF_DEFAULT_OPTS FZF_DEFAULT_OPTS_FILE
- if test $status -eq 2
- # cycle allows jumping between the first and last results, making scrolling faster
- # layout=reverse lists results top to bottom, mimicking the familiar layouts of git log, history, and env
- # border shows where the fzf window begins and ends
- # height=90% leaves space to see the current command and some scrollback, maintaining context of work
- # preview-window=wrap wraps long lines in the preview window, making reading easier
- # marker=* makes the multi-select marker more distinguishable from the pointer (since both default to >)
- set --export FZF_DEFAULT_OPTS '--cycle --layout=reverse --border --height=90% --preview-window=wrap --marker="*"'
- end
-
- fzf $argv
-end