[UX] Align content with heading indentation level the fist time you use org_do_promote
or org_do_demote
#859
Labels
bug
Something isn't working
Describe the bug
Sometimes I find myself moving heading content between headlines by cutting and pasting. As the indentation levels are different I have to use
>>
and<<
to adjust the indentation to match the expected.If I'm moving the content between sections with an even number of heading levels it's "kind of fine" as it's coherent (for example from
* Heading
to*** Heading
), as the action adds or removes two spaces. The things get worse if you move it an odd number, then you are always left with one space too short or one space too much, so you need to remove it (xjxjxjxj...
) or add it (i <esc>j.j.j. ...
).It would be nice if the first time you use
org_do_promote
ororg_do_demote
it adjusted the content to the heading indentation.Steps to reproduce
If we start with this file:
And we cut and paste the content
To adjust the content to the desired level we need to press
>>
4 timesBut that doesn't yet adjust the level fine as we promoted an odd number of headings
So we need to add a whitespace
0i
Expected behavior
Instead from the point of having the text pasted
I'd like to press
>>
once to get:Emacs functionality
No response
Minimal init.lua
Screenshots and recordings
No response
OS / Distro
linux
Neovim version/commit
0.10.0
Additional context
No response
The text was updated successfully, but these errors were encountered: