How could I go use keystrokes to select text from the cursor to the next (or previous) occurrence of a searched term? This would be really helpful for automating tasks, for example, in quickly hacking out macros that can operate on variable-length text fields (where a "select until next tab" would be useful -- using ^W doesn't help with URLs). I'm aware that I can get around this using find-and-replace of an entire block of text via regular expressions, but was wondering if there's something more procedural.
Thanks, Shiran
On 4/4/2006, at 20:45, Shiran Pasternak wrote:
How could I go use keystrokes to select text from the cursor to the next (or previous) occurrence of a searched term? [...]
Currently there is no good way to do it. You can however do a regexp search for: ‘(?m:.*?)«search string»’. The ‘(?m:.*?)’ part will ensure that everything before ‘«search string»’ ends up as selected.
[...] but was wondering if there's something more procedural.
Eventually I will add support for Emacs style marks, and that will be the nice solution for this. But for now, the regexp searching is the only option.