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

My list of “minimal features I need from a text editor” has grown over the years, to include things like multi-caret edit. It’s amazing how something conceptually as simple as “editing text” has grown so powerful and complex over the years.

This one looks good, hopefully the default keybindings match the ones already wired in my brain.



Whadda u use multi caret for?


What DON’T you use multiple cursors for??

- formatting lists - renaming (sets of) variables - changing function signatures - turning lists into commands (eg git status > copy list of modified files > cursor at beginning of line > black … > paste back into terminal)

It’s incredibly useful, and significantly more intuitive (for me) than writing a macro or a regex replace


Well today it was “add a comma at the end of every line in this block” and “replace this word and the next instance of it with this other word”.

It’s just nice to be able to select a bunch of stuff (multiple ways to do that) and then do the same thing to all selections at once (including things like arrow keys to move all the carets at once).


Changing multiline tabs in python.


What does that mean? If it means indenting several lines almost every editor supports that with a selection and tab key.


Could explain what you mean by that?


You select the lines, then hit the tab key. All lines are indented, rather than being replaced by a tab character.


How you remove the tabs? Hitting backspace would clear the selected lines.


    Shift + Tab




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

Search: