Dragging files to subfolders

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
sdqdlwq
Junior Member
Junior Member
Posts: 9
Joined: 2020-10-11, 15:08 UTC

Dragging files to subfolders

Post by *sdqdlwq »

In TC: Dragging a file to a subfolder defaults to copying the file to that location.
Is it possible to change the default value from copy to move?
How do I change that default?
Thank you!

Moderator message from: white » 2023-02-13, 09:00 UTC

Removed same text in Chinese.
Please use English only in this forum.
give it a shot
User avatar
HerbieH
Member
Member
Posts: 148
Joined: 2003-02-11, 10:04 UTC

Re: Dragging files to subfolders

Post by *HerbieH »

You may know it, but anyway: Holding down the 'ALT' key moves the file.

Ps. You wrote: give it a shot
My answer: gladly :roll:.
Last edited by HerbieH on 2023-02-13, 09:48 UTC, edited 1 time in total.
HerbieH*
-Keep on makin' music!
User avatar
sdqdlwq
Junior Member
Junior Member
Posts: 9
Joined: 2020-10-11, 15:08 UTC

Re: Dragging files to subfolders

Post by *sdqdlwq »

HerbieH wrote: 2023-02-13, 09:38 UTC You may know it, but anyway: Holding down the 'ALT' key moves the file.
Thanks for your reply.
Yes, I know: holding down the ALT or Shift key while dragging and dropping will move the file.
However, I am using drag and drop more to move files than to copy them.
So I want the default to move the file when dragging and dropping.
give it a shot
User avatar
petermad
Power Member
Power Member
Posts: 14914
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Dragging files to subfolders

Post by *petermad »

HerbieH wrote: 2023-02-13, 09:38 UTC You may know it, but anyway: Holding down the 'ALT' key moves the file.
Or holding down the the Shift-key.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
sdqdlwq
Junior Member
Junior Member
Posts: 9
Joined: 2020-10-11, 15:08 UTC

Re: Dragging files to subfolders

Post by *sdqdlwq »

petermad wrote: 2023-02-13, 09:47 UTC
HerbieH wrote: 2023-02-13, 09:38 UTC You may know it, but anyway: Holding down the 'ALT' key moves the file.
Or holding down the the Shift-key.
Thank you for your reply.
Because when I use the drag and drop function, it is more about moving files than copying them.
So I would like to have an option to change the default value of the drag and drop function.
It is up to the user to set the default value of the drag and drop function to copy or move files according to their usage habits.
give it a shot
User avatar
Stefan2
Power Member
Power Member
Posts: 4193
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Dragging files to subfolders

Post by *Stefan2 »

sdqdlwq wrote: 2023-02-13, 10:05 UTC Because when I use the drag and drop function, it is more about moving files than copying them.
So I would like to have an option to change the default value of the drag and drop function.

There must be already an thread in the Suggestions sub-forum, you may up-vote there.....






 
User avatar
sdqdlwq
Junior Member
Junior Member
Posts: 9
Joined: 2020-10-11, 15:08 UTC

Re: Dragging files to subfolders

Post by *sdqdlwq »

Stefan2 wrote: 2023-02-13, 10:22 UTC
sdqdlwq wrote: 2023-02-13, 10:05 UTC Because when I use the drag and drop function, it is more about moving files than copying them.
So I would like to have an option to change the default value of the drag and drop function.

There must be already an thread in the Suggestions sub-forum, you may up-vote there.....


Thank you for your reply.

Moderator message from: white » 2023-02-13, 11:32 UTC

Fixed quotation.
give it a shot
User avatar
sdqdlwq
Junior Member
Junior Member
Posts: 9
Joined: 2020-10-11, 15:08 UTC

Re: Dragging files to subfolders

Post by *sdqdlwq »

Originally, I thought I could solve the problem by adding a "custom option (parameter)" to the wincmd.ini file.
Just now I tried to use right-click drag-and-drop files, and multiple options popped up.

The reason I didn't use right click drag and drop files before was because I had been using a global mouse gesture software.
When using the mouse gesture software, the right click does not enable the drag and drop file function.
The mouse gesture software is an important productivity software for me and I have no intention of giving it up at this time.

