Skip to content

Configure continuing line comments #13274

@tye-exe

Description

@tye-exe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions