Home

Awesome

tmux-picker

tmux-picker: Selecting and copy-pasting in terminal using Vimium-like hint mode for tmux.

screencast

This is a slimmed-down, improved and extended fork of tmux-fingers. Check Acknowledgements for comparison.

Usage

Press ( <kbd>Meta</kbd> + <kbd>F</kbd> ) to enter [picker] hint mode, in which relevant stuff (e.g. file paths, git SHAs) in the current pane will be highlighted along with letter hints. By pressing those letters, the highlighted match will be copied to the system clipboard.

By default, following items are highlighted:

You can press:

Installation

Configuration

Requirements

Troubleshooting

Notes

You can also add:

bind -n M-p run "tmux set-buffer -- \"$(xclip -o -sel primary)\"; tmux paste-buffer"

to your .tmux.conf to allow pasting from clipboard using <kbd>Meta</kbd> + <kbd>P</kbd>.

Acknowledgements

It started as a fork of tmux-fingers. I would like to thank to Morantron (the tmux-fingers author) for a really good piece of code!

My main problem with tmux-fingers was that it did not support terminal colors (it strips them down). I have fancy powerline prompt, colored ls, zsh syntax highlighting, colored git output, etc. So after entering tmux-fingers hint mode it was like 'WTF? Where are all my colors? Where am I? Where's the item I want to highlight??!'. I could enable capturing escape sequences for colors in tmux capture-pane, but it would break tmux-fingers pattern matching.

My other problem with tmux-fingers was that it was sluggish. So I started adding color support to tmux-fingers and improving its performance. I had to simplify things to make it reliable. I completely rewrote awk part, added Huffman Coding, added second hint mode. I therefore decided to fork and rename project instead of submitting pull requests that turn things upside down.

Comparison

Comparing to tmux-fingers, tmux-picker:

Like tmux-fingers, tmux-picker still supports:

How it works?

The basic idea is:

License

MIT