mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-05-30 09:12:17 +00:00
Merge pull request #1529 from felixhayashi/sidebar-default
Option to define the default sidebar tab
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
title: $:/config/DefaultSidebarTab
|
||||
|
||||
$:/core/ui/SideBar/Open
|
||||
Reference in New Issue
Block a user