Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File search doesnt find files #147

Open
loopzen opened this issue Feb 22, 2020 · 2 comments
Open

File search doesnt find files #147

loopzen opened this issue Feb 22, 2020 · 2 comments

Comments

@loopzen
Copy link

loopzen commented Feb 22, 2020

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
@spaihippo
Copy link

spaihippo commented Apr 9, 2020

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.

@bruno-
Copy link
Member

bruno- commented Sep 9, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants