avendael / atomic-emacs

An atomic implementation of emacs keybindings for the Atom text editor.
MIT License
207 stars 56 forks source link

Rectangles #118

Closed dpolhamus closed 7 years ago

dpolhamus commented 7 years ago

Great package for atom! As a request for additional functionality, I find myself frequently wishing for the rectangle functionality (C-x r).
https://www.gnu.org/software/emacs/manual/html_node/emacs/Rectangles.html

oggy commented 7 years ago

Hi @drexell0680,

The atomic-emacs commands generally play well with Atom's multiple cursors. e.g. to select a "rectangle", you could:

You can also move over and yank it (ctrl-y) somewhere, although if you leave multiple cursor mode, the cursor-local kill rings (i.e. the text you killed) will disappear too.

How much does this accomplish what you need? I'm not opposed to adding something that behaves more like emacs' rectangle commands; I just find this generally does what I need. I was hardly a power user of emacs' rectangle commands, though.

dpolhamus commented 7 years ago

This is exactly what I was looking for, thanks.