diff --git a/.config/vim/pack/plugins/opt/vim-polyglot b/.config/vim/pack/plugins/opt/vim-polyglot new file mode 160000 index 0000000..7972e8e --- /dev/null +++ b/.config/vim/pack/plugins/opt/vim-polyglot @@ -0,0 +1 @@ +Subproject commit 7972e8eea10ce6420443713b74224fc185d22db9 diff --git a/.config/zsh/plugins/functionsPost.zsh b/.config/zsh/plugins/functionsPost.zsh index 7379fdf..70ded97 100644 --- a/.config/zsh/plugins/functionsPost.zsh +++ b/.config/zsh/plugins/functionsPost.zsh @@ -335,6 +335,11 @@ glog() { local date="--date=format:%F %T" local colors="--color=always" + local binds=( + "ctrl-space:toggle-preview" + "ctrl-j:preview-down" + "ctrl-k:preview-up" + ) # Display a colorful ascii graph of the commits in the above format and pipe # that into fzf. @@ -346,7 +351,7 @@ glog() { # on the commit hash. commit="$(\ git log --pretty="$format" --graph "$date" $colors\ - | fzf --ansi --reverse --preview=" + | fzf --ansi --reverse --bind "${(j:,:)binds}" --preview=" out=\"\$(echo {} | sed -Ee \"$ansi_escape\" -e \"$commit_hash\")\" if [ \"\$out\" ]; then git show --pretty=fuller \"${date} %z\" $colors \"\$out\" diff --git a/.gitmodules b/.gitmodules index d97d4a2..5ab2994 100644 --- a/.gitmodules +++ b/.gitmodules @@ -46,3 +46,6 @@ [submodule ".config/zsh/plugins/zsh-syntax-highlighting"] path = .config/zsh/plugins/zsh-syntax-highlighting url = https://github.com/zsh-users/zsh-syntax-highlighting.git +[submodule ".config/vim/pack/plugins/opt/vim-polyglot"] + path = .config/vim/pack/plugins/opt/vim-polyglot + url = https://github.com/sheerun/vim-polyglot