Page 1 of 1
Put string with spaces in quotes
Posted: 08 Dec 2006, 23:48
by Olegus
Can Salamander take string (with spases) in quotes, before inserting to the Command Line?
(ex: when inserting string with spaces as a param (only one) of some command)
Or take filename with spases in quotes, when inserting to the Command Line? (Alt-Enter)
Posted: 09 Dec 2006, 12:10
by SvA
I second this request. Cases, where quoting long filenames are rather rare. In most cases, quotes are either required or allowed.
There are countless instances where I could skip going to the left in the command line to insert those quotes.
On the other hand, I usualy need quoted full paths, which I build by adding the path first (CTRL-ß or CTRL-´ on my German keyboard) and then adding the filename (CTRL-RETURN). Salamander needed to appy some logic to automatically detect such a situation and propperly adjust the quotes, much like path completion on the Windows command line does.
An easyer solution (though not as comprehensive) was to leave out the space at the end of filenamed inserted with CTRL-ENTER, so that the closing quote could be appended without a backspace first. This of course will not help me where I forgot to place the initial quote before fetching the path or filename.
Since available hotkeys and modifyer keys are limited (not only by the keyboard but also by a user's memory) I can think of two possibilities of providing enhanced inserts into the command line:
1.) Provide choices in the command line's context menu
2.) use some special macro stings which you detect and replace on the fly (i.e. as soon as it is fully entered) . e.g.
#qlp# -> insert Qoted Left Path (dir\filename)
#8ad# -> insert 8.3 (i.e. short filename) Active Directory
#qs,f# -> insert Quoded Selection seperated by , (comma) Filenames
...
a complete, easy to remember scheme needed to be developped.