Option to use external programs for common file operations

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Lars Blaabjerg
Junior Member
Junior Member
Posts: 7
Joined: 2007-04-27, 08:48 UTC
Location: Aarhus, Denmark

Option to use external programs for common file operations

Post by *Lars Blaabjerg »

I would like the option to use external programs for common file operations just like with packers.

I'm thinking especially about delete file/rename file/move file, but other operations could probably be useful to customize too.

I realize this will probably be a lot slower but sometimes it would be incredibly useful. E.g. renaming/moving files with the multi-rename tool while using subversion will result in a broken working copy that is very cumbersome to fix. If I could insert my own command using parameters like when adding an external command to the button bar I could fix that.

Of course built-in subversion support wouldn't be bad either, but I have a feeling that that is probably not going to happen.
User avatar
Impeeza
Junior Member
Junior Member
Posts: 24
Joined: 2004-04-30, 15:04 UTC

Re: Option to use external programs for common file operatio

Post by *Impeeza »

Lars Blaabjerg wrote:I would like the option to use external programs for common file operations just like with packers.

I'm thinking especially about delete file/rename file/move file, but other operations could probably be useful to customize too.

I realize this will probably be a lot slower but sometimes it would be incredibly useful. E.g. renaming/moving files with the multi-rename tool while using subversion will result in a broken working copy that is very cumbersome to fix. If I could insert my own command using parameters like when adding an external command to the button bar I could fix that.

Of course built-in subversion support wouldn't be bad either, but I have a feeling that that is probably not going to happen.
this will take apart the objective of this great file manager, make things better.
Impeeza jaja
Lars Blaabjerg
Junior Member
Junior Member
Posts: 7
Joined: 2007-04-27, 08:48 UTC
Location: Aarhus, Denmark

Re: Option to use external programs for common file operatio

Post by *Lars Blaabjerg »

Impeeza wrote:
Lars Blaabjerg wrote:I would like the option to use external programs for common file operations just like with packers.

I'm thinking especially about delete file/rename file/move file, but other operations could probably be useful to customize too.

I realize this will probably be a lot slower but sometimes it would be incredibly useful. E.g. renaming/moving files with the multi-rename tool while using subversion will result in a broken working copy that is very cumbersome to fix. If I could insert my own command using parameters like when adding an external command to the button bar I could fix that.

Of course built-in subversion support wouldn't be bad either, but I have a feeling that that is probably not going to happen.
this will take apart the objective of this great file manager, make things better.
That doesn't make any sense.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Re: Option to use external programs for common file operatio

Post by *Balderstrom »

Lars Blaabjerg wrote:I would like the option to use external programs for common file operations just like with packers.

I'm thinking especially about delete file/rename file/move file, but other operations could probably be useful to customize too.
It's already possible to do this, from both the button bar and TC's internal command-line.

You can use CMD.exe's copy/delete/move, or AHK's or any program.

If you mean from F5/F6 etc, I'm not sure what would be gained from that.

Example:

Code: Select all

TOTALCMD#BAR#DATA
cmd.exe /c move
%S ..
wcmIcons.dll,81


0
-1
Move all selected files up one level (to parent dir/folder).

Now if your files have some finicky/special chars that CMD.exe doesn't like you may want to use the %L parameter (create a file list of selected files).
Example:

Code: Select all

TOTALCMD#BAR#DATA
cmd.exe /c TC_MoveToParent.cmd
%L
wcmIcons.dll,81


0
-1

Code: Select all

::
:: TC_MoveToParent.cmd
::
FOR /F "usebackq delims=" %%F IN ("%~1") DO ( MOVE "%%~F" .. )
Lars Blaabjerg
Junior Member
Junior Member
Posts: 7
Joined: 2007-04-27, 08:48 UTC
Location: Aarhus, Denmark

Re: Option to use external programs for common file operatio

Post by *Lars Blaabjerg »

