helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
33.64k stars 2.5k forks source link

More case conversions #5197

Open otavioschwanck opened 1 year ago

otavioschwanck commented 1 year ago

converting through different patterns of cases would be awesome, like:

convert to snake_case convert to camel case convert to js case (like camel, but with first letter downcased)

the-mikedavis commented 1 year ago

See https://github.com/helix-editor/helix/pull/4615, this can probably be covered by macro keybinds (#1383)

otavioschwanck commented 1 year ago

See #4615, this can probably be covered by macro keybinds (#1383)

i love the solution for #4615 , i think it is more interesting then binding commands to a macro.

NomisIV commented 1 year ago

The macro solution would be to create macros converting to and from each case, if I understand correctly. That would be 42 different macros and 42 different keybinds in total for converting between each casing. The key benefit of the proposed (original) solution in the #4615 PR is that seven different keybinds is enough, one for each target casing.