Jelmerro / Vieb

Vim Inspired Electron Browser - Vim bindings for the web by design
https://vieb.dev
GNU General Public License v3.0
1.32k stars 63 forks source link

Double quotes are escaped and included in string #556

Closed GameFuzzy closed 4 months ago

GameFuzzy commented 5 months ago

Checklist

Describe the bug When trying to set a multiword string as described in the docs below the double quotes are instead escaped and included in said string. image

To Reproduce :set vimcommand="gnome-terminal -- vim"

Expected behavior The string should look like this gnome-terminal -- vim

Extra information Should probably also add that I get this error whenever i run vieb in case it's somehow related:

2024-04-12 23:42:54.598 Vieb[88298:139493430] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
Sending urls to existing instance /Users/fuzzy/Library/Application Support/Vieb/

Assuming this bug is exclusive to MacOS since it probably would've been reported already otherwise.

Specs

Jelmerro commented 5 months ago

Thank you for reporting this issue. This is a big problem, and one that needs fixing, but it's once again a breaking change, so I'm taking this opportunity to change some other things for the big 12 release now. It will probably mean that only double quotes will remain working, as this is in line with JSON that's also used for object and array parsing, which caused string escaping to not work exactly the same as before.

As for the startup error, these are Electron/Chromium related, and not in any way related to Vieb's code, otherwise they would be in the :internaldevtools, also see --devtools. Those logs are from the main process, which basically just handles setting up the (Electron) window and responding to internal messages.

Jelmerro commented 4 months ago

Implemented in 12.0.0 :tada: