Option to use external programs for common file operations
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 7
- Joined: 2007-04-27, 08:48 UTC
- Location: Aarhus, Denmark
Option to use external programs for common file operations
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.
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.
Re: Option to use external programs for common file operatio
this will take apart the objective of this great file manager, make things better.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.
Impeeza jaja
-
- Junior Member
- Posts: 7
- Joined: 2007-04-27, 08:48 UTC
- Location: Aarhus, Denmark
Re: Option to use external programs for common file operatio
That doesn't make any sense.Impeeza wrote:this will take apart the objective of this great file manager, make things better.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.
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
Re: Option to use external programs for common file operatio
It's already possible to do this, from both the button bar and TC's internal command-line.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.
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
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" .. )
-
- Junior Member
- Posts: 7
- Joined: 2007-04-27, 08:48 UTC
- Location: Aarhus, Denmark
Re: Option to use external programs for common file operatio
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.Balderstrom wrote:It's already possible to do this, from both the button bar and TC's internal command-line.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.
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.
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
Synchronize ButtonBar:
MultiRename ButtonBar:Command: %ProgramFiles%\TotalCMD\TotalCMD.exe /S=S:
Parameters: %X /L="%P" /R="%T"
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...Command: cm_MultiRenameFiles
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
-
- Junior Member
- Posts: 7
- Joined: 2007-04-27, 08:48 UTC
- Location: Aarhus, Denmark
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.
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.
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...
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...
-
- Junior Member
- Posts: 7
- Joined: 2007-04-27, 08:48 UTC
- Location: Aarhus, Denmark
Adding that option wouldn't make TC slower for people who don't use it.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...
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.
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.
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.