zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.97k stars 2.83k forks source link

Vim Mode not working at all #13873

Closed DoppleDankster closed 2 months ago

DoppleDankster commented 3 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Vim motions suddenly stopped working all together.

i've used the command palette to enable/disable vim mode -> no effect i've opened the settings.json and set vim mode to false / true -> no effect

NB: I've noticed that when i toggle vim mode from the cmd palette i see extremely briefly the "sync" icon ( the 2 arrows going in circle) at the bottom left for the screen where i should see "normal mode". This behavior is only observed when using the cmd palette

i've updated Zed, restarted it, even rebooted my mac -> no effect.

I'm concidering doing a fresh install of zed but it feels really weird that the settings.json is completely ignored.


Coincidentaly i've changed a few options in the settings.json to see if it was effective. i'm gonna document what i have observed and felt weird here, maybe this is related:

1 - context: Current theme was Zedokai

2 - action: i open the menu bar and update the theme, selected another theme observation: theme changed instantly and the value in the settings.json was updated instantly

3 - action: in the settings.json i reset the value to Zedokai and save the file by once again using the menu at the top observation: theme does not change but the value in the config file stays "Zedokai" which is inconsistent.

4 - action: i reboot zed observation: Zedokai theme is not correctly in place as per the settings.json

Environment

Zed: v0.142.6 (Zed) OS: macOS 14.5.0 Memory: 16 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

Zed.log


notpeter commented 3 months ago

Is it possible your settings.json is invalid JSON and this is caused by #12389.

Perhaps start with an empty settings file {} and see if you can reproduce the issue. There are some enhancements in Zed Preview that will be in Zed stable next week that will better highlight settings.json issues:

Screenshot 2024-07-05 at 12 56 41
DoppleDankster commented 2 months ago

@notpeter case closed ! it's surprising that while it can't parse it's settings.json it also cannot show errors in the file itself...