First: thank you; XY remains one of the most intelligently designed tools I use all day, every day. The rename subsystem in particular -- is an everyday saver.
I curate a stable template list here: Tools > List Management > Rename Special: Search and Replace
Question: is there currently any way to run a Search & Replace rename without the pattern being written into the S&R list / history? I know many other lists in XY have toggles... so I wanted to check in case I’ve missed such a switch.
If there's a script-based workaround or recommended technique that effectively avoids history pollution, I am equally interested in that.
If the answer is "not possible", would you consider a future option such as:
- "Do not record this run" (per-run toggle)
- A global option to disable auto-logging
- A separation between "user-maintained templates" and "auto-history"
Reason: For those of us who maintain a clean curated S&R template list in List Management, every auto-entry has to be manually deleted.
Thanks ahead of time, for any wisdom!
Search & Replace: Avoid auto-logging of searches?
-
Lusayalumino
- Posts: 115
- Joined: 13 Aug 2018 07:16
- Location: USA
Search & Replace: Avoid auto-logging of searches?
XYPlorer, Great Form -- Awesome Function
-
admin
- Site Admin
- Posts: 65009
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Search & Replace: Avoid auto-logging of searches?
There is indeed a script-based workaround. Actually scripting it IS the workaround. If you do your rename business using SC rename the history will not be polluted. No further settings necessary.
FAQ | XY News RSS | XY X
-
Lusayalumino
- Posts: 115
- Joined: 13 Aug 2018 07:16
- Location: USA
Re: Search & Replace: Avoid auto-logging of searches?
Did some digging and found these:
viewtopic.php?t=18746
viewtopic.php?t=13896
viewtopic.php?t=28393
viewtopic.php?p=118742
I'm guessing I either am unable to find SC Rename, or it's a bit over my head. Thanks anyways.
viewtopic.php?t=18746
viewtopic.php?t=13896
viewtopic.php?t=28393
viewtopic.php?p=118742
I'm guessing I either am unable to find SC Rename, or it's a bit over my head. Thanks anyways.
XYPlorer, Great Form -- Awesome Function
-
admin
- Site Admin
- Posts: 65009
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Search & Replace: Avoid auto-logging of searches?
Gimme a Search and Replace pattern you don't want to auto-log, and I'll show you how to use SC rename.
FAQ | XY News RSS | XY X
-
Lusayalumino
- Posts: 115
- Joined: 13 Aug 2018 07:16
- Location: USA
Re: Search & Replace: Avoid auto-logging of searches?
Here's my small but growing list of templates.
Any other time I do S&R (Search & Replace) -- I don't want it to track.
I bound S&R to a keyboard command b/c I do it hundreds of times per day. About 25% of the time it's using my templates.

Any other time I do S&R (Search & Replace) -- I don't want it to track.
I bound S&R to a keyboard command b/c I do it hundreds of times per day. About 25% of the time it's using my templates.

XYPlorer, Great Form -- Awesome Function
-
admin
- Site Admin
- Posts: 65009
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Search & Replace: Avoid auto-logging of searches?
Example for the first in your list:
You can run it through the address bar, or (for regular use) add it to menu "User / Manage Commands... / Run Script" and assign a keyboard shortcut to it.
rename s, " /-";You can run it through the address bar, or (for regular use) add it to menu "User / Manage Commands... / Run Script" and assign a keyboard shortcut to it.
FAQ | XY News RSS | XY X
-
Lusayalumino
- Posts: 115
- Joined: 13 Aug 2018 07:16
- Location: USA
Re: Search & Replace: Avoid auto-logging of searches?
Thanks.
So I'm better off doing what I'm already doing (efficiency and effectiveness): just occasionally going through and purging the unwanted Search & Replace Strings.
Would you agree?
So I'm better off doing what I'm already doing (efficiency and effectiveness): just occasionally going through and purging the unwanted Search & Replace Strings.
Would you agree?
XYPlorer, Great Form -- Awesome Function
Re: Search & Replace: Avoid auto-logging of searches?
Just use this if you don't want the pattern to be stored...
Code: Select all
$patterns = regexreplace(getsectionlist("mruSearchReplace"), "^Count=\d+\r?\n");
$patterns = regexreplace($patterns, "^(\d=[""])(.+?)([""])", "$2");
rename "s", input("Enter search/replace pattern", 5:=350, 6:=150, 7:=$patterns);
One of my scripts helped you out? Please donate via Paypal
-
Lusayalumino
- Posts: 115
- Joined: 13 Aug 2018 07:16
- Location: USA
Re: Search & Replace: Avoid auto-logging of searches?
Hey Highend... thanks!
So basically I'd have two different S&Rs I'd use... correct? Thanks for this. I'm thinking about efficiency... I have CTRL+F2 bound to S&R and I'm all but out of Keyboard bindings.
So if your strategy is as I think it is... I have to think about this. Thanks!
So basically I'd have two different S&Rs I'd use... correct? Thanks for this. I'm thinking about efficiency... I have CTRL+F2 bound to S&R and I'm all but out of Keyboard bindings.
So if your strategy is as I think it is... I have to think about this. Thanks!
XYPlorer, Great Form -- Awesome Function
XYplorer Beta Club