tmux-plugins / tmux-copycat

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

How to make search of predefined case sensitive word list? #111

Closed dominikduda closed 7 years ago

dominikduda commented 7 years ago

I would like to have a binding to search for defined list words.

This one works:

bind e run-shell "$HOME/.tmux/plugins/tmux-copycat/scripts/copycat_mode_start.sh '(Error|FATAL)'"

But I want to make it case sensitive (so Error will match but error will not).

Is there way to achieve it?

thalesmello commented 7 years ago

So, the pattern matching is done in this line.

If notice, the grep command is called with the ignore case (-i) option.

If you want to distinguish between uppercase and lowercase, just remove it.

dominikduda commented 7 years ago

Thanks!