Skip to content

Conversation

@stacyharper
Copy link
Contributor

No description provided.

@mawww
Copy link
Owner

mawww commented Jun 23, 2024

I am not sure this option is necessary, you can achieve the same thing by disabling the hooks themselves with set global disabled_hooks autowrap|editorconfig-hooks which does not seem much worse than an editorconfig specific option.

@stacyharper
Copy link
Contributor Author

stacyharper commented Jun 23, 2024

I think I could go leaving the trim_trailing_whitespace, because it is a less common option, and because the BufWritePre hook is less intrusive imo.

But enabling auto-wrapping is a problem to me (maybe because I think this module is poorly designed atm, and behave badly most of the time). This should be up to the user to enable this with filetypes they want.

set global disabled_hooks autowrap is a valid work-around, but then the user have to configure each filetypes themselves, when they want it, which go against the goal of editorconfig.

(In a general manner, I would like for Kakoune to not edit files by itself. But I understand your opinion on this might diverge. Autowrapping, whitespace cleanup, or any automatic edition, can cause lot of vcs conflicts on projects we work for.)

@stacyharper stacyharper force-pushed the editorconfig_noedit branch from 7a8fe7e to 37c4e42 Compare June 3, 2025 05:36
@stacyharper stacyharper deleted the editorconfig_noedit branch August 25, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants