Name Exchange/Swap

Features wanted...
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Name Exchange/Swap

Post by TheQwerty »

This is a small and relatively easy request.

When there are two items selected (and only two) a new command will be available in the rename menu (and via CKS). This command will simply exchange the items' names.

Example:
We have two files:
File 1) A.txt
File 2) B.txt

We select them and execute "Name Exchange"

File 1 is renamed to something temporary "xyplorerRules.tmp" (I'd bet there's a built-in API to generate this safely.)
File 2 is renamed to "A.txt"
File 1 is renamed to "B.txt"
All done.


Now I know everyone is thinking this is a dumb idea and I'm just being lazy, and you're right, but I feel it would be pretty simple to add to XY and would be a huge time saver to more people than just me.

---------
And just to beg again; if we could tell XY to execute a catalog item with a group of files (instead of once per a file) it would have been trivial for me to implement this in an external tool. :P

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

Re: Name Exchange/Swap

Post by admin »

I'm having this on my mind since years. Now we are finally two! :)

About the Catalog... all this and more after 6.40 is released...

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

Re: Name Exchange/Swap

Post by TheQwerty »

admin wrote:I'm having this on my mind since years. Now we are finally two! :)
I sure hope you aren't sitting on too many great ideas just because no one else has also wished it! :D
admin wrote:About the Catalog... all this and more after 6.40 is released...
Well you actually told me to remind you after the 6.30 release. Then you included that pesky "the scriptable hotkeys version," so I've been waiting patiently and looking forward to everything that's implemented till then.

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

Re: Name Exchange/Swap

Post by admin »

TheQwerty wrote:
admin wrote:About the Catalog... all this and more after 6.40 is released...
Well you actually told me to remind you after the 6.30 release. Then you included that pesky "the scriptable hotkeys version," so I've been waiting patiently and looking forward to everything that's implemented till then.
I know... but the GUI stuff had priority, and it was worth it. Now 6.40, new license policy, promo work... un mer sin lans schmitz backes! (this was my local dialect and you will have a hard time finding out what it means!)

bergfex
Posts: 188
Joined: 07 Sep 2007 19:06

Re: Name Exchange/Swap

Post by bergfex »

admin wrote:un mer sin lans schmitz backes! (this was my local dialect and you will have a hard time finding out what it means!)
"Typisch kölsch" :lol:

http://translate.google.com/translate?u ... uage_tools

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

Re: Name Exchange/Swap

Post by admin »

bergfex wrote:
admin wrote:un mer sin lans schmitz backes! (this was my local dialect and you will have a hard time finding out what it means!)
"Typisch kölsch" :lol:

http://translate.google.com/translate?u ... uage_tools
Wowee, fast! I live very close to this historic site. The Severins-street is actually identical to the old Roman main road between Cologne and Rome! So quite a few folks have walked here...

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

I had an occasion last night where this name swap would have been useful! Ok, so it only happens about twice a month, but another little feature that could make file management life easier...
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

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

Post by TheQwerty »

*ahem*

Here I am once more really wishing this feature was available. :)

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

Post by admin »

TheQwerty wrote:*ahem*

Here I am once more really wishing this feature was available. :)
Patience, this will be very easy with scripting... :)

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

Post by TheQwerty »

admin wrote:
TheQwerty wrote:*ahem*

Here I am once more really wishing this feature was available. :)
Patience, this will be very easy with scripting... :)
Really? I couldn't think of a way to do it using scripting. All good things come in time though.

I just scripted up a program in AHK to do this instead, but didn't want the wish to have it within XY disappear from your thoughts. :P

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

Post by admin »

TheQwerty wrote:
admin wrote:
TheQwerty wrote:*ahem*

Here I am once more really wishing this feature was available. :)
Patience, this will be very easy with scripting... :)
Really? I couldn't think of a way to do it using scripting. All good things come in time though.

I just scripted up a program in AHK to do this instead, but didn't want the wish to have it within XY disappear from your thoughts. :P
One of the powers of scripting will be new commands that are nowhere in the interface, just in scripting.

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

Post by admin »

TheQwerty wrote:
admin wrote:
TheQwerty wrote:*ahem*

Here I am once more really wishing this feature was available. :)
Patience, this will be very easy with scripting... :)
Really? I couldn't think of a way to do it using scripting. All good things come in time though.

I just scripted up a program in AHK to do this instead, but didn't want the wish to have it within XY disappear from your thoughts. :P
Done! 8)

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

admin wrote:One of the powers of scripting will be new commands that are nowhere in the interface, just in scripting.
I was under the impression that these new commands would mostly be some of the components of existing ones, or building blocks/subroutines, (plus some scripting specific ones, like those needed to trace/debug, etc.) so that we could combine them in new ways...

Thus, I think that new "swapnames" is too valuable a command that could easily be used by anyone, including newbies, to be available only via scripting which is defined as not being for everyone...I'd actually envison it as being within the 'Rename Special' menu, even if a new sub-menu was needed to keep this particular menu from getting too long, by moving some existing ones also into sub-menu.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

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

Post by admin »

j_c_hallgren wrote:
admin wrote:One of the powers of scripting will be new commands that are nowhere in the interface, just in scripting.
I was under the impression that these new commands would mostly be some of the components of existing ones, or building blocks/subroutines, (plus some scripting specific ones, like those needed to trace/debug, etc.) so that we could combine them in new ways...

Thus, I think that new "swapnames" is too valuable a command that could easily be used by anyone, including newbies, to be available only via scripting which is defined as not being for everyone...I'd actually envison it as being within the 'Rename Special' menu, even if a new sub-menu was needed to keep this particular menu from getting too long, by moving some existing ones also into sub-menu.
Once a command works in scripting, it is very easy to "lift it to GUI level". In this case I totally agree! I like it myself a lot! :)

My typical use case: I need the contents of file A with the name of file B (whose contents I don't need at all because it's an out-dated or lo-quality version of A). This is now very easy to do: (1) swap names, (2) delete (the now-called) A. 8)

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

Post by TheQwerty »

Love the new scripting function!

I too agree it needs to be officially lifted to the GUI level.

I think it might also make more sense to error out rather than continue if the user has more than 2 items selected.

Post Reply