Move lines to heading command?

What I’m trying to do

I would like to quickly move a set of text lines between markdown heading sections in a file with a minimum of clicks/taps/swipes, especially on mobile.

Something like this: Place cursor on one line or alternately select a block of lines without necessarily selecting whole lines, run the move to heading command, select from a list of headings, and it expands the beginning and end of the selection to whole lines, moves the lines directly under the selected heading, with cursor and current scroll view remaining at the original spot. Perhaps return cursor to original spot could be a toggle option.

This seems generally useful, but my main use case is to move tasks between projects under different headings within the same file. I do this a lot, so a minimal clicks is very useful.

I guess I can write a plugin to do it, but wanted to see if I’m missing something.

Things I have tried

I read the editor section of the docs, and searched for “move line”, “move”, “heading”, “outline” in the help docs, forum, and plugins to no avail.

The best I have found is doing it manually on desktop: click on one line, cut the whole line with Cmd-x, select the desired heading from the heading list (already showing in the outline to the right), click in the first line under heading, Cmd+← twice to get to the beginning of the task, paste the new line, then select the original heading from the list. Multiple lines or mobile is more clicks/taps/swipes.

1 Like

This is quite specific request meaning no existing solutions. Quick Switcher++ can be used to navigate between headings using its symbols mode. It offers around 8 actions for selected item but currently not “paste into”.

QuickAdd offers capture into active file but currently it doesn’t offer dynamic heading selection. You can specify a heading beforehand but you cannot dynamically select which heading to capture into.

You can make a post about “capture into a heading” in

I don’t think there is such feature yet but you can ask for it.

1 Like

I looked at both QuickSwitcher++ and Quickadd and like you said they don’t quite do what I’m looking for.

Another one that seems close is Text Transporter, but it doesn’t work within the current file. There is an open request for this however.

I’ll keep looking.

Thanks so much for your time! I’m a relatively new user so your experience sure helped.