Filtering multiple tags

I have the following script by complexpoint installed:
txtquery-tools/filtering in the editor/FilterOnTagsMenu.applescript
If I select multiple tags it filters everything that has any of those tags.

I would like to be able to do a search like this:
@mail and @todo

Is it possible?

I’m on OS X 10.10.5 so I can’t use the saved searches in TP3.

Thanks,
Hakan

I’m not sure I understand the question… but if you just type:

@mail and @todo

Into the search field that should filter to show only entries that have both “@mail” and “@todo” tags.

I’m actually not sure … are you using TaskPaper 3.3.2 or FoldingText?

FoldingText

Ok, FoldingText support a similar query language to TaskPaper, but it doesn’t have a built in search UI. Instead you can create and evaluate a search like this:

  1. Enter the text @mail and @todo into your document.
  2. Select that text.
  3. Edit > Run Command…
  4. Choose the “Link node path” command
  5. A link is created for that selected node path… you can name it. And in the future when you click on it your document is filtered by that search.

Thanks, Jesse!
It doesn’t work,though.
Here’s what the link looks like for me:
(x-foldingtext://documents/current?nodepath=%40mail%20and%20%40todo)

Hum… it’s working for me. My links is:

[Todo and Mail](x-foldingtext://documents/current?nodepath=%40todo%20and%20%40mail)

I click on the link text “Todo and Mail” and my document is filtered.

Tried your link as well, same result.
It performs the filtering, but no results.
Version 2.2 (770)

Ahh I think I know what the problem might be. The search that I gave you only searches “top level” items. So if the item was indented or if you had a header above it it wouldn’t have found. Instead try this search:

//@todo and @mail

Great, thanks a lot - now it works! :slight_smile:

Is it possible to make the result of the filtering show the parent level(s)?

You need to add one more leading slash:

///@todo and @mail

See Help > Node Path User’s guide for all the gory details :slight_smile:

Awesome! :+1: