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

Add option select_by_word_characters_forward #5103

Merged
merged 1 commit into from
May 18, 2022
Merged

Add option select_by_word_characters_forward #5103

merged 1 commit into from
May 18, 2022

Conversation

kgraefe
Copy link
Contributor

@kgraefe kgraefe commented May 16, 2022

This adds an option to select separate characters for forward and
backward word extension on double click. If it is empty the old behavior
is preserved. This is the default.

If it is not empty, select_by_word_characters_forward will be used for
extending the selection in forward direction (right) and
select_by_word_characters will be used for extending in backward
direction (left).

Resolves #4728

This adds an option to select separate characters for forward and
backward word extension on double click. If it is empty the old behavior
is preserved. This is the default.

If it is not empty, select_by_word_characters_forward will be used for
extending the selection in forward direction (right) and
select_by_word_characters will be used for extending in backward
direction (left).

Signed-off-by: Konrad Gräfe <kgraefe@paktolos.net>
@kgraefe
Copy link
Contributor Author

kgraefe commented May 17, 2022

My use case for that is so I can quickly select the filename and line number but not the column e.g. in test.sh:12:45 by double-clicking on the line number. I use the following configuration for that (note the colon):

select_by_word_characters @-./_~?&=%+#:
select_by_word_characters_forward @-./_~?&=%+#

@kovidgoyal
Copy link
Owner

I ma travelling for a few days I will review this when I am back.

@kovidgoyal kovidgoyal merged commit 0eee2db into kovidgoyal:master May 18, 2022
@kgraefe
Copy link
Contributor Author

kgraefe commented May 18, 2022

Great, thank you. :-)

@kgraefe kgraefe deleted the add-option-select_by_word_characters_forward branch June 8, 2022 06:49
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

Successfully merging this pull request may close these issues.

Seperate select_by_word_characters for left and right of the cursor
2 participants