tmux-copycat icon indicating copy to clipboard operation
tmux-copycat copied to clipboard

File search doesnt find files

Open ghost opened this issue 5 years ago • 2 comments

2020-02-22-115700_129x144_scrot

C-F doesnt detect file patterns. It detects only folders.

The issue is in this regular expression:

copycat.tmux

if stored_search_not_defined "$file_search"; then
	tmux set-option -g "${COPYCAT_VAR_PREFIX}_${file_search}" "(^|^\.|[[:space:]]|[[:space:]]\.|[[:space:]]\.\.|^\.\.)[[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]*"
fi

ghost avatar Feb 22 '20 10:02 ghost

I have the same issue, and am using Ubuntu 18.04. Press Enter also doesn't copy the highlighted text to the command line. tmux yank does work though.

spaihippo avatar Apr 09 '20 18:04 spaihippo

About "file search doesn't find files" - see limitations here https://github.com/tmux-plugins/tmux-copycat/blob/master/docs/limitations.md

Examples: non-perfect file and url matching and selection

If you guys have a better idea how to match files with a regex you can define your own "file search" mapping or override the default. If you think you have a better solution than this plugin then feel free to open a PR.

bruno- avatar Sep 09 '20 07:09 bruno-