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

Is it possible to select words with delimiters on double click? #3528

Closed
k0va1 opened this issue Apr 14, 2023 · 4 comments
Closed

Is it possible to select words with delimiters on double click? #3528

k0va1 opened this issue Apr 14, 2023 · 4 comments

Comments

@k0va1
Copy link

k0va1 commented Apr 14, 2023

For example in alacritty without tmux I can double click on branch name like this feature/new_awesome_feature and full branch name will be selected
Screencast 2023-04-14 16:10:15.webm

But in tmux only first or second part
Screencast 2023-04-14 16:10:47.webm

@joshbode
Copy link

joshbode commented Apr 16, 2023

I believe you're looking for the word-separators option.

This is what I set mine to:

set -g word-separators " |{}()[]<>`='\"!@#$%^&*:;,?"

which supports the select-behaviour I think you're looking for.
(note: it doesn't include /, and the \ is escaping the ")

The default, at least on my machine, was:

$ tmux show-options -g word-separators
word-separators "!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~"

which does include /.

Alacritty uses the following characters as separators (selection.semantic_escape_chars):

,│`|:\"' ()[]{}<>\t

@k0va1
Copy link
Author

k0va1 commented Apr 17, 2023

@joshbode thank very much! That's exactly what I wanted, just changed word-separators to Alacrity's and it works like a charm

@k0va1 k0va1 closed this as completed Apr 17, 2023
@joshbode
Copy link

Great! Glad I could help :)

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants