Find Next Selected (Find_Next_Selected.bsh v1.01 by Dan Ferreira)
Submitted by Tuesday, 24 August, 2004 - 18:19
on
Got this idea from UltraEdit32, where I'd often skip the Find dialog by just selecting text and searching for its next occurrence. I never found another editor that provided this simple functionality, and now jEdit can do it with this macro!
If there's no selection, it looks for the next occurrence of your last search (issues a "find-next" action). It's meant to be an improved "find-next", so you can remap your "find-next" shortcut to this macro if you want to.
New in version 1.01:
- Special behavior when regular expressions enabled: if the current selection matches your regexp search string, then it issues a "find-next" action (so it won't disrupt ongoing regexp searches); otherwise, the selected text becomes the new regexp search string; if the new regexp search string is invalid, a regular search is performed (sounds more complicated than it actually is, the point is that now it handles regular expressions nicely :-) )
If there's no selection, it looks for the next occurrence of your last search (issues a "find-next" action). It's meant to be an improved "find-next", so you can remap your "find-next" shortcut to this macro if you want to.
New in version 1.01:
- Special behavior when regular expressions enabled: if the current selection matches your regexp search string, then it issues a "find-next" action (so it won't disrupt ongoing regexp searches); otherwise, the selected text becomes the new regexp search string; if the new regexp search string is invalid, a regular search is performed (sounds more complicated than it actually is, the point is that now it handles regular expressions nicely :-) )
Updated on 08/26/2004 - 00:38
Downloads: 2846