tmux-plugins/tmux-copycat

Search from predefined searches

danihodovic opened this issue · 1 comments

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?

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'