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

Here you can report bugs found in Far Manager.
Post Reply
char
Posts: 1
Joined: Tue 24 May, 2016 16:53

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

Post by char » Tue 24 May, 2016 17:45

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

User avatar
HaRT
Moderator
Posts: 8476
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 74 times
Been thanked: 135 times

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

Post by HaRT » Tue 24 May, 2016 17:48

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.
Last edited by HaRT on Wed 05 Jul, 2017 17:20, edited 1 time in total.
Reason: Fixed formatting
Фар есть инструмент, а не нянька. © 2009 DrKnS

2useven10
Posts: 3597
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 3 times
Been thanked: 142 times

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

Post by 2useven10 » Tue 24 May, 2016 18:04

@char
You can use Ctrl-F and Ctrl-; shortcuts to insert active/passive path without trailing backslash.

nuldev
Posts: 4
Joined: Fri 18 Nov, 2016 09:15
Has thanked: 1 time

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

Post by nuldev » Wed 05 Jul, 2017 16:45

Just tried build 4949 and it is still wrong. Any plans to fix it?

uwe-sieber
Posts: 1
Joined: Fri 09 Mar, 2018 06:47

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

Post by uwe-sieber » Fri 09 Mar, 2018 07:16

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...

DbIMKA
Posts: 1
Joined: Sat 26 May, 2018 18:52

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

Post by DbIMKA » Sat 26 May, 2018 18:54

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!

Post Reply

Return to “Bug Reports”