Replace when inserting
-
Notepad++ 8.1.4 x64.
Suppose using overwrite mode, i.e. when I typing smth symbols in text are replaced with new ones as expected.
But if I use ctrl+V, new text is inserted and not replacing anything.Is this bug or feature?
Can’t find any option to disable this. -
I am not 100% sure, but I think that’s a fairly standard way of handling Ctrl+V in overwrite mode. Windows notepad doesn’t have overwrite-vs-insert, so I couldn’t replicate there; but when I pulled up OpenOffice Write, it also has Ctrl+V insert the text, whether it’s in overwrite or insert mode; and when I pulled up MS WordPad, even though it doesn’t have a menu option or any toggle that I could see, when I toggled the state of the INS key, I could verify that normal typing switched between insert and overwrite; and when I did Ctrl+V in either mode, it inserted the copied text. So in my not-very-large sample of 2 apps other than Notepad++ with overwrite-vs-insert, both by different software authors (Microsoft vs OpenOffice), 2/2=100% behaved like Notepad++ does.
That said, there isn’t a way to disable that, as it’s just “the way things are done”, AFAICT.
And if you want Ctrl+V to overwrite, all you have to do is select what you want it to overwrite.
-
@peterjones said in Replace when inserting:
And if you want Ctrl+V to overwrite, all you have to do is select what you want it to overwrite.
Yes, I know. But what if I want to replace part of text in such a way, that other part don’t move? To do this I need to calculate length of what I inserting, then select such amount of chars.
No offence, but it is much easier just put cursor where I want and press ctrl+V.
Ok, anyway, I get it, it’s a feature. Thank you.
Is there any bug tracker or smth? -
Nvm, found the bug tracker.
-
@vic3dexe said in Replace when inserting:
found the bug tracker.
It is good forum etiquette to post a link to any issue you open, that you’ve also discussed here. I will do it for you this time:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10769
Also, this thread may interest you: