Skip to content

Allow to use key shortcut to operate multi-cursors #212

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leokayson
Copy link

Allow to use key shortcut to operate multi-cursors. You can use:
ctrl_shift_up: add_cursor_above
ctrl_shift_down: add_cursor_below
alt_shift_up: delete_cursor_above
alt_shift_down: delete_cursor_above
If you merge this PR, I can update corresponding description for multi cursors in wiki.

Besides, I just recommend code should set "ctrl_home" and "ctrl_end" to go top and bottom of the buffer and I can use "ctrl_up" and "ctrl_down" to add cursor above/below. And I believe "ctrl_home" and "ctrl_end" are more logical.

What's more, remove 2 bugs:
1. Removed the duplicate Zsh check in quickcomment.lua and added a check for Batch.
2. Removed the multi-cursors bug when anyone of them is at the top or end. Reproduce steps:
a. Create multiple cursors and one of them is at the top or end of the doc.
b. Move cursor up or down.
c. Type sth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant