Open bedge opened 6 years ago
Seconded - the fact that copycat doesn't at bare minimum have a configuration for this makes it pretty unusable for me with a prompt like 01-16 10:39 > ~/Doc…/code/
which matches both the file
and number
patterns
Stumbled on this... Would love to see this builtin tmux.
For context, my prompt is something like (consider I'm on ~/workspace/my-projects
)
⋊> ~/w/my-projects/
And I have the following pattern in my tmux config, for grepping for filenames in my pane. It unfortunately matches my prompt as well and I couldn't manage to fix yet...
bind C-f copy-mode \; send -X search-backward "(^|^\.|[[:space:]]|[[:space:]]\.|[[:space:]]\.\.|^\.\.)[[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]*"
My prompt matches both path and numeric seaches:
I use this for auditing purposes, along with logging.
While it would be possible to introspect the $PROMPT/$PS1 and figure out what to ignore, I'd be happy with being able to specify a regex to ignore as well. In fact, that may provide better flexibility for unforeseen use cases.