Refining fish bindings.
This commit is contained in:
parent
02d4a17ccf
commit
c09d1c9ada
|
|
@ -8,9 +8,13 @@
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# FZF -> Fuzzy find everything!
|
# FZF -> Fuzzy find everything!
|
||||||
|
|
||||||
|
# Use tmux pane by default
|
||||||
|
set FZF_TMUX 1
|
||||||
|
|
||||||
# Use Ripgrep (Faster than Grep)
|
# Use Ripgrep (Faster than Grep)
|
||||||
if type rg &> /dev/null
|
if type rg &> /dev/null
|
||||||
set FZF_DEFAULT_COMMAND 'rg --files --hidden --follow --glob "!.git/"'
|
set FZF_DEFAULT_COMMAND 'rg --files --hidden --follow --glob "!.git/" --glob "!plugged/"'
|
||||||
|
set FZF_CTRL_T_COMMAND 'rg --files --hidden --follow --glob "!.git/" --glob "!plugged/" $dir'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Multi-select by default
|
# Multi-select by default
|
||||||
|
|
@ -26,6 +30,7 @@ if test -f ~/.autojump/share/autojump/autojump.fish
|
||||||
end
|
end
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Abbreviations
|
# Abbreviations
|
||||||
|
abbr python python3
|
||||||
abbr vim nvim
|
abbr vim nvim
|
||||||
abbr cat bat
|
abbr cat bat
|
||||||
abbr pd prevd
|
abbr pd prevd
|
||||||
|
|
@ -33,15 +38,12 @@ abbr l ls -a
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Key Bindings
|
# Key Bindings
|
||||||
bind \er 'source ~/.config/fish/config.fish'
|
|
||||||
bind \ev '$EDITOR ~/.config/nvim/init.vim'
|
# Edit and reload
|
||||||
bind \ef '$EDITOR ~/.config/fish/config.fish'
|
bind \ee '$EDITOR ~/.config/fish/config.fish'
|
||||||
bind \et '$EDITOR ~/.tmux.conf'
|
bind \er 'exec fish'
|
||||||
# bind \es '$EDITOR ~/.ssh/config'
|
|
||||||
bind \ed '$EDITOR ~/Workspace/dotfiles/'
|
# Replace \cd with \cg because \cd also exits shells.
|
||||||
bind \ew '$EDITOR ~/Workspace/'
|
bind \cg delete-char
|
||||||
bind \en '$EDITOR ~/Notes/'
|
# Replace \ca with \ea because \ca is used as tmux leader key.
|
||||||
# bind \cg 'sr google '
|
bind \ea beginning-of-line
|
||||||
# bind \cy 'sr youtube '
|
|
||||||
bind \ck beginning-of-line # Use k because \ca is overwitten as my tmux leader
|
|
||||||
set FZF_TMUX 1
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue