yn
yn copied to clipboard
[BUG]: The editor doesn't switch between INS/OVR modes
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
- Create or open a text file in the application.
- Write some text in the file.
- Place the cursor anywhere before the end of the text.
- Press the 'Insert' key on your keyboard.
- Write some more text in the file.
- Previous text does not get replaced.
- Create or open a text file in another text editor (Kate, Notepad++, Geany, gedit etc).
- Write some text in the file.
- Place the cursor anywhere before the end of the text.
- Press the 'Insert' key on your keyboard.
- Write some more text in the file.
- Previous text gets replaced with new text as you type it.
- Press the 'Insert' key on your keyboard again.
- Place the cursor anywhere before the end of the text.
- Write some more text in the file.
- Previous text does not get replaced.
- 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.