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

uppercase-command only print partial results #126

Closed
pengux opened this issue Oct 30, 2022 · 11 comments
Closed

uppercase-command only print partial results #126

pengux opened this issue Oct 30, 2022 · 11 comments

Comments

@pengux
Copy link

pengux commented Oct 30, 2022

Example output on screen:

/home/peter/test

activating tmux-thumbs show hint at the beginning of the path and selecting it will copy the whole path to the clipboard. But when using uppercase hint, only the part /home/ is printed to the console

@fcsonline
Copy link
Owner

Really weird, because it's the most common use case. Do you have some custom regexp that matches this text?

@pengux
Copy link
Author

pengux commented Oct 31, 2022

No I don't have any extra regexp that would match it. I tried with another path such as /foo/bar. The copy work, but the uppercase command only prints /foo/ba (missing r at the end)

@fcsonline
Copy link
Owner

Can you paste your tmux-thumbs configuration?

@pengux
Copy link
Author

pengux commented Nov 2, 2022

Of course, here it is:

set -g @plugin 'fcsonline/tmux-thumbs'

run-shell ~/.tmux/plugins/tmux-thumbs/tmux-thumbs.tmux

set -g @thumbs-key j
set -g @thumbs-command 'echo -n {} | wl-copy'

I'm using sway on Arch Linux with tmux 3.3a

@fcsonline
Copy link
Owner

So, you don't have the @thumbs-upcase-command setting configured, right?

@pengux
Copy link
Author

pengux commented Nov 2, 2022

No, that command is definitely not configured. I did a search in the .tmux folder to be sure.

@fcsonline
Copy link
Owner

Can you record a session reproducing the issue, please?

@pengux
Copy link
Author

pengux commented Nov 3, 2022

Here it is. I think I see the issue now, it's because of the output Copied /foo/bar/baz in the status line which interrupt the printing of the output. As soon as you hit another key it prints the rest...

output

@fcsonline
Copy link
Owner

Mmmmm.... Interesting. Can you try to customize the upcase command and remove the part that displays the message?

@pengux
Copy link
Author

pengux commented Nov 4, 2022

Thank you, yes it works by customizing the command to not displays the message, e.g.:

set -g @thumbs-upcase-command 'tmux set-buffer -- {} && tmux paste-buffer && echo -n {} | wl-copy'

@pengux pengux closed this as completed Nov 4, 2022
@fcsonline
Copy link
Owner

Nice!

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

2 participants