deleted: .config/apps-list.md modified: .config/btop/btop.conf deleted: .config/config.kdl new file: .config/fish/completions/fisher.fish new file: .config/fish/completions/fzf_configure_bindings.fish new file: .config/fish/conf.d/fzf.fish new file: .config/fish/fish_plugins modified: .config/fish/fish_variables new file: .config/fish/functions/_fzf_configure_bindings_help.fish new file: .config/fish/functions/_fzf_extract_var_info.fish new file: .config/fish/functions/_fzf_preview_changed_file.fish new file: .config/fish/functions/_fzf_preview_file.fish new file: .config/fish/functions/_fzf_report_diff_type.fish new file: .config/fish/functions/_fzf_report_file_type.fish new file: .config/fish/functions/_fzf_search_directory.fish new file: .config/fish/functions/_fzf_search_git_log.fish new file: .config/fish/functions/_fzf_search_git_status.fish new file: .config/fish/functions/_fzf_search_history.fish new file: .config/fish/functions/_fzf_search_processes.fish new file: .config/fish/functions/_fzf_search_variables.fish new file: .config/fish/functions/_fzf_wrapper.fish new file: .config/fish/functions/fisher.fish new file: .config/fish/functions/fzf_configure_bindings.fish new file: .config/fish/functions/y.fish new file: .config/fish/functions/yz.fish new file: ".config/fish/functions/\320\275\321\217.fish" modified: .config/kitty/kitty.conf modified: .config/niri/config.kdl modified: .config/nvim/lazy-lock.json new file: .config/nvim/lua/plugins/luasnip.lua new file: .config/nvim/lua/plugins/markview.lua new file: .config/nvim/lua/plugins/marp-nvim.lua new file: .config/nvim/lua/plugins/nvim-snippy.lua new file: .config/nvim/lua/plugins/render-markdown.lua deleted: .config/nwg-look/config deleted: .config/zathura/zathurarc modified: apps-list.md new file: background renamed: .config/mimeapps.list -> mimeapps.list renamed: .config/pavucontrol.ini -> pavucontrol.ini deleted: sing-box-03.json renamed: .config/user-dirs.dirs -> user-dirs.dirs renamed: .config/user-dirs.locale -> user-dirs.locale
43 lines
2.3 KiB
Fish
43 lines
2.3 KiB
Fish
function _fzf_configure_bindings_help --description "Prints the help message for fzf_configure_bindings."
|
|
echo "\
|
|
USAGE:
|
|
fzf_configure_bindings [--COMMAND=[KEY_SEQUENCE]...]
|
|
|
|
DESCRIPTION
|
|
fzf_configure_bindings installs key bindings for fzf.fish's commands and erases any bindings it
|
|
previously installed. It installs bindings for both default and insert modes. fzf.fish executes
|
|
it without options on fish startup to install the out-of-the-box key bindings.
|
|
|
|
By default, commands are bound to a mnemonic key sequence, shown below. Each command's binding
|
|
can be configured using a namesake corresponding option:
|
|
COMMAND | DEFAULT KEY SEQUENCE | CORRESPONDING OPTION
|
|
Search Directory | Ctrl+Alt+F (F for file) | --directory
|
|
Search Git Log | Ctrl+Alt+L (L for log) | --git_log
|
|
Search Git Status | Ctrl+Alt+S (S for status) | --git_status
|
|
Search History | Ctrl+R (R for reverse) | --history
|
|
Search Processes | Ctrl+Alt+P (P for process) | --processes
|
|
Search Variables | Ctrl+V (V for variable) | --variables
|
|
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.
|
|
|
|
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
|
|
to your config.fish in order to persist the customized bindings.
|
|
|
|
In terms of validation, fzf_configure_bindings fails if passed unknown options. It expects an
|
|
equals sign between an option's name and value. However, it does not validate key sequences.
|
|
|
|
Pass -h or --help to print this help message and exit.
|
|
|
|
EXAMPLES
|
|
Default bindings but bind Search Directory to Ctrl+F and Search Variables to Ctrl+Alt+V
|
|
\$ fzf_configure_bindings --directory=\cf --variables=\e\cv
|
|
Default bindings but disable Search History
|
|
\$ fzf_configure_bindings --history=
|
|
An agglomeration of different options
|
|
\$ fzf_configure_bindings --git_status=\cg --history=\ch --variables= --processes=
|
|
|
|
SEE Also
|
|
To learn more about fish key bindings, see bind(1) and fish_key_reader(1).
|
|
"
|
|
end
|