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

ctrl-a doesn't move to beginning of line #11129

Closed
1 task done
algesten opened this issue Apr 28, 2024 · 4 comments
Closed
1 task done

ctrl-a doesn't move to beginning of line #11129

algesten opened this issue Apr 28, 2024 · 4 comments
Labels
bug [core label] editor Feedback for code editing, formatting, editor iterations, etc

Comments

@algesten
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

On macOS, when I press ctrl-a to "Move to beginning of line", Zed jumps to the first non-whitespace character. Only if I press ctrl-a again does it jump to the actual beginning of line. What's worse is that if I press ctrl-a when I am at the (true) beginning, it jumps forward to the non-whitespace character again.

VSCode (correct behavior):

vscode

Zed jumping to beginning of non-whitespace (wrong behavior):
zed1

Zed jumping back/forth on ctrl-a (pathological):
zed2

Environment

Zed: v0.132.3 (Zed)
OS: macOS 13.6.6
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.

No response

@algesten algesten added admin read bug [core label] labels Apr 28, 2024
@algesten algesten changed the title ctrl-a doesn't jump to start of line ctrl-a doesn't jump to beginning of line Apr 28, 2024
@algesten algesten changed the title ctrl-a doesn't jump to beginning of line ctrl-a doesn't move to beginning of line Apr 28, 2024
@Moshyfawn
Copy link
Member

This behaviour seems to be described in this enhancement ticket. Let me know if it'd be fair to close this issue in favour of #7863.

@Moshyfawn Moshyfawn added editor Feedback for code editing, formatting, editor iterations, etc and removed triage labels Apr 29, 2024
@failable
Copy link

Isn't that desired behavior??? In other editors, one would even require an extension to achieve the same effect (e.g. https://github.com/alezost/mwim.el for Emacs). I've thought this feature is built in Zed.

@algesten
Copy link
Author

@Moshyfawn I don't know. That other issue seems to be about deletion. I talk about moving. Maybe they are the same underlying problem?

@failable I don't mind some people want this behavior. I've used code editors since the early 90s and ctrl-a/e for beginning/end of line is so deep in my muscle memory that it stopped me going further with Zed currently.

@algesten
Copy link
Author

Fixed by #15981

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

Successfully merging a pull request may close this issue.

4 participants