tmux-plugins / tmux-copycat

A plugin that enhances tmux search
MIT License
1.11k stars 63 forks source link

Search from predefined searches #86

Open danihodovic opened 9 years ago

danihodovic commented 9 years ago

First of all this is a very handy plugin, so thank you to the author.

I'm currently using the git status predefined search and occasionally the file search. The only deficiency I have with these two predefined searches is that when you need to jump over a long list of git status files it takes a lot of clicks. It would be very handy if you could search the set of changed files according to git using a few letters instead of jumping over all files until you find your match. Is this possible?

bruno- commented 8 years ago

Agreed, I would also find this feature useful. However, this is an enhancement and I don't have the time to tackle it right now :/

PR for this would be welcome.

The solution will probably need to filter (remove) lines from the output of this function. That function returns all git status files, but for this feature we want it to return only files containing letters we entered. Essentially this: git_status_files | grep 'my_file_name'