Moving between sidebar and outline


#1

Am I missing a keyboard shortcut to move between sidebar and outline? I probably am.


#2

Use View > Go to Project (Command-L) to focus the sidebar and then use Tab or Return to go back to the outline.


#3

Also, and probably another “no duh,” is it possible to show only items that don’t have a tag?


#4

That one is trickier. This was possible in TaskPaper 2 when attributes were only created by tags and types were a separated hard coded thing. But now item type is stored as an attribute… so all items always have attributes. I think right now the only way would be a regex that matches tags. This isn’t exact, but would probably be good enough:

not matches "(^|\\s+)@\\W"

#5

Whoa, whoa, whoa—we can use regex searches?!


#6

Yup… I can never remember regex syntax so it’s not something I normally demo. :slight_smile:


#7

It works. I don’t know what it means, but it works.

Is it not possible to save it as a search?


#8

You can, but you need to escape the ) so that TaskPaper doesn’t think it’s part of the tag value syntax. Try this:

@search(not matches "(^|\\s+\)@\\W")

#9

Beautiful. Thanks!


#10

I’m still having some task / projects with tags appearing using this.


#11

Maybe you are using a character set outside the bounds of JavaScripts \w regex match? You might just try this instead:

@search(not matches "(^|\\s+\)@")

Again it’s not a perfect match for tags (will match some things that are not tags), but should work in general.


#12

This brings up nothing at all and comes up in red.


#13

To make it work you need to select the item in the sidebar… not click on the @search tag value in the outline. Then it should work I think. At least I just worked for me.


#14

I’m not getting this to appear in the sidebar. I’m using the following line in TP:

Not Tagged @search(not matches "(^|\\s+\)@")

The @search tag also doesn’t turn grey.


#15

I think you need:

Not Tagged @search(not matches "\(^|\\s+\)@")

A few released back added the requirement that must always escape both ( and ) when embedded in a tag value.


#16

Many thanks, that works!