fix: filter => subfilter

This commit is contained in:
lin onetwo 2024-03-22 02:10:19 +08:00
parent 411887d121
commit 4384a3d6c8
1 changed files with 3 additions and 5 deletions

View File

@ -2,10 +2,10 @@ title: $:/snippets/LayoutSwitcher
tags: $:/tags/ControlPanel/Appearance
caption: {{$:/language/ControlPanel/LayoutSwitcher/Caption}}
\whitespace trim
\procedure layouts-filter() [all[tiddlers+shadows]tag[$:/tags/Layout]] [[$:/core/ui/PageTemplate]] +[!is[draft]sort[name]]
\procedure layout-item()
\whitespace trim
<div class=<<cls>>>
<$link to={{!!title}}>
''<$transclude tiddler={{{ [<currentTiddler>get[icon]] }}}/><$transclude field="name"/>''&#32;-&#32;<$transclude field="description"/>
@ -14,13 +14,11 @@ caption: {{$:/language/ControlPanel/LayoutSwitcher/Caption}}
\end
\procedure input-next-actions(step:1)
\function layouts() [filter<layouts-filter>]
<$log layouts=<<layouts>> aaa="aaa" />
\function layouts() [subfilter<layouts-filter>]
<$log layouts=<<layouts>> bbb="bbb" />
<$action-sendmessage $message="tm-navigate" $param={{{[<layouts>cycle<layouts>,<step>]}}}/>
\end
\whitespace trim
<$linkcatcher to="$:/layout">
<$keyboard key="((input-up))" actions=<<input-next-actions>>>
<$keyboard key="((input-down))" actions=<<input-next-actions "-1">>>