Balderstrom wrote:
Lars Blaabjerg wrote:I would like the option to use external programs for common file operations just like with packers.

I'm thinking especially about delete file/rename file/move file, but other operations could probably be useful to customize too.
It's already possible to do this, from both the button bar and TC's internal command-line.

You can use CMD.exe's copy/delete/move, or AHK's or any program.

If you mean from F5/F6 etc, I'm not sure what would be gained from that.
I would gain the ability to use tc's excellent filemanager without breaking my working copy in subversion. E.g when mass renaming files or doing any other of the before mentioned operations on a lot of files. Specifically but not exclusively the multi-rename tool. You can't do that with the button bar.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Synchronize ButtonBar:
Command: %ProgramFiles%\TotalCMD\TotalCMD.exe /S=S:
Parameters: %X /L="%P" /R="%T"
MultiRename ButtonBar:
Command: cm_MultiRenameFiles
As for "breaking your working copy in subversion", I'm not sure what that has to do with TC or any other File Rename Tool. The files in the SVN repository are expected to be named as they were for the last checkin...
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
Lars Blaabjerg
Junior Member
Junior Member
Posts: 7
Joined: 2007-04-27, 08:48 UTC
Location: Aarhus, Denmark

Post by *Lars Blaabjerg »

if you rename or move a versioned file in a svn working copy without using the correct svn tool (copy/rename/delete) your working copy will be broken because files loose their versioning data. Delete is relatively easily fixed, but moved files are tedious to fix (using tortoisesvn) and copied files lose their history (bad) and data will be duplicated which is not wanted, especially with large files.

I don't want buttons in the button bar. I want TC to use MY command to rename/copy/delete files when I want to.

I don't understand the opposition. TC just cannot do what I want right now, and my suggestion would be a huge improvement to the program.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

File manager should be fast but your suggestion won't be an improvement at this direction.

I think easiest way for you is to add buttons/user-commands/hotkeys for executing applications that support SVN in order to perform copy/move/delete operations within SVN folders.

Maybe it would be useful in some cases to call own functions for base operations (copy/move/delete) but I don't think that it will be realized...
Lars Blaabjerg
Junior Member
Junior Member
Posts: 7
Joined: 2007-04-27, 08:48 UTC
Location: Aarhus, Denmark

Post by *Lars Blaabjerg »

MVV wrote:File manager should be fast but your suggestion won't be an improvement at this direction.

I think easiest way for you is to add buttons/user-commands/hotkeys for executing applications that support SVN in order to perform copy/move/delete operations within SVN folders.

Maybe it would be useful in some cases to call own functions for base operations (copy/move/delete) but I don't think that it will be realized...
Adding that option wouldn't make TC slower for people who don't use it.

Yes, I can write my own tools to do what I want, but that is not the point here. I like TC and what it can do. I don't know of any tools that can do what TC's multirename tool can do, and certainly not with a subversion working copy. E.g rename hundreds of files using complex string compositing.
To tell me that I can use a button is telling me to NOT use TC. I am already using other tools to do it now because using TC is not an option right now. I would like that to be different because those other tools do not offer me what TC does.
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

File manager should primarily make managing files easier. This feature would be improvement in this regard in some cases. And off by default option can't hurt anyone.

Few times I also had the problem with moving versioned files. And switching to Explorer to do it (using TSVN), it really hurts! ;) Fortunately I don't need to do it very often.

Just one thing is not clear to me. I don't like the idea of passing file operations to external tool for all files. So it would need either some manual switch (internal functions / external tools) which is not very user friendly (but still better than now) or some inteligent auto-detection when to use which, but it's probably impossible in general.

I think it would be best to have some hooks for file operations and everyone (well, programmers, but they're often caring individuals who like to share :) could do anything according to their needs. If there is tcmatch for quick search, then why not this.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Yes, as a unnecessary plugin that will do copying/moving/deleting it may be good.
Post Reply