mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-31 04:24:10 -06:00
feat: enhance Fish shell config with fzf bindings, Fisher auto-update, and native Linux browser
- Add fzf.fish keybinding customization (remap variables, preserve Atuin history) - Add Fisher plugin auto-update hook for chezmoi apply - Set Vivaldi as default browser on native Linux - Improve commit-staged command instructions - Add Kitty font size configuration
This commit is contained in:
@@ -26,8 +26,20 @@ if test "$TERM_PROGRAM" = "vscode"
|
||||
end
|
||||
end
|
||||
|
||||
# fzf key bindings (if fzf.fish plugin installed via Fisher)
|
||||
# Note: This is handled automatically by Fisher plugin
|
||||
# fzf.fish configuration (PatrickF1/fzf.fish via Fisher)
|
||||
if functions -q fzf_configure_bindings
|
||||
# Remap CTRL+V (variables) to Alt+Ctrl+V to avoid paste conflict
|
||||
# Disable history (--history=) to let Atuin keep CTRL+R
|
||||
fzf_configure_bindings --variables=\e\cv --history=
|
||||
|
||||
# Always include hidden files (dotfiles) in searches
|
||||
set -g fzf_fd_opts --hidden
|
||||
|
||||
# Directory search: Ctrl+I toggles gitignored files
|
||||
set -g fzf_directory_opts \
|
||||
--header 'C-i: toggle ignored' \
|
||||
--bind 'ctrl-i:reload(fd --type f --hidden --no-ignore)+change-prompt(+ignored > )'
|
||||
end
|
||||
|
||||
# Load custom functions from ~/.config/fish/functions/
|
||||
# (Fish does this automatically, no explicit sourcing needed)
|
||||
|
||||
Reference in New Issue
Block a user