Skip to content

Commit 0f905ad

Browse files
author
Bruno Sutic
committed
Improve file-matching save search
1 parent 9ab7a85 commit 0f905ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

copycat.tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set_default_stored_searches() {
1717
tmux set-option -g "${COPYCAT_VAR_PREFIX}_${url_search}" "(https?://|git@|git://|ftp://|file:///)[[:alnum:]?=%/_.:,;~@!#$&()*+-]*"
1818
fi
1919
if stored_search_not_defined "$file_search"; then
20-
tmux set-option -g "${COPYCAT_VAR_PREFIX}_${file_search}" "(^|^\.|[[:space:]]|[[:space:]]\.|[[:space:]]\.\.|^\.\.)[[:alnum:]~_]*/[][[:alnum:]_.#$%&+=/@-]*"
20+
tmux set-option -g "${COPYCAT_VAR_PREFIX}_${file_search}" "(^|^\.|[[:space:]]|[[:space:]]\.|[[:space:]]\.\.|^\.\.)[[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]*"
2121
fi
2222
if stored_search_not_defined "$digit_search"; then
2323
tmux set-option -g "${COPYCAT_VAR_PREFIX}_${digit_search}" "[[:digit:]]+"

0 commit comments

Comments
 (0)