dblume commited on 2025-11-29 17:35:09
Showing 1 changed files, with 1 additions and 0 deletions.
For some reason this regex doesn't work on my MacBook Air. I have the same bash and tmux version on a Linux device and it works.
| ... | ... |
@@ -43,6 +43,7 @@ bind -n M-l select-pane -R |
| 43 | 43 |
# 2. Prefix + f to enter copy mode and search backward for a file path regex. |
| 44 | 44 |
# 3. Navigate selections with n/N. |
| 45 | 45 |
# 4. Once found, o to open the file in $EDITOR. |
| 46 |
+# (macOS: if you don't get matches, try removing the (\>|$) from the end.) |
|
| 46 | 47 |
bind-key f copy-mode \; send-keys -X search-backward \ |
| 47 | 48 |
'(("([[:alnum:] _\.#$%&+=@-]+|~)?(/[[:alnum:] _\.#$%&+=@-]+)*"|(([[:alnum:]_\.#$%&+=@-]+|~)?(/[[:alnum:]_\.#$%&+=@-]+)+|[[:alnum:]_\.#$%&+=@-]*[[:alpha:]][[:alnum:]_\.#$%&+=@-]*))(:[0-9]{1,10})|(([[:alnum:]_\.#$%&+=@-]*[[:alpha:]][[:alnum:]_\.#$%&+=@-]*|~|\.|\.\.)(/[[:alnum:]_\.#$%&+=@-]+)?\.[[:alnum:]]{1,4}|([[:alnum:]_\.#$%&+=@-]+|~)?(/[[:alnum:]_\.#$%&+=@-]+){2,})(:[0-9]{1,10})?)(:[0-9]{1,10})?(\>|$)'
|
| 48 | 49 |
|
| 49 | 50 |