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 + K behavior #5210

Closed
1 task done
Atelier-Mirai opened this issue Sep 27, 2022 · 2 comments
Closed
1 task done

Ctrl + K behavior #5210

Atelier-Mirai opened this issue Sep 27, 2022 · 2 comments
Labels
bug [core label] editor Feedback for code editing, formatting, editor iterations, etc

Comments

@Atelier-Mirai
Copy link

Atelier-Mirai commented Sep 27, 2022

Check for existing issues

  • Completed

Describe the bug

When the cursor is between lines, delete up to the end of the line.
However, when the cursor is at the end of a line, the line is deleted.

To reproduce

If the cursor is moved to the middle of a line and Ctrl + K, the line is deleted up to the end of the line.
If the cursor is moved to the end of a line with Ctrl + E and then Ctrl + K, the line is deleted.

Expected behavior

When the cursor is at the end of a line, Ctrl + K will delete the newline character at the end of the line and the next line will follow.

The following sample code example illustrates this.

int main(void){Ctrl + K
  printf("Hello World");
}

Current behavior:

  printf("Hello World");
}

Expected behavior:

int main(void){  printf("Hello World");
}

Environment

Zed 0.54.1 – /Applications/Zed.app
macOS 12.6
architecture arm64

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

@Atelier-Mirai Atelier-Mirai added bug [core label] triage labels Sep 27, 2022
@JosephTLyons JosephTLyons added editor Feedback for code editing, formatting, editor iterations, etc and removed triage labels Oct 25, 2022
@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
@notpeter
Copy link
Member

Confirming I can reproduce this and it's still an issue. Thanks for reporting @Atelier-Mirai

@github-actions github-actions bot added the stale Label used by `stale` action label Jan 14, 2025
@jinschoi
Copy link

jinschoi commented Jan 14, 2025

This is still happening. I looked into it a bit and added a comment in a related thread:

@github-actions github-actions bot removed the stale Label used by `stale` action label Jan 21, 2025
@devzeth devzeth closed this as completed Feb 20, 2025
@zed-industries zed-industries deleted a comment from github-actions bot Feb 20, 2025
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

No branches or pull requests

5 participants