1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Add title links setting

This commit is contained in:
Jermolene 2015-06-13 15:22:50 +01:00
parent e3965dcd0c
commit 0d5033e2a0
4 changed files with 21 additions and 0 deletions

View File

@ -95,6 +95,10 @@ Settings/LinkToBehaviour/OpenAbove: Open above the current tiddler
Settings/LinkToBehaviour/OpenBelow: Open below the current tiddler
Settings/LinkToBehaviour/OpenAtTop: Open at the top of the story river
Settings/LinkToBehaviour/OpenAtBottom: Open at the bottom of the story river
Settings/TitleLinks/Caption: Tiddler Titles
Settings/TitleLinks/Hint: Optionally display tiddler titles as links
Settings/TitleLinks/No/Description: Do not display tiddler titles as links
Settings/TitleLinks/Yes/Description: Display tiddler titles as links
StoryView/Caption: Story View
StoryView/Prompt: Current view:
Theme/Caption: Theme

View File

@ -0,0 +1,10 @@
title: $:/core/ui/ControlPanel/Settings/TitleLinks
tags: $:/tags/ControlPanel/Settings
caption: {{$:/language/ControlPanel/Settings/TitleLinks/Caption}}
\define lingo-base() $:/language/ControlPanel/Settings/TitleLinks/
<$link to="$:/config/Tiddlers/TitleLinks"><<lingo Hint>></$link>
<$radio tiddler="$:/config/Tiddlers/TitleLinks" value="yes"> <<lingo Yes/Description>> </$radio>
<$radio tiddler="$:/config/Tiddlers/TitleLinks" value="no"> <<lingo No/Description>> </$radio>

View File

@ -12,6 +12,8 @@ $:/config/ViewToolbarButtons/Visibility/$(listItem)$
<span class="tc-tiddler-controls">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$list>
</span>
<$set name="tv-wikilinks" value={{$:/config/Tiddlers/TitleLinks}}>
<$link>
<$set name="foregroundColor" value={{!!color}}>
<span class="tc-tiddler-title-icon" style=<<title-styles>>>
<$transclude tiddler={{!!icon}}/>
@ -27,6 +29,8 @@ $:/config/ViewToolbarButtons/Visibility/$(listItem)$
<$view field="title"/>
</h2>
</$list>
</$link>
</$set>
</div>
<$reveal type="nomatch" text="" default="" state=<<tiddlerInfoState>> class="tc-tiddler-info tc-popup-handle" animate="yes" retain="yes">

View File

@ -0,0 +1,3 @@
title: $:/config/Tiddlers/TitleLinks
no