mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-31 02:24:11 -06:00
Replace Bun-based modify_ script with cleaner Fish function override that intercepts fzf_configure_bindings at load time to disable CTRL+R binding. Also fix Fisher update script to run_onchange for proper chezmoi behavior.
18 lines
730 B
Cheetah
18 lines
730 B
Cheetah
# Override fzf.fish default bindings before it loads
|
|
# This file loads before fzf.fish (alphabetically) to prevent CTRL+R binding
|
|
# We want Atuin to handle CTRL+R instead of fzf
|
|
|
|
# Store the original fzf_configure_bindings function
|
|
functions -c fzf_configure_bindings _fzf_configure_bindings_original 2>/dev/null
|
|
|
|
# Override with our version that disables history binding
|
|
function fzf_configure_bindings --wraps=_fzf_configure_bindings_original
|
|
# If called without arguments (from fzf.fish), add --history= to disable CTRL+R
|
|
if test (count $argv) -eq 0
|
|
_fzf_configure_bindings_original --history=
|
|
else
|
|
# Otherwise pass through arguments as-is
|
|
_fzf_configure_bindings_original $argv
|
|
end
|
|
end
|