RabidDartGunman
RabidDartGunman on Hacker News
Re:Ask HN: How can I learn about performance optimization?
on Sunday March 03, 2024 @04:51AM (#39579753)
Sometimes you can change the problem slightly to cater to one or more of the points on that list.
Re:Helix: Post-Modern Text Editor
on Monday November 07, 2022 @01:59PM (#33510512)
Agreed, but more often, I find myself in a situation, where I just want to delete, comment, or yank a few lines of a function, so I find that going by relative line numbers is a lot more flexible and useful for me.
Re:Helix: Post-Modern Text Editor
on Monday November 07, 2022 @01:57PM (#33510471)
Thank you for the great answer. I did not know that. I will try it out.
Re:Helix: Post-Modern Text Editor
on Sunday November 06, 2022 @02:09PM (#33495935)
Say I am at the last line of a part of a function, that I would like to delete - maybe some debug output. In VIM, I will look at the relative line numbers and immediately see that I would like to delete up to the number 8. Then I simply write d8<up> or d8h, and I am done.
As far as I can tell - I may be wrong - in Helix, I would have to first do 8<up> and then 9xd. Note the number 9 in there. This is due to the fact that in Helix, I have to count the number of lines I want to delete, rather than just being able to look at the relative line numbers.
Re:Helix: Post-Modern Text Editor
on Sunday November 06, 2022 @01:24PM (#33495537)
Helix is really great. If only it had a VIM (or VIM-like) mode available. I find the Kanoune shortcuts really limiting, as they fail to use the relative line numbers for anything except moving the cursor. Bidirectional selection, deletion, commenting, etc. is super useful when coding.