paradoxxxzero / next-occurrence

Atom package: Find the next occurrence of selection or word under the cursor.
MIT License
1 stars 0 forks source link

Support find next/prev of previously searched word #4

Open dwelle opened 8 years ago

dwelle commented 8 years ago

Similar to Atom's find-and-replace:find-next via F3. Is it possible to use the same API that find-and-replace uses so that the default F3 hotkey works alongside this package?

But on top of the default, find-prev would be great too.

To elaborate, what I mean is to be able to jump between occurrences of previously searched word (without having to reselect/move caret to the word again).

ardcore commented 8 years ago

actually I just found out that atom's find-and-replace provides the same functionality as this plugin. find-and-replace:find-next-selected (cmd-F3 by default) jumps to the next occurrence of the word under the cursor. unless I'm missing something.

dwelle commented 8 years ago

@ardcore cool, didn't know this command existed. Seems like it makes this package obsolete?

/cc @paradoxxxzero

paradoxxxzero commented 8 years ago

Seems like it (you have to type F3 cmd-F3* though). I don't mind setting this package obsolete.

dwelle commented 8 years ago

Probably wouldn't just yet, as there are at least two bugs in the offic package I've found so far: https://github.com/atom/find-and-replace/issues/715, https://github.com/atom/find-and-replace/issues/714