move in place issue (Single Folder/Multiple Folder)

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
nsp
Power Member
Power Member
Posts: 1806
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

move in place issue (Single Folder/Multiple Folder)

Post by *nsp »

When i want to move/rename (+F6) a single folder if I use a template like target.*. TC complain about existing folder.
If i do the same with multiple folder all works as expected -> the content of all folder are moved into target folder.

Why different behavior for the same command ?
How to have the same result for a single file ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: move in place issue (Single Folder/Multiple Folder)

Post by *ghisler(Author) »

I don't understand your report. Can you give me an example? Here is what I tried:
1. Created directory test
2. Created directory target
3. Tried to rename test with Shift+F6 to target.*
-> TC asks whether you want to move test into target.
Author of Total Commander
https://www.ghisler.com
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: move in place issue (Single Folder/Multiple Folder)

Post by *sa16 »

2nsp
How to have the same result for a single file ?
1. Use

Code: Select all

cm_RenMov /T="target.*"
or
2. Select test and .., then Shift+F6.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: move in place issue (Single Folder/Multiple Folder)

Post by *ghisler(Author) »

That's a different function than in place rename. It's as if you pressed F6 and then edited the target field.
It does NOT give me an error. Instead, it moves files from the "test" folder to the "target" folder.
Author of Total Commander
https://www.ghisler.com
User avatar
nsp
Power Member
Power Member
Posts: 1806
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: move in place issue (Single Folder/Multiple Folder)

Post by *nsp »

ghisler(Author) wrote: 2023-07-27, 12:47 UTC That's a different function than in place rename. It's as if you pressed F6 and then edited the target field.
It does NOT give me an error. Instead, it moves files from the "test" folder to the "target" folder.
To get what i mean :
create a test2 folder
select test and test2
press +F6
in he dialog enter <target.*.> and validate
--> both content of test and test2 are "merged" inside target folder

When single folder is selected the behavior is not the same, for the same value <target.*.> !

The hotkey is the same for all case [+F6]:
Single folder Target do not exist -> TC rename the folder
Single folder Target exist -> TC do not ask me to merge content inside existing folder only to move the folder (it is not what i want).
Multiple folder -> all content of selected folder are merged inside target folder. "This is my goal"

I would like to have an option to merge folders additionally to the move into target or a new command cm_merge.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: move in place issue (Single Folder/Multiple Folder)

Post by *ghisler(Author) »

When I enter
<target.*.>
I get an error. Do you mean
target.*.
And if yes, why the .*. at the end? Also I don't get any error when moving a single folder. When I press F6 on folder test2 and enter
target.*.
or simply
target
then it is renamed to target. And if target already existed, the files are just being moved from test2 to target.
Author of Total Commander
https://www.ghisler.com
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: move in place issue (Single Folder/Multiple Folder)

Post by *sa16 »

2nsp
I would like to have an option to merge folders additionally to the move into target or a new command cm_merge.
Why not cm_RenMov (F6)?
User avatar
nsp
Power Member
Power Member
Posts: 1806
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: move in place issue (Single Folder/Multiple Folder)

Post by *nsp »

sa16 wrote: 2023-07-28, 11:15 UTC 2nsp
Why not cm_RenMov (F6)?
using cm_renmov /T=".\" could be a solution !
For me it is boring to have different behavior for the same keystoke and parameter.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: move in place issue (Single Folder/Multiple Folder)

Post by *ghisler(Author) »

I still don't understand where the problem is. :(
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: move in place issue (Single Folder/Multiple Folder)

Post by *ghisler(Author) »

Sorry, but can you please try again to describe the problem?
Here is what I tried:
1. Created 2 folders test1 and test2, and folder target
2. Put files test1.txt in test1 and test2.txt in test2
3. Selected test1 and test2
4. Pressed button with command:
cm_RenMov /T="target.*"
Result: test1.txt and test2.txt are now in folder "target"

1. Created folders test1 and target
2. Put file test1.txt inside test1
3. Selected test1
4. Pressed button with command:
cm_RenMov /T="target.*"
Result: test1.txt is now in folder "target"

So the result is exactly the same whether I select two or one folder.
What am I doing differently from you?
When single folder is selected the behavior is not the same, for the same value <target.*.> !
What do you mean by that? Here it is 100% the same!
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: move in place issue (Single Folder/Multiple Folder)

Post by *ghisler(Author) »

2nsp
Please reply, otherwise I will move this thread to "will not be changed".
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: move in place issue (Single Folder/Multiple Folder)

Post by *ghisler(Author) »

Moderator message

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
Post Reply