Re: Best way to save your place in the editor (while running a Clip)
- View SourceDiodeom,
Thanks for sharing that method, I will get a lot of mileage out of it.
I never thought of using the tricky temporary file markers, either.
--- In email@example.com, "diodeom" <diomir@...> wrote:
> "Steve" <jsteveadams@> wrote:
> > Hi Everybody,
> > I will be doing text string searches thru a file in the editor (via a
> > clip), and will need to temporarily store the positions where I find
> > certain text.
> > I know you can ^$GetCol$ and GetRow, but is there a one-step command to
> > read the position of the cursor, so that you may return back to it?
> > i.e. I want to find the beginning of a string, save that position in the
> > editor, search for something else, then return to the saved postion.
> > Any suggestions are appreciated.
> > Thanks,
> > Steve NTP 6.12 f/v
> If this common approach doesn't suit you...
> ^!Set %position%=^$GetRow$:^$GetCol$
> ;Do other stuff, then...
> ^!SetCursor ^%position%
> ... in situations where temporarily memorizing row:col would serve no purpose (when preceding text might be edited in some intermediate steps and thus alter referenced absolute positions), it may be practical to drop instead in desired locations some unique, easy-to-find-later markers (e.g. *1, *2, etc.).