Small change to make cm_CopyNamesToClip even more useful

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
kiwerry
Junior Member
Junior Member
Posts: 16
Joined: 2011-04-03, 12:54 UTC
Location: Dresden, Germany

Small change to make cm_CopyNamesToClip even more useful

Post by *kiwerry »

Greetings.
The row ".." at the top of each directory list represents that directory. It would be helpful if the command cm_CopyNamesToClip would copy the directory name to the clip when it is executed.
The command cm_CopyFullNamesToClip copies the full name of the directory to the clipboard if the ".." row is selected, so it should be possible for the simple name as well. Currently the "No files selected" error message is displayed, even though the command refers to "name", not "filename".
Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

Re: Small change to make cm_CopyNamesToClip even more useful

Post by *Fla$her »

If your goal is to get the name of the parent directory, then what is the point of depending on the selected objects?
Create a button or a custom command for a hotkey based on it:

Code: Select all

TOTALCMD#BAR#DATA
mshta
"javascript:close(clipboardData.setData('text','%B'))"
wciconex.dll,202
Copy parent folder name

1

Code: Select all

TOTALCMD#BAR#DATA
%ComSpec% /q/c >nul chcp 65001&<nul set
/p="%B"|clip
wciconex.dll,202
Copy parent folder name

1
Overquoting is evil! 👎
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3292
Joined: 2003-05-06, 11:46 UTC

Re: Small change to make cm_CopyNamesToClip even more useful

Post by *Sir_SiLvA »

kiwerry wrote: 2022-08-27, 12:33 UTC The row ".." at the top of each directory list represents that directory. It would be helpful if the command cm_CopyNamesToClip would copy the directory name to the clip when it is executed.
Isnt that what cm_CopySrcPathToClip and cm_CopyTrgPathToClip are for?
Hoecker sie sind raus!
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Small change to make cm_CopyNamesToClip even more useful

Post by *Hacker »

Sir_SiLvA,
Those copy the whole path. I assume the request is for the current dir name only.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply