Command bar ehancement (completion and %variable)

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

User avatar
nsp
Power Member
Power Member
Posts: 1951
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Command bar ehancement (completion and %variable)

Post by *nsp »

I use a lot the command line with some cm_... or em_... command TC can auto complete/suggest folder/file names at any place but cannot help with it's own command.

/// I know it is old fashioned ;) but it is the most efficient way i've found to use TC and other software (emacs, autocad, ...)

Could it be possible to have such completion also with a specific hotkey or with a prefix like ? or * and only for first position ??

I've also noticed that none of the %N %O %P %F ... %T %L %UL %WL are interpreted is it a bug or a missing feature ??
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

Support++
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
stifani
Junior Member
Junior Member
Posts: 19
Joined: 2004-05-13, 02:32 UTC

Post by *stifani »

hello,

i was looking for this thing too.
i hope in the next release of TC, MR. Ghisler will add this enhancement :D
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

nsp wrote:Could it be possible to have such completion also with a specific hotkey or with a prefix like ? or * and only for first position ??
Sounds nice. I don't use completion yet, maybe this would be a reason to change this.

nsp wrote:I've also noticed that none of the %N %O %P %F ... %T %L %UL %WL are interpreted
If they were interpreted, this would break compatibility to command line variables like below, wouldn't it?

Code: Select all

cmd /k for %n in (*.*) do @echo %n
[Edit:] Maybe both would be possible, if only upper case internal variables would be expanded.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

StatusQuo wrote:[Edit:] Maybe both would be possible, if only upper case internal variables would be expanded.
Or if TC will treat '%%' as just percent sign like in bat-files. :wink:

Code: Select all

cmd /k for %%n in (*.*) do @echo %%n
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

MVV wrote:Or if TC will treat '%%' as just percent sign like in bat-files. Wink
Indeed, sounds nice.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
ceav
Junior Member
Junior Member
Posts: 6
Joined: 2009-09-14, 22:35 UTC

Re: Command bar ehancement (completion and %variable)

Post by *ceav »

nsp wrote:I use a lot the command line with some cm_... or em_... command TC can auto complete/suggest folder/file names at any place but cannot help with it's own command.
I like this function so much. Who can use a plugin to realize it ?-----including cm_XX, em_XX and ALIAS
happytc
Junior Member
Junior Member
Posts: 42
Joined: 2011-01-21, 17:47 UTC

Post by *happytc »

I have done the command completion of TC through TCLive software. Now only Chinese version! But you can use it. No problem!

http://happytclive.googlecode.com/issues/attachment?aid=-2252249097082952663&name=110107094000.jpg&token=0792931ca0c26129157c3653a5f8b5db&inline=1
happytc
Junior Member
Junior Member
Posts: 42
Joined: 2011-01-21, 17:47 UTC

Post by *happytc »

User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

MVV wrote:
StatusQuo wrote:[Edit:] Maybe both would be possible, if only upper case internal variables would be expanded.
Or if TC will treat '%%' as just percent sign like in bat-files. :wink:

Code: Select all

cmd /k for %%n in (*.*) do @echo %%n
It would actually be really nice if TC had an option to start a command shell if it doesn't recognize the typed command as an internal action.

Then you could just do things like:
ASSOC | MORE
From TC's command line, without needing to preface the action with CMD.exe /k or making an alias for all of the possible command-line actions.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Balderstrom wrote:It would actually be really nice if TC had an option to start a command shell if it doesn't recognize the typed command as an internal action.

Then you could just do things like:
ASSOC | MORE
Just use any noclose replacer and Shift+Enter that will start cmd with given command line. :wink:
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

MVV wrote:
StatusQuo wrote:[Edit:] Maybe both would be possible, if only upper case internal variables would be expanded.
Or if TC will treat '%%' as just percent sign like in bat-files. :wink:

Code: Select all

cmd /k for %%n in (*.*) do @echo %%n
This would be fairly easy to implement, and it could be made available to any program, not just cmd.exe (other scripting programs, editors, etc).
When the OR symbol "|" is the first character in TC's command prompt it would modify behaviour as MVV suggests, eg:
|cmd /K @ECHO OFF&FOR /F "delims=" %%F IN (%S) DO ECHO %%F
Prior to sending the string off to the cmd.exe interpreter for parsing, TC changes all "%%" to % and expands its own internal single letter %vars.
happytc
Junior Member
Junior Member
Posts: 42
Joined: 2011-01-21, 17:47 UTC

Post by *happytc »

MCHAL
Junior Member
Junior Member
Posts: 8
Joined: 2009-03-25, 14:34 UTC

Post by *MCHAL »

Is it possible to use aliases for opening pairs of folders in the current version of TTC, each on a different pane, just like XYPlorer ( http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=5204 ) and DOpus (http://resource.dopus.com/viewtopic.php?f=3&t=10389&p=76164&hilit=alias&sid=d64ee37fc541524509adfe06a0eecf1a#p76164 ).

IMHO, this is a must-have feature. I would like so much to see it implemented...

Thanks.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

MCHAL, you may create constant user-command that will open same pair of folders in both TC panels, just use following command:

Code: Select all

Command: cd
Parameter: X:\Path\In\Active
Work Path: X:\Path\In\Inactive
Also you may use same trick in directory hotlist (Ctrl+D), just specify path for active panel after cd command and path for inactive one in field 'Target path:'.
Also you may use TCMC to set paths for both panels, it allows to choose, use new tabs or not and use left/right or source/target.
Post Reply