Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CamelHump treatment for alt-[arrows] keys #21054

Open
1 task done
MihaelBercic opened this issue Nov 22, 2024 · 2 comments
Open
1 task done

CamelHump treatment for alt-[arrows] keys #21054

MihaelBercic opened this issue Nov 22, 2024 · 2 comments
Labels
editor Feedback for code editing, formatting, editor iterations, etc feature [core label] navigation Feedback for workspace navigation, breadcrumbs, definitions, files, panels, etc

Comments

@MihaelBercic
Copy link

Check for existing issues

  • Completed

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

@notpeter notpeter changed the title CamelHump treatment for opt-[arrows] CamelHump treatment for option-[arrows] Dec 4, 2024
@notpeter notpeter changed the title CamelHump treatment for option-[arrows] CamelHump treatment for alt-[arrows] keys Dec 4, 2024
@notpeter
Copy link
Member

notpeter commented Dec 4, 2024

Gotcha, so basically you'd like to have a setting which alters the word boundary behavior such that you can do word navigation (alt-left, alt-right) which considers CamelCaseWords or snake_case_words as word boundaries.

@notpeter notpeter added editor Feedback for code editing, formatting, editor iterations, etc navigation Feedback for workspace navigation, breadcrumbs, definitions, files, panels, etc and removed triage labels Dec 4, 2024
@MihaelBercic
Copy link
Author

MihaelBercic commented Dec 4, 2024

Yes, that is correct.

Link to another (more popular issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor Feedback for code editing, formatting, editor iterations, etc feature [core label] navigation Feedback for workspace navigation, breadcrumbs, definitions, files, panels, etc
Projects
None yet
Development

No branches or pull requests

2 participants