You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IIRC earlier versions of yaml-mode had a key binding to M-RET to insert a new line, indent and continue with - if the previous line was also a dash-denoted sequence.
So
foo:
- bar
would, after pressing M-RET on the end of the last line, become
foo:
- bar
-
If my memory is correct, this should be reintroduced. If not, then this would be a nice feature.
As a workaround, I currently use orgalist-mode which does more or less the same, with (add-hook 'yaml-mode-hook 'orgalist-mode).
The text was updated successfully, but these errors were encountered:
I haven't found such functionality in the mode, so it would need to be a new feature. If you have found it in an earlier revision, please point me to it.
Personally, I'm fine with an extra minor mode adding this because doing this properly (to react correctly depending on the context) would require better understanding of the YAML file than we currently have with fragile regex.
IIRC earlier versions of yaml-mode had a key binding to
M-RET
to insert a new line, indent and continue with-
if the previous line was also a dash-denoted sequence.So
would, after pressing
M-RET
on the end of the last line, becomeIf my memory is correct, this should be reintroduced. If not, then this would be a nice feature.
As a workaround, I currently use
orgalist-mode
which does more or less the same, with(add-hook 'yaml-mode-hook 'orgalist-mode)
.The text was updated successfully, but these errors were encountered: