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

[BUG]: The editor doesn't switch between INS/OVR modes #337

Open
nalsuriv opened this issue May 27, 2024 · 4 comments
Open

[BUG]: The editor doesn't switch between INS/OVR modes #337

nalsuriv opened this issue May 27, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@nalsuriv
Copy link

Description

The editor always opens files in the 'Insert' mode, i.e., if one wants to add something to previously written text, they can place a cursor wherever they wish, and type in the missing text.

However, if one wants to replace the previously written text, pressing the [insert] button doesn't switch to the 'Overtype' mode (immediate character-for-character replacement), as it does in many plain-text editors.

To Reproduce

  1. Create or open a text file in the application.
  2. Write some text in the file.
  3. Place the cursor anywhere before the end of the text.
  4. Press the 'Insert' key on your keyboard.
  5. Write some more text in the file.
  6. Previous text does not get replaced.
  7. Create or open a text file in another text editor (Kate, Notepad++, Geany, gedit etc).
  8. Write some text in the file.
  9. Place the cursor anywhere before the end of the text.
  10. Press the 'Insert' key on your keyboard.
  11. Write some more text in the file.
  12. Previous text gets replaced with new text as you type it.
  13. Press the 'Insert' key on your keyboard again.
  14. Place the cursor anywhere before the end of the text.
  15. Write some more text in the file.
  16. Previous text does not get replaced.
  17. Compare and contrast.

Expected behavior
The text editor needs to react to the pressing of the [Insert] key the same way other text editors behave (Kate, Notepadqq, etc.), and switch between INS/OVR modes accordingly.

@nalsuriv nalsuriv added the bug Something isn't working label May 27, 2024
@purocean
Copy link
Owner

purocean commented Aug 6, 2024

It seems we can't do this now. microsoft/vscode#1012

@purocean purocean closed this as completed Aug 6, 2024
@nalsuriv
Copy link
Author

nalsuriv commented Aug 6, 2024

VSCode has an extension to override this behavior. Does yn have anything similar, whether in the form of an extension, plugin, or a config file?

@purocean
Copy link
Owner

purocean commented Aug 6, 2024

VSCode has an extension to override this behavior. Does yn have anything similar, whether in the form of an extension, plugin, or a config file?

What extension? Let me see it.

@nalsuriv
Copy link
Author

nalsuriv commented Aug 6, 2024

See here.

https://marketplace.visualstudio.com/items?itemName=DrMerfy.overtype

Edit: here's also a link to its GitHub repo: https://github.com/DrMerfy/vscode-overtype

@purocean purocean reopened this Aug 6, 2024
@purocean purocean added enhancement New feature or request and removed bug Something isn't working labels Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants