Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Other editors, if the content is not on the screen, will not perform the undo action unless the content is actually visible.

Really? What editor does this? Vim/Neovim definitely will undo the change with a single 'u' press, and every GUI editor I've ever used will undo the change immediately with a single ctrl+z.



Ah, thanks for the correction. I'm wrong on how common this is.

I just tested CLion, VS Code, and Sublime Text. I thought all three behaved as described, but only CLion did. I wish it was more common though, I find it a lot more intuitive and clear on what's happening.


Huh, that's interesting. I've only used VSCode and Sublime, never CLion. I'm honestly not sure how I'd feel going the other way, but I could see the behavior being annoying if you're not expecting it.


Just tried Goland and it works the way you describe. Emacs is immediate restore. CLion and Goland are both JetBrains IDEs, so no surprise they use the same mechanism. FWIW, I like it and think it's preferable.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: