From 7458d91e59ed0caaed9039e6ae2158410b8cd6dc Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Thu, 25 Nov 2021 21:13:46 -0800 Subject: [PATCH] add fzf bindings for git https://junegunn.kr/2016/07/fzf-git/ --- .tmux.conf | 8 ++++++++ src/prezto | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 234eabd..9f559f6 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -79,6 +79,14 @@ bind-key -n 'C-k' if-shell "$is_vim" "send-keys C-k" "select-pane -U" bind-key -n 'C-l' if-shell "$is_vim" "send-keys C-l" "select-pane -R" bind-key -n 'C-\' if-shell "$is_vim" "send-keys C-\\" "select-pane -l" +bind-key -T root C-g switch-client -T fzf-git +bind-key -T fzf-git C-f send-keys C-g f +bind-key -T fzf-git C-b send-keys C-g b # Doesn't work, probably because of C-b being the prefix? +bind-key -T fzf-git C-t send-keys C-g t +bind-key -T fzf-git C-r send-keys C-g r +bind-key -T fzf-git C-h send-keys C-g h +bind-key -T fzf-git C-s send-keys C-g s + bind -r < resize-pane -L 3 bind -r > resize-pane -R 3 bind -r - resize-pane -D 3 diff --git a/src/prezto b/src/prezto index 7bbd350..a3809d8 160000 --- a/src/prezto +++ b/src/prezto @@ -1 +1 @@ -Subproject commit 7bbd350ea1636c9d5dd3c16dccf4e2e6e1ed29bb +Subproject commit a3809d8670947797e59790470cf03f782235aadb