[TW5] Default settings for startup (after saving)

354 views
Skip to first unread message

The Bo

unread,
Feb 19, 2015, 4:28:25 AM2/19/15
to tiddl...@googlegroups.com
Hey,


I'm using tiddlywiki 5 with 4 other people for some sort of knowledge-management in an offline network. The community-plugin from Danielo (http://danielorodriguez.com/TiddlyDrive4Community) is installed as well. The navigation is done by an expandable TOC.

Now I want to fix some smaller issues:
Everytime the tiddly is saved by a user, his/her settings are also saved like expanded TOC, navigation tabs ("more" instead of "content", filled username (edit-field of the community-plugin).

Example of an expanded toc:

> subject 1
> subject 2
> subject 3
     subject 3a
   >subject 3b
            subject 3ba

Is it possible to automatically load default settings on startup? Like non-expanded TOC, cleared edit-field(s) etc.?

I really appreciate your help.

Greetings
Tueb

Tobias Beer

unread,
Feb 19, 2015, 6:34:08 AM2/19/15
to
HI Bo,

I believe you can achieve your desired goal by changing what tiddlers get stored by TiddlyWiki...


So, you want to figure out the state tiddler for your ToC individually or simply exclude any -[prefix[$:/state/]] from ever being saved.

Best wishes, Tobias.

Jeremy Ruston

unread,
Feb 19, 2015, 7:30:51 AM2/19/15
to TiddlyWiki
Hi Bo

Here are the full changes to "$:/core/save/all":

\define saveTiddlerFilter()
[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[[$:/status/UserName]] -[prefix[$:/state]] -[prefix:[$:/temp]] -[[$:/StoryList]] +[sort[title]]
\end
{{$:/core/templates/tiddlywiki5.html}}

Best wishes

Jeremy.


--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

The Bo

unread,
Feb 19, 2015, 8:15:11 AM2/19/15
to
Hi,

Thanks to both of you! :)

@Jeremy
Your changes to $:/core/save/all do exactly what I was looking for.

There is just one little issue:
How can I define "contents-toc" for replacing "open" as the default startup-tab?

Greeting
Tueb
____________
Edit:

It seems like I could solve it for myself (Please interfere if I'm wrong.)

Change the system-tiddler $:/core/ui/sidebarlists:

Replace the code <<tabs  ... "$:/core/ui/sidebar/open" ... >> to the tab you want to start with.

Greetings
Tueb

Jeremy Ruston

unread,
Feb 19, 2015, 1:14:31 PM2/19/15
to TiddlyWiki
Hi Bo

It's not currently possible to force the initial tab. You can explicitly allow saving for the tiddler that contains the state of the sidebar tabs, which means that when you save the current state will be remembered:

\define saveTiddlerFilter()
[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[[$:/status/UserName]] -[prefix[$:/state]] -[prefix:[$:/temp]] -[[$:/StoryList]] [[$:/state/tab/sidebar--1835078512]is[tiddler]] +[sort[title]]
\end
{{$:/core/templates/tiddlywiki5.html}}

Best wishes

Jeremy


On Thu, Feb 19, 2015 at 1:15 PM, The Bo <hey...@gmail.com> wrote:
Hi,

Thanks to both of you! :)

@Jeremy
Your changes to $:/core/save/all do exactly what I was looking for.

There is just one little issue:
How can I define "contents-toc" for replacing "open" as the default startup-tab?

Greeting
Tueb

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

The Bo

unread,
Feb 20, 2015, 8:39:54 AM2/20/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy,


>>Change the system-tiddler $:/core/ui/sidebarlists:
>>Replace the code <<tabs  ... "$:/core/ui/sidebar/open" ... >> to the tab you want to start with.

works for me. Am I missing something?

Greeting
Tueb

Jeremy Ruston

unread,
Feb 20, 2015, 11:26:44 AM2/20/15
to The Bo, TiddlyWiki
Hi Bo
 
>>Change the system-tiddler $:/core/ui/sidebarlists:
>>Replace the code <<tabs  ... "$:/core/ui/sidebar/open" ... >> to the tab you want to start with.

works for me. Am I missing something?

Apologies, what I should have said is that there's no way to configure the default tab without overriding the sidebar lists shadow tiddler. The disadvantage of doing that is that it means that you won't get updates to that tiddler that may arrive in future upgrades of the TiddlyWiki core.

Best wishes

Jeremy

Felix Küppers

unread,
Feb 20, 2015, 11:46:23 AM2/20/15
to tiddl...@googlegroups.com
A good solution would be to outsource the default just like the search result tabs now work. It would be really nice to decide which sidebar tab is the default.

-felix

Jeremy Ruston

unread,
Feb 20, 2015, 11:47:23 AM2/20/15
to TiddlyWiki
Hi Felix

A good solution would be to outsource the default just like the search result tabs now work. It would be really nice to decide which sidebar tab is the default.

Yup, that would be very doable. Pull request welcome :)

Best wishes

Jeremy

Felix Küppers

unread,
Feb 20, 2015, 12:08:29 PM2/20/15
to tiddl...@googlegroups.com
ok, once I am back from vacation :)

Jeremy Ruston

unread,
Feb 20, 2015, 12:11:46 PM2/20/15
to TiddlyWiki
Have fun!

Cheers

Jeremy

The Bo

unread,
Feb 23, 2015, 3:23:40 AM2/23/15
to hey...@gmail.com, jeremy...@gmail.com
Hi Jeremy,

now I've got it. ;) I will keep that in mind.

Greetings
Tueb


Am Freitag, 20. Februar 2015 17:26:44 UTC+1 schrieb Jeremy Ruston:
Hi Bo
 
>>Change the system-tiddler $:/core/ui/sidebarlists:
>>Replace the code <<tabs  ... "$:/core/ui/sidebar/open" ... >> to the tab you want to start with.

works for me. Am I missing something?

Apologies, what I should have said is that there's no way to configure the default tab without overriding the sidebar lists shadow tiddler. The disadvantage of doing that is that it means that you won't get updates to that tiddler that may arrive in future upgrades of the TiddlyWiki core.

Best wishes

Jeremy

magev958

unread,
Jul 4, 2015, 4:10:27 PM7/4/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
Since 5.1.9 this do not work anymore for me :(

PMario

unread,
Jul 5, 2015, 6:01:15 AM7/5/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
On Saturday, July 4, 2015 at 10:10:27 PM UTC+2, magev958 wrote:
Since 5.1.9 this do not work anymore for me :(

Hi magev958,

You expect everyone to read the whole thread, to find out and guess, what "this" means for you?

Please be more specific about your exact setting, so we are able to reproduce your problem and use our private spare time more efficient.
A simple test case at tiddlyspot, is always a bonus ;)

-mario
 

Danielo Rodríguez

unread,
Jul 6, 2015, 7:39:35 AM7/6/15
to tiddl...@googlegroups.com
Hello The Bo,

The TiddlyDrive plugin does not work currently because recent google changes to it's API. Are you actively using it?

I recommend you to move to a better plugin for this kind of setup:


or maybe you can wait until I release the pouch plugin, which will be a lot easier to use and configure.

Regards
Reply all
Reply to author
Forward
0 new messages