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

Visual selection doesn't include char under cursor #114

Open
adaitche opened this issue Jun 17, 2023 · 1 comment
Open

Visual selection doesn't include char under cursor #114

adaitche opened this issue Jun 17, 2023 · 1 comment

Comments

@adaitche
Copy link

The visual selection doesn't include the character under the cursor. For example, in the selection below, pressing y copies only "packag" not "package".

image

This differs from VIM and other VIM emulation modes, where the character under the cursor is part of the selection. And would be copied.

The problem applies not only to copying/yanking but also to deleting and pasting.

@terryzfeng
Copy link
Contributor

terryzfeng commented Apr 22, 2024

Monaco-vim currently visually selects text via block cursor as if it were a normal cursor. Therefore when yanking, you need to yank one extra letter to get the last letter. However, this also means that it is impossible to select the last letter of a line.

This is quite an annoyance for me as this means that with a mouse, I cannot select all the text of a file to copy.

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

No branches or pull requests

2 participants