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
50.62k stars 3.14k forks source link

CamelHump treatment for opt-[arrows] #21054

Open MihaelBercic opened 3 days ago

MihaelBercic commented 3 days ago

Check for existing issues

Describe the feature

When navigating code, navigating using option-arrow command is a big part of the process. I'm coming from JetBrains' IDEs and having the editor treat _ (underscores) as word separators is a very important part when it comes to languages where snake_case is the syntax.

In JetBrains editors, the setting is called Settings|Editor|Smart keys|Use "CamelHumps" words CamelHump. Which treats names such as thisFeature as two words: this|Feature and this_feature as two words: this|_|feature (| indicating where the cursor stops when navigating with opt-arrow).

Thank you.

Environment

Zed: v0.162.5 (Zed) OS: macOS 15.1.1 Memory: 64 GiB Architecture: aarch64

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

No response