Page 1 of 2
Name Exchange/Swap
Posted: 05 Oct 2007 18:11
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.

Re: Name Exchange/Swap
Posted: 05 Oct 2007 18:52
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...
Re: Name Exchange/Swap
Posted: 05 Oct 2007 19:13
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!
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.
Re: Name Exchange/Swap
Posted: 05 Oct 2007 19:20
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!)
Re: Name Exchange/Swap
Posted: 05 Oct 2007 19:34
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"
http://translate.google.com/translate?u ... uage_tools
Re: Name Exchange/Swap
Posted: 05 Oct 2007 20:02
by admin
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...
Posted: 05 Oct 2007 20:25
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...
Posted: 17 Jan 2008 13:21
by TheQwerty
*ahem*
Here I am once more really wishing this feature was available.

Posted: 17 Jan 2008 13:30
by admin
TheQwerty wrote:*ahem*
Here I am once more really wishing this feature was available.

Patience, this will be very easy with scripting...

Posted: 17 Jan 2008 14:06
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.

Posted: 17 Jan 2008 14:12
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.

One of the powers of scripting will be
new commands that are nowhere in the interface, just in scripting.
Posted: 20 Jan 2008 19:16
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.

Done!

Posted: 20 Jan 2008 19:31
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.
Posted: 20 Jan 2008 20:26
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.

Posted: 21 Jan 2008 13:08
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.