Thanks again Eric, this shortcut is going to be very useful for me because
most of the time I'm opening permaview links with multiple tiddlers in each
link. :)
On Thursday, July 30, 2020 at 9:51:01 PM UTC-3, Eric Shulman wrote:
>
> On Thursday, July 30, 2020 at 6:48:47 AM UTC-7, Rafael Oliveira wrote:
>>
>> I'd like to create a shortcut that will toggle between hiding/showing the
>> body of my open tiddlers...
>>
> Let's say I press *ctrl+shit+alt+t*, I'd like to see these same three
>> tiddlers ... folded...
>> After pressing *ctrl+shit+alt+t*, it toggles back to its original
>> view...
>>
>
> 1) Create a tiddler named "$:/config/shortcuts/toggle-fold", with content:
> ctrl-shift-alt-T
> 2) Create a tiddler named "$:/config/ShortcutInfo/toggle-fold", with
> content:
> toggle fold (all tiddlers)
> 3) Create a tiddler named "$:/MyKeyboardShortcuts/toggle-fold", with
> content:
> <$list filter="[enlist{$:/StoryList!!list}addprefix[$:/state/folded/]]">
> <$action-setfield text={{{
> [<currentTiddler>{!!text}match[hide]then[show]else[hide]]
> }}} />
> </$list>
> 4) Add tag "$:/tags/KeyboardShortcut" to that tiddler
> 5) Add a field named "key", with a value of "((toggle-fold))"
>
> That's it. You should now be able to press "ctrl-shift-alt-T" to toggle
> the folded state of all tiddlers.
>
> Notes:
> * The $list gets the current contents of the $:/StoryList list field, and
> adds the prefix used by the TWCore for tracking the folded state of a
> tiddler
> * The $action-setfield toggles the text of each of those state tiddlers
> between "hide" and "show"
> * Your new shortcut key will be listed in the $:/ControlPanel, Keyboard
> Shortcuts tab.
> * You can use this interface to change the key assignment (click on the
> arrow next to the "toggle-fold" item to see the key assignments)
>
> enjoy,
> -e
>
On Thursday, July 30, 2020 at 9:51:01 PM UTC-3, Eric Shulman wrote:
>
> On Thursday, July 30, 2020 at 6:48:47 AM UTC-7, Rafael Oliveira wrote:
>>
>> I'd like to create a shortcut that will toggle between hiding/showing the
>> body of my open tiddlers...
>>
> Let's say I press *ctrl+shit+alt+t*, I'd like to see these same three
>> tiddlers ... folded...
>> After pressing *ctrl+shit+alt+t*, it toggles back to its original
>> view...
>>
>
> 1) Create a tiddler named "$:/config/shortcuts/toggle-fold", with content:
> ctrl-shift-alt-T
> 2) Create a tiddler named "$:/config/ShortcutInfo/toggle-fold", with
> content:
> toggle fold (all tiddlers)
> 3) Create a tiddler named "$:/MyKeyboardShortcuts/toggle-fold", with
> content:
> <$list filter="[enlist{$:/StoryList!!list}addprefix[$:/state/folded/]]">
> <$action-setfield text={{{
> [<currentTiddler>{!!text}match[hide]then[show]else[hide]]
> }}} />
> </$list>
> 4) Add tag "$:/tags/KeyboardShortcut" to that tiddler
> 5) Add a field named "key", with a value of "((toggle-fold))"
>
> That's it. You should now be able to press "ctrl-shift-alt-T" to toggle
> the folded state of all tiddlers.
>
> Notes:
> * The $list gets the current contents of the $:/StoryList list field, and
> adds the prefix used by the TWCore for tracking the folded state of a
> tiddler
> * The $action-setfield toggles the text of each of those state tiddlers
> between "hide" and "show"
> * Your new shortcut key will be listed in the $:/ControlPanel, Keyboard
> Shortcuts tab.
> * You can use this interface to change the key assignment (click on the
> arrow next to the "toggle-fold" item to see the key assignments)
>
> enjoy,
> -e
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/8f775c22-8aab-410b-92ef-5bbb30227dc2o%40googlegroups.com.