mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-01 16:26:57 +00:00
Merge pull request #1529 from felixhayashi/sidebar-default
Option to define the default sidebar tab
This commit is contained in:
commit
7a326f022b
@ -84,6 +84,8 @@ Settings/ToolbarButtons/Caption: Toolbar Buttons
|
||||
Settings/ToolbarButtons/Hint: Default toolbar button appearance:
|
||||
Settings/ToolbarButtons/Icons/Description: Include icon
|
||||
Settings/ToolbarButtons/Text/Description: Include text
|
||||
Settings/DefaultSidebarTab/Caption: Default Sidebar Tab
|
||||
Settings/DefaultSidebarTab/Hint: Define the sidebar tab that is displayed per default
|
||||
StoryView/Caption: Story View
|
||||
StoryView/Prompt: Current view:
|
||||
Theme/Caption: Theme
|
||||
|
13
core/ui/ControlPanel/Settings/DefaultSidebarTab.tid
Normal file
13
core/ui/ControlPanel/Settings/DefaultSidebarTab.tid
Normal file
@ -0,0 +1,13 @@
|
||||
caption: {{$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption}}
|
||||
tags: $:/tags/ControlPanel/Settings
|
||||
title: $:/core/ui/ControlPanel/Settings/DefaultSidebarTab
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/Settings/DefaultSidebarTab/
|
||||
|
||||
<$link to="$:/config/DefaultSidebarTab"><<lingo Hint>></$link>
|
||||
|
||||
<$select tiddler="$:/config/DefaultSidebarTab" default={{$:/config/DefaultSidebarTab}}>
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]">
|
||||
<option value=<<currentTiddler>>><<currentTiddler>></option>
|
||||
</$list>
|
||||
</$select>
|
@ -33,7 +33,7 @@ title: $:/core/ui/SideBarLists
|
||||
|
||||
<$reveal state="$:/temp/search" type="match" text="">
|
||||
|
||||
<<tabs "[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]" "$:/core/ui/SideBar/Open" "$:/state/tab/sidebar">>
|
||||
<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]" default={{$:/config/DefaultSidebarTab}} state="$:/state/tab/sidebar" />
|
||||
|
||||
</$reveal>
|
||||
|
||||
|
3
core/wiki/config/DefaultSidebarTab.tid
Normal file
3
core/wiki/config/DefaultSidebarTab.tid
Normal file
@ -0,0 +1,3 @@
|
||||
title: $:/config/DefaultSidebarTab
|
||||
|
||||
$:/core/ui/SideBar/Open
|
Loading…
x
Reference in New Issue
Block a user