Lst2Clip - copy user defined paths to the clipboard

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Lst2Clip - copy user defined paths to the clipboard

Post by *Lefteous »

2English users

Here is a new addon for Total Commander: It's called "List To Clipboard" (Lst2Clip.exe)

Taken from Readme.txt

Code: Select all

This program is an improvement to the internal commands

cm_CopyFullNamesToClip
cm_CopyNamesToClip
cm_CopyNetNamesToClip
cm_CopySrcPathToClip
cm_CopyToClipboard
cm_CopyTrgPathToClip

Using this tool you are to able to define exactly how paths are copied.

See the included Readme.txt for more details. If you encounter a bug don't hesitate to report it to me.
2Deutsche Benutzer

Dies ist ein neues Add-on für den Total Commander: Es heißt "List To Clipboard" (Lst2Clip.exe)

Aus der Liesmich.txt

Code: Select all

Dieses Programm ist als Ergänzung zu den internen Kommandos

cm_CopyFullNamesToClip
cm_CopyNamesToClip
cm_CopyNetNamesToClip
cm_CopySrcPathToClip
cm_CopyToClipboard
cm_CopyTrgPathToClip

gedacht. Anders als bei den internen Kommandos kann man genau festlegen wie die Pfade kopiert werden.

Download

http://lefteous.de/tc/archives/lst2clip/lst2clip_1_02.zip
Last edited by Lefteous on 2008-01-21, 12:53 UTC, edited 1 time in total.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Version 1.01 has been released:
http://members.fortunecity.de/lefteous/lst2clip_1_01.zip

Changes:
bugfix: The parameters %P and %T should now work properly.
new feature: The parameters /U converts paths of mapped drives into UNC network paths.
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

now, this seems like a great little addon, I'm sure I'll find a bunch of uses for it.

One thing, and I apologize if this is already in the addon, I'm not at home at the moment, and can't test it: I would like to see the ability to just copy the folder name, i.e. if I'm in folder "d:\mystuff\tools\" I would like an option to just copy "tools" to the clipboard. Also, if I've currently selected file "d:\mystuff\tools\file.txt" I would still like only "tools" copied to cb.

I didn't see this in the readme, but if it's in there, then please let me know ;)
license #76904
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

Oh, it would also be nice to be able to copy long filename without extension. I know this could easily be accomplished through one of the built-in commands (replacing ".exe" with "" for instance) but I'd still like it as an option.
license #76904
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2TucknDar

1. Just copy the folder name:
No way to achieve this at the moment. The current path is independent from current selection.

2. Long filename without extension:
Replacing will not work because your selection could include file names with other extensions.

It seems there is a lot space for improvements...
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

thanks for the reply. Some comments:

1. Too bad, this is something I'd really like to see, I guess I could attempt some batch-command for this, though...

2. I suppose it is possible to strip the extension if only one file is selected, but what if I could replace ".*" with ""? That would just strip out all extensions, to allow for easy creation of folders (for instance), i.e. "file1.txt" and "file2.exe" could easily be made into folders "file1" and "file2"...

and yes, there is still room for improvements ;) but I still like the idea of this addon a lot, as path-copying is a bit limited in TC, IMO.
license #76904
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2 english users

Version 1.02 has been released:
http://members.fortunecity.de/lefteous/lst2clip_1_02.zip

Changes:
  • Copying the file extension can now be omitted.
  • You may now limit the path depth.
  • The backslash at the end of the path can be omitted.
Take a closer look into the included readme for more details.
http://members.fortunecity.de/lefteous/readme.htm

2 german users

Version 1.02 wurde veröffentlicht:
http://members.fortunecity.de/lefteous/lst2clip_1_02.zip

Veränderungen:
  • Die Dateierweiterung kann jetzt weggelassen werden.
  • Die Pfadtiefe kann nun eingestellt werden.
  • Der Rückwärtsschrägstrich am Ende eines Pfades kann jetzt entfernt werden.
Alle Änderungen sind in der liesmich-Datei genau beschrieben.
http://members.fortunecity.de/lefteous/liesmich.htm

2TucknDar

1. Just copy the folder name:

Command: Lst2Clip.exe /PD:"0"="1" /RB
Parameters: /L:"%P"

The parameter /PD is quite powerful. You can specify how many parts of the path are copied. The above settings means no directory at the beginning and 1 directory (can also be a file) at the end.

2. Long filenames without extension:

Command: Lst2Clip.exe /NE
Parameters: /L:"%L"
Wombat
Junior Member
Junior Member
Posts: 9
Joined: 2004-01-21, 12:17 UTC

Post by *Wombat »

G'day
Is it possible to copy list of file names to one line. as opposed to each file name being on seperate line

Kind regards
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Wombat

No it's currently not. Your wish will taken to the wish list.
Wombat
Junior Member
Junior Member
Posts: 9
Joined: 2004-01-21, 12:17 UTC

Post by *Wombat »

Thanks for that
User avatar
chunwaihome
Junior Member
Junior Member
Posts: 75
Joined: 2005-02-09, 04:38 UTC

Post by *chunwaihome »

Hi,
I find a bug in the software.
1)When i copy "chinese word"with CTRL +C, it can show correctly.
But it will become ??? used the software.

2) its readme write add hotkey in"Totalcmd.inc"
I want to know how i add command and parameter in it.
e.g.

Command: Lst2Clip.exe /NE
Parameters: /L:"%F"
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

Hej Lefti... is there any way to add GUI to program ?
It is really pain to change start menu each time.
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2chunwaihome
2majkinetor
I'm sorry I have decided not to continue the development of List2Clipboard. With the introduction of Content plugins it doesn't make sense to add more features to this standalone program.

There is a great packer plug-in called WDXInfoPacker which allows you to save any kind of file-related information to a text file. It comes with a small utility that copies this information to clipboard instead of saving it to a text file.

The next TC version will have a feature to copy the current visible custom column view to clipboard.

Some day I will release a content plug-in which includes the fields that List2Clipboard offered.
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

WDXInfoPacker is just an good idea for me. Very good idea.

txh for your answer... we wait new TC.
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Scripts
http://ppro.totalcmd.net/Scripts/ClipFileList.htm
and
http://ppro.totalcmd.net/Scripts/ClipListDialog.htm
have some functions as compared with List2Clip.
Welcome!
Single user license #329241
PowerPro scripts for Total Commander
Post Reply