|
1 | | -exit |
2 | | -# fzf.fish is only meant to be used in interactive mode. If not in interactive mode and not in CI, skip the config to speed up shell startup |
3 | | -if not status is-interactive && test "$CI" != true && not functions -q fzf_configure_bindings |
4 | | - echo fzf.fish is only meant to be used in interactive mode. If not in interactive mode and not in CI, skip the config to speed up shell startup |
5 | | - exit |
6 | | -end |
7 | | - |
8 | 1 | if not type -q fzf |
9 | 2 | echo "fzf not found in PATH. Please install fzf via your package manager or from" |
10 | 3 | exit |
11 | 4 | end |
12 | 5 |
|
13 | | -# --- fzf integration --- |
14 | | -#if test -f ~/.fzf.fish |
15 | | -# source ~/.fzf.fish |
16 | | -#else if type -q fzf |
17 | | -# fzf --fish | source |
18 | | -#end |
19 | | - |
20 | | -# Because of scoping rules, to capture the shell variables exactly as they are, we must read |
21 | | -# them before even executing _fzf_search_variables. We use psub to store the |
22 | | -# variables' info in temporary files and pass in the filenames as arguments. |
23 | | -# This variable is global so that it can be referenced by fzf_configure_bindings and in tests |
24 | | -set --global _fzf_search_vars_command '_fzf_search_variables (set --show | psub) (set --names | psub)' |
25 | | - |
26 | | -#fzf_configure_bindings #--directory=\cf --git_log=\cl --git_status=\cs |
27 | | - |
28 | | -# Doesn't erase autoloaded _fzf_* functions because they are not easily accessible once key bindings are erased |
29 | | -function _fzf_uninstall --on-event fzf_uninstall |
30 | | - _fzf_uninstall_bindings |
31 | | - |
32 | | - set --erase _fzf_search_vars_command |
33 | | - functions --erase _fzf_uninstall _fzf_migration_message _fzf_uninstall_bindings fzf_configure_bindings |
34 | | - complete --erase fzf_configure_bindings |
35 | | - |
36 | | - set_color cyan |
37 | | - echo "fzf.fish uninstalled." |
38 | | - echo "You may need to manually remove fzf_configure_bindings from your config.fish if you were using custom key bindings." |
39 | | - set_color normal |
40 | | -end |
41 | | - |
42 | | -# Preview for zoxide completions |
43 | | -set -Ux fzf_preview_z_cmd eza --all --color=always |
44 | | -set -Ux fzf_preview_dir_cmd eza --all --color=always |
45 | | - |
46 | | -set -Ux fzf_history_opts --height 40% \ |
47 | | - --border="rounded" \ |
48 | | - --border-label="" \ |
49 | | - --prompt=" ❯ " \ |
50 | | - --marker="*" \ |
51 | | - --pointer="→" \ |
52 | | - --separator="─" \ |
53 | | - --scrollbar="│" \ |
54 | | - --layout="reverse" \ |
55 | | - --info="right" \ |
56 | | - --cycle \ |
57 | | - --keep-right \ |
58 | | - --info=inline \ |
59 | | - --bind=btab:up,tab:down \ |
60 | | - --tabstop=1 |
61 | | - |
62 | | -set -x FZF_COLOR_OPTS "--color=fg:#f8f8f2,bg:#282a36,hl:#bd93f9 --color=fg+:#f8f8f2,bg+:#44475a,hl+:#bd93f9 --color=info:#ffb86c,prompt:#50fa7b,pointer:#ff79c6 --color=marker:#ff79c6,spinner:#ffb86c,header:#6272a4" |
63 | | -set -x FZF_OPTS '--height 40% --border="rounded" --border-label="" --preview-window="border-rounded" --prompt=" ❯ " --marker="*" --pointer="→" --separator="─" --scrollbar="│" --layout="reverse" --info="right" --cycle --keep-right --info=inline --bind=btab:up,tab:down --tabstop=1' |
64 | | -set -x FZF_DEFAULT_OPTS "$FZF_COLOR_OPTS $FZF_OPTS" |
| 6 | +set -x FZF_DEFAULT_OPTS '--height 40% --border="rounded" --border-label="" --preview-window="border-rounded" --prompt=" ❯ " --marker="*" --pointer="→" --separator="─" --scrollbar="│" --layout="reverse" --info="right" --cycle --keep-right --info=inline --bind=btab:up,tab:down --tabstop=1' |
0 commit comments