diff --git a/home/user/.config/zsh/mappings b/home/user/.config/zsh/mappings index 8f7ea30..a5d6192 100644 --- a/home/user/.config/zsh/mappings +++ b/home/user/.config/zsh/mappings @@ -82,4 +82,14 @@ cddotdot() { } zle -N cddotdot bindkey "^O" cddotdot -bindkey -M vicmd "^O" cddotdot \ No newline at end of file +bindkey -M vicmd "^O" cddotdot + + + +fzfhistory() { + BUFFER="$(history -n 0 | fzf --tac --no-multi --height="$(($LINES/4))" --query="$BUFFER")" + zle reset-prompt +} +zle -N fzfhistory +bindkey "^R" fzfhistory +bindkey -M vicmd "^R" fzfhistory diff --git a/home/user/.config/zsh/plugin b/home/user/.config/zsh/plugin index e611a11..67d3aa1 100644 --- a/home/user/.config/zsh/plugin +++ b/home/user/.config/zsh/plugin @@ -12,11 +12,9 @@ install_if_not_exists() { install_if_not_exists zsh-users/zsh-autosuggestions install_if_not_exists zsh-users/zsh-syntax-highlighting install_if_not_exists hlissner/zsh-autopair -install_if_not_exists unixorn/fzf-zsh-plugin install_if_not_exists marlonrichert/zsh-autocomplete _so "${HOME}/.config/zsh/plugins/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" _so "${HOME}/.config/zsh/plugins/zsh-users/zsh-autosuggestions/zsh-autosuggestions.zsh" _so "${HOME}/.config/zsh/plugins/hlissner/zsh-autopair/autopair.zsh" -_so "${HOME}/.config/zsh/plugins/unixorn/fzf-zsh-plugin/fzf-zsh-plugin.plugin.zsh" _so "${HOME}/.config/zsh/plugins/marlonrichert/zsh-autocomplete/zsh-autocomplete.plugin.zsh" \ No newline at end of file