-
Notifications
You must be signed in to change notification settings - Fork 62
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
upcase-command doesn't work for user regexp #81
Comments
Can you share some example of text you are trying to match? It is weird the behaviour you are mentioning because the matching and the uppercase are two pieces of code that are not related. |
hi, I had a quick look at the code and wasn't able to see anything (I have zero Rust knowledge but I can read code). once this is fixed, a {regexp} variable that tells which one has matched would be useful in the thumb-command option set -g @plugin 'fcsonline/tmux-thumbs' # prefix + space |
Example text: 478 ~/2/large L:■ 46f 260+ 303- 157u gl
|
Ok, thanks for share it. But exactly which is the text you want to pick? It is just to test the regexp. |
well, one of the options (and maybe more), IE: --depend_log |
Ok, I was able to reproduce it. There are two things to take into consideration to make it work. Thanks to your report, I discovered a small mistake in the README documentation. The Regexp is incorrect. It should be like this: set -g @thumbs-regexp-1 '\-\-[a-zA-Z0-9_]+' # options On the other hand, the command configuration needs an extra set -g @thumbs-command 'tmux set-buffer -- {} && tmux display-message \"Copied {}\"'
set -g @thumbs-upcase-command 'tmux set-buffer -- {} && tmux paste-buffer && tmux display-message \"Copied {}\"' I updated the documentation to avoid this kind of issues here: 3a06364 Let me know if it works. |
I works; regexp is fine I want to get single dash options too. While I have your attention, I reported two other bugs one that would be real cool to have, no removing text color, and one that's making the plugin much less useful, selecting i a zoomed panel. I hope you get a chance to look at it. Thanks for telling me how to fix this one |
Selecting in a zoomed panel is something that was fixed weeks ago. Check if you have the latest code and recompile again, plz. About the color, this is a hard one. No plans to solve it in the short term |
selecting in zoom panel works now, I closed the issue What's so hard with keeping the color? |
Ok, then I can close this issue. About the color one you can track it here: #65 If you want to give it a try and find a solution, I'll really appreciate it. |
when this regexp is added
set -g @thumbs-regexp-1 '-?-[a-zA-Z0-9_]+' # options
running thumbs highlights the matches and the default matches, ie SHAs.
uppercase command works for the SHAs but not for the user defined regexp
weirdly the dash '-' also matches tilde '~'
The text was updated successfully, but these errors were encountered: