Closed lyz-code closed 8 months ago
Hi @joaomsa, can I do anything to speed up the fix of this issue? I have no Lua skills but if you point me in the good direction I might be able to hack my way through
Hey @joaomsa maybe you've missed the notification, can I do something to help?
This has been fixed in my fork
When refiling a level 3 heading or TODO item to a level 1 heading or TODO the level of the heading is not transformed to a level 2 heading or TODO.
The other way around does work, when refiling a level 1 element to a level 3 element, the refiled element level is transformed from level 1 to level 4.
Steps to reproduce
test.org
with the minimal configuration below:SubSubheading 1
section and use the refile methodtest.org/Heading 1
and press Enter.As you can see now instead of belonging to
Heading 1
it is listed underSubheading 2
which is not desirable. When working with TODO items is awful because you may loose the context of what the task is about as it's listed as a subtask of the task you want it to be.Expected behavior
The level of the SubSubheading is updated to match the first level children of the target of the refile. In this case the result file would be:
Note that it is
** SubSubheading 1
instead of*** SubSubheading 1
Additional context
This has been solved at
nvim-orgmode/orgmode
on this commit, but it doesn't work when usingtelescope-orgmode
.An example that the other way around works as expected is the following:
Subheading 1
intoSubSubheading 1
the result file is