Search & Replace Strings - dropdown MRU ??

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Search & Replace Strings - dropdown MRU ??

Post by bdeshi »

#123 is hardly scripted. :ninja:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Search & Replace Strings - dropdown MRU ??

Post by PeterH »

SammaySarkar wrote:#123 is hardly scripted. :ninja:
Sure it's scripted - that *is* a script. :ugeek:

You only could argue about the used "scripting environment" - it's not a "standard script", or however you want to say. :whistle:

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Search & Replace Strings - dropdown MRU ??

Post by Papoulka »

v7.90.0078 - 2009-01-27 21:16
* MRUs: Now, patterns from the following commands are not added to
the command's MRU list anymore when triggered via scripting:
VisualFilter (::filter)
BatchRename (::rename "b")
RegExpRename (::rename "r")
SearchReplace (::rename "s")
KeepParticularChars (::rename "k")
Both scripting and the MRU are terrific features, and I'm sorry to give up either one, especially for S&R and RegExpRename. I'm sure there's at least a historical reason why they do not play nice together; but [REQUEST] maybe this can be revisited.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Search & Replace Strings - dropdown MRU ??

Post by bdeshi »

PeterH wrote:
SammaySarkar wrote:#123 is hardly scripted. :ninja:
Sure it's scripted - that *is* a script. :ugeek:

You only could argue about the used "scripting environment" - it's not a "standard script", or however you want to say. :whistle:
Well, my point was that ::rename is a scripting command that happens to call a function that is also used in GUI.
But the #command just triggers any arbitrary app menu, it's like hardwired kb shortcuts. Blocking MRU from #123 to me seems equivalent to blocking a part of a command just because it was called by a kb shortcut. again, it's because I see #commands similar to a kind of hotkey.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Search & Replace Strings - dropdown MRU ??

Post by TheQwerty »

History: http://www.xyplorer.com/xyfc/viewtopic. ... 556#p30556

We didn't catch that this applied to the CIDs as well as the keyword scripts back then but it does go against the spirit of the "wish":
TheQwerty wrote:The MRU list should be reserved for patterns explicitly typed by the user.

admin
Site Admin
Posts: 66295
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Search & Replace Strings - dropdown MRU ??

Post by admin »

To change it would mean to make an exception of an exception. Does not feel alright. Needs more meditation...

... ok, found a way. :)

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Search & Replace Strings - dropdown MRU ??

Post by Papoulka »

... ok, found a way.
Thank you! This is really useful, especially for RegExp Rename where the strings are complex. Much appreciated.

Post Reply