Multi Commander Support Forum
Multi Commander => Feature Requests and Suggestions => Topic started by: PrimaMateria on September 12, 2014, 13:44:53
-
Hi,
in last days I started to learn and use gvim. For the easy access I have created new User Command and assigned it to hotkey.
But I hit a problem, when opening files with path containing space, because Gvim considers argument with spaces as separate arguments, even if it is encapsulated in apostrophes .
It would be nice, if there will exist some multi-tag escaping spaces.
Command: MC.Run CMD=gvim ARG="${focusfilepath}"
-
If you need to include " inside the quoted string. Then you can use ' (single quote character) instead of " for the encapsulating the text
ARG=' My text has "quote" characters inside the value'
MC.Run CMD=gvim ARG='"${focusfilepath}"'
-
Awesome that that works. Not so awesome that Linux tools/utilities/shells are so stupid about quotes and escapes. They could of easily disallowed \ and " in filenames and it would of simplified usage of the command-line tools and other utilities.