updated fisher again

This commit is contained in:
William Ball 2026-03-29 00:54:21 -04:00
parent 2b1ca4fd03
commit 95c606c43c
Signed by: wball
SSH key fingerprint: SHA256:3K3IvjUp1U5HwsIRYy/vosnG8l/A84LPUSAKQ6oCGKI
2 changed files with 5 additions and 4 deletions

View file

@ -18,7 +18,8 @@ DESCRIPTION
Search Processes | Ctrl+Alt+P (P for process) | --processes Search Processes | Ctrl+Alt+P (P for process) | --processes
Search Variables | Ctrl+V (V for variable) | --variables Search Variables | Ctrl+V (V for variable) | --variables
Override a command's binding by specifying its corresponding option with the desired key Override a command's binding by specifying its corresponding option with the desired key
sequence. Disable a command's binding by specifying its corresponding option with no value. sequence using fish's key name syntax (e.g. ctrl-f, ctrl-alt-v). Disable a command's binding
by specifying its corresponding option with no value.
Because fzf_configure_bindings erases bindings it previously installed, it can be cleanly Because fzf_configure_bindings erases bindings it previously installed, it can be cleanly
executed multiple times. Once the desired fzf_configure_bindings command has been found, add it executed multiple times. Once the desired fzf_configure_bindings command has been found, add it
@ -31,11 +32,11 @@ DESCRIPTION
EXAMPLES EXAMPLES
Default bindings but bind Search Directory to Ctrl+F and Search Variables to Ctrl+Alt+V Default bindings but bind Search Directory to Ctrl+F and Search Variables to Ctrl+Alt+V
\$ fzf_configure_bindings --directory=\cf --variables=\e\cv \$ fzf_configure_bindings --directory=ctrl-f --variables=ctrl-alt-v
Default bindings but disable Search History Default bindings but disable Search History
\$ fzf_configure_bindings --history= \$ fzf_configure_bindings --history=
An agglomeration of different options An agglomeration of different options
\$ fzf_configure_bindings --git_status=\cg --history=\ch --variables= --processes= \$ fzf_configure_bindings --git_status=ctrl-g --history=ctrl-h --variables= --processes=
SEE Also SEE Also
To learn more about fish key bindings, see bind(1) and fish_key_reader(1). To learn more about fish key bindings, see bind(1) and fish_key_reader(1).

View file

@ -16,7 +16,7 @@ function fzf_configure_bindings --description "Installs the default key bindings
else else
# Initialize with default key sequences and then override or disable them based on flags # Initialize with default key sequences and then override or disable them based on flags
# index 1 = directory, 2 = git_log, 3 = git_status, 4 = history, 5 = processes, 6 = variables # index 1 = directory, 2 = git_log, 3 = git_status, 4 = history, 5 = processes, 6 = variables
set -f key_sequences \e\cf \e\cl \e\cs \cr \e\cp \cv # \c = control, \e = escape set -f key_sequences ctrl-alt-f ctrl-alt-l ctrl-alt-s ctrl-r ctrl-alt-p ctrl-v
set --query _flag_directory && set key_sequences[1] "$_flag_directory" set --query _flag_directory && set key_sequences[1] "$_flag_directory"
set --query _flag_git_log && set key_sequences[2] "$_flag_git_log" set --query _flag_git_log && set key_sequences[2] "$_flag_git_log"
set --query _flag_git_status && set key_sequences[3] "$_flag_git_status" set --query _flag_git_status && set key_sequences[3] "$_flag_git_status"