Page 1 of 1

FAR 3.0 b4691 x64 - changed quotation of paths with spaces using Ctrl+[]

Posted: Tue 24 May, 2016 17:45
by char
Hello,
sometime after build 4685 quotation of paths with spaces was changed. Keyboard shortcut Ctrl+[ and Ctrl+] will insert into command line quoted path, but last backslash character is not inside quotes:
  • Path in panel is:

    Code: Select all

    C:\Program Files (x86)\Windows Photo Viewer\
  • Above mentioned keyboard shortcuts insert into command line this text (note the trailing backslash after closing quote)

    Code: Select all

    "C:\Program Files (x86)\Windows Photo Viewer"\
When I use this path in Microsoft programs (e.g. Office open dialogs) - it is not recognized as a valid path name, backlash must be inside quotation marks. :(

Please bring back old behavior, see PowerSheell TAB autocomplete functionality which also inserts last backlash inside quotation marks.

ChAr

FAR 3.0 b4691 x64 - changed quotation of paths with spaces using Ctrl+[]

Posted: Tue 24 May, 2016 17:48
by HaRT
char wrote: I use this path in Microsoft programs (e.g. Office open dialogs)
Just use ShiftAltIns and the like to copy paths for other programs. The shortcuts you ask about are primarily for composing a command within FAR.

FAR 3.0 b4691 x64 - changed quotation of paths with spaces using Ctrl+[]

Posted: Tue 24 May, 2016 18:04
by 2useven10
@char
You can use Ctrl-F and Ctrl-; shortcuts to insert active/passive path without trailing backslash.

FAR 3.0 b4691 x64 - changed quotation of paths with spaces using Ctrl+[]

Posted: Wed 05 Jul, 2017 16:45
by nuldev
Just tried build 4949 and it is still wrong. Any plans to fix it?

FAR 3.0 b4691 x64 - changed quotation of paths with spaces using Ctrl+[]

Posted: Fri 09 Mar, 2018 07:16
by uwe-sieber
I guess it's not a bug but a feature.
The C standard lib's command line parser interprets a sequence of \" as escaped quotation mark, which means a quotation mark to keep.
Putting the backslash outside the quoted area prevents loosing the backslash within the stdlib.

Still it is quite a change after so many years with trailing backslash inside the quoted area...

FAR 3.0 b4691 x64 - changed quotation of paths with spaces using Ctrl+[]

Posted: Sat 26 May, 2018 18:54
by DbIMKA
I also loved that feature in an earlier versions. Is there a way for me to somehow map/macro/etc this back for my own use, or FAR is not flexible in this area?

Thanks!