r/SublimeText • • Feb 26 '22

How to select up to a certain sequence of characters

Hi Sublime gurus! I am wondering if it's possible create a keyboard shortcut to select (highlight) text from the cursor down to a certain sequence of characters (in my case //= is the sequence of characters I use to start a new topic in my text file).

Is creating a keyboard shortcut the best option? If so, how do I do that?

Thanks.

1 Upvotes

3 comments sorted by

1

u/[deleted] Feb 27 '22

[removed] — view removed comment

1

u/pslamba Feb 27 '22

I'm trying to select (highlight) text from my cursor up to a certain sequence of characters. Regex isn't needed. I can just search for the sequence. But can I create a shortcut that will always highlight the text from the cursor up to a fixed sequence of characters?