It seems I thought this problem simple.
give it a shot
User avatar
sdqdlwq
Junior Member
Junior Member
Posts: 9
Joined: 2020-10-11, 15:08 UTC

Re: Dragging files to subfolders

Post by *sdqdlwq »

My English is not very expressive, so I hope you can read it.

Thanks for all your replies and help!
give it a shot
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6532
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Dragging files to subfolders

Post by *Horst.Epp »

sdqdlwq wrote: 2023-02-13, 11:26 UTC Originally, I thought I could solve the problem by adding a "custom option (parameter)" to the wincmd.ini file.
Just now I tried to use right-click drag-and-drop files, and multiple options popped up.

The reason I didn't use right click drag and drop files before was because I had been using a global mouse gesture software.
When using the mouse gesture software, the right click does not enable the drag and drop file function.
The mouse gesture software is an important productivity software for me and I have no intention of giving it up at this time.

It seems I thought this problem simple.
I have the StrokeIt gesture and can still use right click drag and drop.
There is no intrinsic problem with drag and drop using such software.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3737)
TC 11.03 x64 / x86
Everything 1.5.0.1383a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
User avatar
sdqdlwq
Junior Member
Junior Member
Posts: 9
Joined: 2020-10-11, 15:08 UTC

Re: Dragging files to subfolders

Post by *sdqdlwq »

Hello, thank you for your reply.

The gesture software I am using is StrokesPlus.net .
It seems that, with some complex code, it is possible to achieve the functionality you mentioned.
But it is very challenging for me.

Especially for a non-IT person like me, and not native English speaker.

In my part of the world, for indescribable reasons, I can't even use Google Translate. :cry:
One has to take certain steps to barely use Google Translate.
give it a shot
Fla$her
Power Member
Power Member
Posts: 2390
Joined: 2020-01-18, 04:03 UTC

Re: Dragging files to subfolders

Post by *Fla$her »

2sdqdlwq
You can use D&D_MoveInsteadOfCopy.ahk for this:

Code: Select all

;———————————————————————————————————————————————
; Hold Shift when pressing LMB in TC file panels
;———————————————————————————————————————————————
#NoEnv
#NoTrayIcon
#KeyHistory, 0
SetBatchLines,-1

WinWaitClose, ahk_class TTOTAL_CMD
ExitApp

#IfWinActive ahk_class TTOTAL_CMD
MouseGetPos,,,, control
If control = TMyListBox
{~LButton::
{  Send, {Shift down}
   KeyWait, LButton
   Send, {Shift up}
}
Return
}
Run it with autorun.wdx, where the entry in autorun.cfg will be like this:

Code: Select all

ShellExec /T "%COMMANDER_PATH%\Scripts\AutoHotKey\AutoHotkeyU%AUTORUN_OSARCH%.exe" '"%COMMANDER_PATH%\Scripts\AutoHotKey\D&D_MoveInsteadOfCopy.ahk"'
About the translation:
sdqdlwq wrote: 2023-02-14, 03:35 UTCOne has to take certain steps to barely use Google Translate.
This is an unreliable translator. Install or unpack QTranslate, try different translators, display the best of them (for example, Microsoft) and configure the keyboard shortcuts for yourself.
Overquoting is evil! 👎
User avatar
sdqdlwq
Junior Member
Junior Member
Posts: 9
Joined: 2020-10-11, 15:08 UTC

Re: Dragging files to subfolders

Post by *sdqdlwq »

2Fla$her
Thank you very much.
Haven't been on the forum for a while for personal reasons.
give it a shot
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6532
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Dragging files to subfolders

Post by *Horst.Epp »

Fla$her wrote: 2023-02-14, 14:49 UTC 2sdqdlwq
You can use D&D_MoveInsteadOfCopy.ahk for this:
This script has a strange negative side effect.
While it runs, you can no longer use the Copy function key (F5)
It will try to copy a file to itself.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3737)
TC 11.03 x64 / x86
Everything 1.5.0.1383a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
Fla$her
Power Member
Power Member
Posts: 2390
Joined: 2020-01-18, 04:03 UTC

Re: Dragging files to subfolders

Post by *Fla$her »

I can't confirm. On F5, this should not affect at all, only holding the LMB.
Overquoting is evil! 👎
Post Reply