Basic help with tasks - Maybe a dumb question

How to make tasks go to the bottom of a list when completed

There are two things which may already exist, though I have not found them

  1. Make tasks drop to the bottom of a list when completed
  2. Optionally make them disapear when they are complete (toggle on and off)

Searched the forum and help with no results

All I did was search and found nothing. Disclaimer: I am not a programmer, nor do I have the capacity for simple code. I know that might sound dismissive or naive or whatever…in the words of CLint Eastwood “a good man’s gotta know his limitations”.

The best solution is probably going through community plugins and finding something that fits your requirements.

Let’s say that this one is doing what you are searching for - hiding the done tasks, which you can toggle on and off.

Cheers, Marko :nerd_face:

2 Likes

Slick! thanks

See Tasks community plugin. Example query:

```tasks
path includes {{query.file.path}}
```

Use the same Tasks-query with this modification:

```tasks
path includes {{query.file.path}}
not done
```

When using Tasks community plugin you don’t have to manually reorder tasks or delete them.

1 Like

From this aspiring coder comes a question (where I see programmers all over the world shaking their heads in unison). What do I do with this code?

path includes {{query.file.path}}
not done

Maybe there is a tutorial somewhere out there for this type of stuff…

Ok, I see now…I will install the plugin and read the doc…baby steps

So that plugin won’t sort your tasks like you asked. What it does is dynamically finds and lists all your tasks. So it will sort that dynamic list.

Your original tasks will stay where they were in your notes.

It’s powerful. You can make a tasks note and pin it in your sidebar and always see your tasks from anywhere, however you search for them.


If you want something very simple today:
Map the hotkeys “Move line up” and “Move line down” to hotkeys and you can quickly manually sort your lines.

I use ctrl-shift up and down to do that. And it works if you have multiple lines selected too.

2 Likes

So that worked great and was very easy to do. The only thing is that it does not move sub-tasks along with the ‘main’ task. They are treated as individual tasks, which is kind of bothersome, though not the end of the world.

trouble shooting I realized that if I block the entire task with sub-tasks, it moves all of them at the same time.

The annoyance is that it will insert it into another task with subtasks while you are moving to another spot. At the end of the day, it’s a text editor, so I guess that functionality or behavior would be reasonable

Ah yeah, that’s what I meant when I said you can select multiple lines at once.

Ultimately it is just text. There is no inherit hierarchy or structure. They are just checkbox style bullets. So that’s where plugins come in to mimic some of that extra task behaviour. (And possibly structured bullet moving/editing, but I am not aware.)

this may be a question for another post, but I’ll ask it here. Very simply (and I’ve searched the documentation and the help files. top no avail) how do I get ALL tasks that have a #now tag to show up on a separate document called “ALL TASKS”. I was able to get literally all tasks by using a code block with:

not done

But how tdo I get it to report the #now tag as well? I am using the Tasks pluygin. Do I need anuything else?

Remove # to include:

```tasks
# tags include now
# (tags include myTag1) OR (tags include myTag2)
# (folder includes myFolder1) OR (folder includes myFolder2)
# not done
# hide backlink
# hide edit button
```

Thank you for the suggestion, that did not work. It still lists all tasks whether they have:

  • a future date
  • or #now
  • or no date
  • or no tag.

@blue_emperor sorry I misunderstood at first, now that worked brilliantly AFTER I followed the instructions and removed the # this might be a game changer! thank you

I think the next question will be how to organize the information…I’m thinking about setting up a canvas with different lists depending on context OR keeping it simple and figuring out a way to display tasks in my Active Task List…each under a different heading or in separate sections but in the same doc (that might be above my pay grade…we shall see.