Newer
Older
labs / tiddlers / system / macros / $__ou_macros_system_OpenByFilterOrPath.tid
tags: $:/tags/Macro
title: $:/ou/macros/system/OpenByFilterOrPath
type: text/vnd.tiddlywiki

\define openByFilter(filter)
<$button>
Open All
<$action-sendmessage $message="tm-close-other-tiddlers" />
<$list filter=<<__filter__>> >
<$action-navigate $to={{!!title}}/>
</$list>
</$button>
\end

\define openByPath(path)
<$button>
Open All
<$action-sendmessage $message="tm-close-other-tiddlers" />
<$list filter="[!is[system]prefix[$path$]!tag[hidden]!tag[image]!tag[toc]!sortan[section]]" >
<$action-navigate $to={{!!title}}/>
</$list>
</$button>
\end

Displays a button that will open all tiddlers matching the given filter or path and close all other tiddlers.

Usage

By filter:

```
<<openByFilter "[!is[system]tag[toc]sort[]]">>
```

By path:

```
<<openByPath "/Labs/01/">>
```