Go to next/previous regex symbol


#1

Hi,

I’ve been trying to develop a keybind that will go to the next (or previous) character as defined as /\s*[(){}<>[]/’"]/

Sounds simple but I can’t get it working. I’ve been looking at https://atom.io/packages/bracket-close-jump as a guide but I just can’t figure it out.

Anyone up for writing a quick package that will find the next / previous (maybe two different keybinds) specified character? The characters could be configurable to make it more widely useful.

If there’s a package around that does this please let me know, but I can’t find anything like it.


#2

My tabs-to-spaces package does a bunch of search and replace kind of stuff. You might take a look at it for examples of APIs for searching within an editor.


#3

Thanks leedohm. I’m checking it out.