-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Issue
I like the change to continuing line comments, as this is useful when writing documentation. However, i often find myself commenting out code and then using the o/O keybinds to create newline after/before the commented code. This is to still be able to reference the older code, and suppress any errors that come from it, whilst rewriting it. And this change drastically disrupts this process, feeling very unintuative to me, as i do not expect comments to be inserted outside of editing documentation.
Part of this is when i am writing documentation i very rarely use the o/O keybinds, more often being in insert mode for extended periods of time, where this feature is greatly appreciated and highly beneficial. Whereas when writing code i spend alot more of my time in normal mode.
Proposed Changes
I'd propose adding a configuration option that toggles whether comments get continued on new lines when they are created with the open_below/open_above actions. After looking at the configuration options, i am not sure where this would be located.
Alternatively, i propose adding two static commands open_below_no_comment/open_above_no_comment.
Remarks
I will be happy to develop and implement either or my two proposals (or any other alternative suggestions) to helix. I am just trying to receive feedback before i make the changes, as i am unsure whether this will be accepted or not.