CD %clipboard%

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Senyai
Junior Member
Junior Member
Posts: 14
Joined: 2012-03-02, 14:30 UTC

CD %clipboard%

Post by *Senyai »

Hi!
I often have a full path in the clipboard and I want to `CD` there. I used to type `CD shift+ins`before, but recently I found that `just typing` is so much cooler to use in "quick search" rather than "command line". So, I have two suggestions:

* When text is in the clipboard, Ctrl+V or Shift+Ins `CD` there.
* There must be a parameter that inserts clipboard text, like `%C`. Currently I can use `?` parameter, but I want to save typing.

Total Commander ftw!
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

You could use NirCmd for that:

Create a button or user-command with the following:

Code: Select all

nircmd.exe exec show "%COMMANDER_PATH%\totalcmd.exe" /O /T /L=~$clipboard$
This will create a new tab for the path in the clipboard. Change the /OTL to your liking and assign a hotkey.
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Re: CD %clipboard%

Post by *Valentino »

Senyai wrote:* When text is in the clipboard, Ctrl+V or Shift+Ins `CD` there.
* There must be a parameter that inserts clipboard text, like `%C`. Currently I can use `?` parameter, but I want to save typing.
I usually invoke Go To command (assigned Ctrl+G for this) and then Ctrl+V. But first suggestion would be cool!
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

I usually invoke Go To command (assigned Ctrl+G for this) and then Ctrl+V
Funny.
I've assigned <CTRL+G> to cm_EditPath.

:wink:
Holger
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

HolgerK wrote:
I usually invoke Go To command (assigned Ctrl+G for this) and then Ctrl+V
Funny.
I've assigned <CTRL+G> to cm_EditPath.
Yeah, I've meant the same command. I named it "Go To" in my menu.
Senyai
Junior Member
Junior Member
Posts: 14
Joined: 2012-03-02, 14:30 UTC

Post by *Senyai »

Thank you! cm_EditPath is what I was looking for.
Post Reply