Migrate from zplug to zim

This commit is contained in:
crater2150 2022-12-13 17:43:38 +01:00
parent b8a9b90447
commit bae17dfdc5
4 changed files with 51 additions and 1 deletions

View file

@ -92,3 +92,22 @@ fi
zle-venv() { zle push-line; BUFFER="venv"; zle accept-line }
zle -N zle-venv
bindkey "\ev" zle-venv
# Map widgets to key
bindkey "\ec" fzf-change-directory
bindkey "^r" fzf-insert-history
bindkey "^xf" fzf-insert-files
bindkey "^xd" fzf-insert-directory
bindkey "^xn" fzf-insert-named-directory
# Start fzf in a tmux pane
FZF_WIDGET_TMUX=1
# use fd for finding directories and files
FZF_CHANGE_DIR_FIND_COMMAND="fd -t d"
FZF_INSERT_DIR_COMMAND="fd -t d"
FZF_INSERT_FILES_COMMAND="fd -t f"
FZF_EDIT_FILES_COMMAND="fd -t f"
# modify history command to remove duplicates
FZF_HISTORY_COMMAND="fc -l 1 | sed s/ *[0-9]* //g | awk !seen[\$0]++"