tmux-plugins / tmux-copycat

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

Feature request: Word search by pattern #63

Open raine opened 9 years ago

raine commented 9 years ago

Hey, I used copycat a bit and immediately realized something like this would be very useful.

It'd be similar to the current regex search, but instead of writing a regex, you would write part of the word, and under the hood it would use a pattern as follows to find the word from the screen:

[[:alnum:]|_]*PATTERN[[:alnum:]|_]*

So you would hit a hotkey and you'd get a prompt to fill just the PATTERN.

Here's a demo using the existing regex search <prefix> /:

copycat

Cheers.

edit:

I suppose it would be best if you could use custom searches to implement something like this, and not hardcode the functionality in. Currently it doesn't seem like you can use user input in stored searches.