Hacker News new | ask | show | jobs
by TwentyPosts 1175 days ago
> Another story is that some people pointed out a missing feature - moving lines or blocks of text up and down, as more advanced IDEs do. I volunteered to implement this feature, however I'm getting impression that the community is a bit puristic when it comes to features like that, based on feedback I get.

Wait, what does this add? I feel like in Helix I would just select a bunch of lines (say, via treesitter or the x command), and then I'd delete them, and paste them somewhere else. Could you elaborate what the difference is between this and 'moving lines or blocks of text up and down'?

1 comments

Yeah, you can use registers or the system clipboard, however this takes more actions and puts stuff into your clipboard history. Maybe it's just my way of working, but I move lines above or below when reorganizing lists in markdown or other basic text operations. For me it's as useful IDE feature as multiple cursors and in fact I often use them together.

All the major IDEs like sublime/jetbrains/vscode have both of these functionalities.