tmux-sidebar icon indicating copy to clipboard operation
tmux-sidebar copied to clipboard

Works great with vim (How to open?)

Open nerdpad opened this issue 9 years ago • 3 comments

How to open files in the sidebar in vim? I am very confused about the works great with vim part.

nerdpad avatar Dec 12 '16 05:12 nerdpad

this sidebar just is tree | less , so , can't open any files.

eleveni386 avatar May 19 '17 03:05 eleveni386

Same here. I was expected open files directly. Maybe the "work great with vim" is unnecessary in the README file.

maturanomx avatar Mar 05 '18 19:03 maturanomx

You can add the following to your .tmux.conf:

bind -T copy-mode-vi E send -X copy-pipe "tmux split-window -c #{pane_current_path} 'nvim `tmux show-buffer`'"

You can then double click the file you want to open and press E. (You might need a tree -f to get absolute path)

noboruma avatar Feb 21 '20 11:02 noboruma