View Single Post
Old 01-20-2018, 03:13 PM   #1
vr8ce
Enthusiast
vr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchfork
 
vr8ce's Avatar
 
Posts: 31
Karma: 48958
Join Date: May 2017
Device: iPad Pro 9.7"
Default "find" for Search/Replace regex functions

From what I understand from reading the "Function mode for Search & replace in the Editor" section of the manual, although the search/replace function is saved, the find string isn't. Thus, we have to enter the find string every time we use the saved function. This means we either have to remember them or store them elsewhere, the former being difficult when the strings are complicated, and the latter being unnecessary duplication.

I'd like to request that we be able to specify the default find string for a saved regex function. That way, when we chose a saved function from the dropdown list, it would also fill in the find string with our default. We could change the find string at that point if we wanted to, but at least it's initially populated with the "normal" default. (And, of course, if we didn't want a default, we would just leave that line empty.)

Maybe it's just a
Code:
default_find = "blahblahblah"
as the first line in the saved function, or maybe it's something else. Anything that lets us keep the default find with the function so we don't have to remember it.

Thanks!
vr8ce is offline   Reply With Quote