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.
clicking ctrl+enter or ctrl+shift+enter on file bug
Moderators: Hacker, petermad, Stefan2, white
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.
Karl
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.
Hope this helps.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
Karl
- ghisler(Author)
- Site Admin
- Posts: 50505
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com