clicking ctrl+enter or ctrl+shift+enter on file bug

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
tomer
Junior Member
Junior Member
Posts: 2
Joined: 2010-01-20, 17:12 UTC

clicking ctrl+enter or ctrl+shift+enter on file bug

Post by *tomer »

When highlighting a file/directory and pressing ctrl+enter or shift+ctrl+enter the file name/path appears in the bottom command line prompt.

However, I noticed that the file name is appended in the end with a single space.

This is annoying especially when using this for copy paste purposes of the file name/path.
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Tomer.

Reported behaviour confirmed. - I remember that this has been discussed before. If I am not totally mistaken Christian explained why the trailing space character is useful inside the T.C. commandline. (Just too lazy now to search for the thread right now.)

If you only wish to get the pure filename or the fully qualified filename, there is an alternative which will not produce any trailing space characters: the internal commands cm_CopyNamesToClip and cm_CopyFullNamesToClip. There are more useful "copy names" commands, even more than the 4 which can be found inside the "Mark" main menu.

You can assign a keyboard shortcut for each "copy name" command which you would like to use (or create a button). These "copy names" commands can copy 1 or several names to the clipboard.
totalcmd.inc wrote:cm_CopyNamesToClip=2017;Copy filenames to clipboard
cm_CopyFullNamesToClip=2018;Copy names with full path
cm_CopyNetNamesToClip=2021;Copy names with UNC path
cm_CopySrcPathToClip=2029;Copy source path to clipboard
cm_CopyTrgPathToClip=2030;Copy target path to clipboard
cm_CopyFileDetailsToClip=2036;Copy all shown columns
cm_CopyFpFileDetailsToClip=2037;Copy all columns, with full path
cm_CopyNetFileDetailsToClip=2038;Copy all columns, with UNC path
Hope this helps.
Karl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This isn't a bug - it's done so you can easily add multiple files as separate parameters. Normally a trailing space is ignored by the called programs.
Author of Total Commander
https://www.ghisler.com
Post Reply