Open mikemc opened 8 months ago
The version in 14996f5 does not reindent when removing a heading. To properly handle the indentation when removing a focal heading, I should get the indentation level from the previous heading (the heading above the focal heading), then use that to reindent the (former) child text of the (former) focal heading.
toggle_heading()
does not work when at the base document level outside of any heading, as when making the first heading in a new document - it throws an error "attempt to concatenate local 'prefix' (a nil value)"
Edit: This issue is fixed by b6f5619
In Doom Emacs,
:localleader: h
triggersorg-toggle-heading
, providing a handy way to convert a line(s) into a heading(s). The org-mode documentation is shown below and describes a broad set of functionality. I would be happy to start with being able to toggle the heading status of a single line in normal mode.