commit 04d86d1bd2237b10dfa1101ced06ee03df09bc2b parent bf693bf5fbf588ab719bfc5051e9a1284ab948e4 Author: Anders Damsgaard <andersd@riseup.net> Date: Mon, 18 Dec 2017 12:52:50 -0500 Add fzf-locate with Alt-` Diffstat:
M | links/.tmux.conf | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/links/.tmux.conf b/links/.tmux.conf @@ -199,3 +199,6 @@ bind-key -n C-M-a split-window -p 50 "source ~/code/fzf-mpd/fzf-mpd.zsh fzf && f #bind -n -Tmoreprefix s new-window -n mpc "mpc stop" #bind -n -Tmoreprefix n new-window -n mpc "mpc next" #bind -n -Tmoreprefix b new-window -n mpc "mpc prev" + +# fzf-locate from entire file system and insert result in current pane (Alt-`) +bind-key -n 'M-`' run "tmux split-window -p 40 'tmux send-keys -t #{pane_id} \"$(locate / | fzf -m | paste -sd\\ -)\"'"