[TW5] FastNewTiddler - how toggle view and make new tids appear in viewmode?

130 views
Skip to first unread message

Mat

unread,
May 3, 2015, 7:13:20 PM5/3/15
to tiddl...@googlegroups.com
For the FastNewTiddler (FNT) toolbar I hope to include a toggle switch to let the user decide if the tiddlers are to be created either;

  • silently = Default. No indication that a tiddler is created (other than in sidebar lists) 
  • visibly = The tiddler appears right under the FastNewTiddler, in viewmode 

...but I don't know how. But wizard Jed has solved it partly, so it should work!

The toolbar is intended to appear like this, third button showing the toggle. Left side shows the silent icon (depicting the FNT with nothing, - , under it) and right side showing the visible icon (the FNT with a tiddler under it):



The code is in this tiddler. (and TWizard Jed has a variant embedded in his main FNT tiddler. I included a copy of it, split out here.)

A click should (a) toggle between the two icons and, most importantly, (b) make the currently FNT-edited tiddler to be in (default) silent view OR showing visibly below the FNT panel in regular viewmode. Jeds variant above gets it to show in editmode!

Here follows my attempt. It is mostly copy-paste that I've tried to adapt so it may at first glance look like I know what I'm doing but, well, I don't. For instance, I'm considering renaming that boring word class into classy to spice it up a bit! My point: Anything can be wrong, missing, mutilated...:

Any help or toughts are appreciated:

<$reveal type=nomatch state='$:/state/FastNewTiddler!!show_editor' text='visibly'>
<$button set='$:/state/FastNewTiddler!!creationmode' setTo=visibly class="tc-btn-invisible" message='tm-edit-tiddler' param={{$:/temp/FastNewTiddler!!newtitle}}>{{img/fnt-silently}}
</$button>
</$reveal>
<$reveal type=match state='$:/state/FastNewTiddler!!show_editor' text='visibly'>
<$button set='$:/state/FastNewTiddler!!creationmode' setTo=silently class="tc-btn-invisible" message='tm-edit-tiddler' param={{$:/temp/FastNewTiddler!!newtitle}}>{{img/fnt-visibly}}
</$button>
</$reveal>

Thank you!


<:-) 


Jed Carty

unread,
May 3, 2015, 9:23:29 PM5/3/15
to tiddl...@googlegroups.com
This is working for me:

<!-- CLICK should toggle icons and state for current tiddler to show in story or not -->
<$reveal type=nomatch state='$:/state/FastNewTiddler!!creationmode' text='visibly'>
<$button set='$:/state/FastNewTiddler!!creationmode' setTo=visibly class="tc-btn-invisible"><$action-navigate $to={{$:/temp/FastNewTiddler!!newtitle}} $scroll=no/>{{img/fnt-silently}}
</$button>
</$reveal>
<$reveal type=match state='$:/state/FastNewTiddler!!creationmode' text='visibly'>
<$button set='$:/state/FastNewTiddler!!creationmode' setTo=silently class="tc-btn-invisible"><$action-sendmessage $message='tm-close-tiddler' $param={{$:/temp/FastNewTiddler!!newtitle}}/>{{img/fnt-visibly}}
</$button>
</$reveal>


And it looks like your idea of having something at the top of the story river allows it to avoid the scrolling problem where the tiddlers always want to scroll to the top of the screen when opened.

Mat

unread,
May 4, 2015, 3:24:46 AM5/4/15
to tiddl...@googlegroups.com
Great! Getting closer!

The idea is that Silently-Visibly is a permanent switch so if Visibly is toggled, then from then on every new tiddler should show up below the FNT, (unless switched back to Silently). I figure it should be possible - just like their titles visibly show up in the sidebar Recent tab, immediately upon creation.

It will be a "live note factory"; you type in new titles and notes visibly plop out at the bottom.


 
And it looks like your idea of having something at the top of the story river allows it to avoid the scrolling problem where the tiddlers always want to scroll to the top of the screen when opened.

Yes, some parts of the issue seems solved. Thank you for implementing it!!!! There are some situations that don't scroll properly and I intend to map them soon.


I think FNT can become a really valuable tool!


<:-) 

Alex Hough

unread,
May 4, 2015, 5:16:58 AM5/4/15
to TiddlyWiki
Mat,

The functionality is similar to something I have been toying with, creating new tiddler from search term....

just a thought, if the FNT input displayed search results, then the user could enter terms close to existing. The idea here is that the easiest way to link ideas is by having similar tittles - filters can aggregate them. 

FNT is great for creatiing similar titles, i would be good to have an idea of existing tiddlers before you create a new one. 

best wishes

Alex

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/efbf2cf5-04b6-4bb6-9306-4d3343c52e1f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mat

unread,
May 4, 2015, 7:17:54 AM5/4/15
to tiddl...@googlegroups.com
Alex,

...to have an idea of existing tiddlers before you create a new one. 

You mean somewhat similar to a tagpill dropdown? Actually, I think the main value in this would be for the parallel editor concept that I brought up in the original thread on FNT, i.e that typing in an existing title gives you direct edit possibilities to an arbitrary tiddler. A dropdown would be valuable here, especially if it (contrary to tagpill dropdown) lets you select a title and then - as per your idea - let's you manipulate the title for a new tiddler with similar title. 

I'll add it to the todo. It is beyond my coding skills, of course, so it's not quite up to me. Currently I'm struggling to get the key features in place. 

<:-)

Alex Hough

unread,
May 4, 2015, 9:12:13 AM5/4/15
to tiddl...@googlegroups.com
I mean that the phrase typed into the FNT box would act like search... Maybe it could appear in place of search.... In the sidebar...

Great work Mat btw...

Alex
--
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.

Mat

unread,
May 4, 2015, 1:06:34 PM5/4/15
to tiddl...@googlegroups.com
AlexHough wrote:
I mean that the phrase typed into the FNT box would act like search... Maybe it could appear in place of search.... In the sidebar...


First of all: I, of course, welcome anyone to improve or add to the current, or any future, manifestation of FNT. From my point, the current and driving idea behind FNT is to speed up the workflow by cutting down on the number of steps required for, particularly, note taking. 

Your proposal sounds like a great idea but rather distinct from the one at hand. BUT there is a certain appeal to it; to only need one "field" where you fill in stuff - either to create a new tiddler, or open an existing tiddler in edit mode, or -as you propose- to search for a tiddler. That title field would serve as a "gate to everything".

What do you mean is the purpose for this search from FNT specifically? To just see a title? To put (a copy of) the existing title in the FNT title field? To open a tiddler in FNT edit mode? To open the tiddler in story, in view mode? What problem does it solve?

BTW, do you know about the #1066 Sidebar search github discussion? It's a very long (and at times even heated) debate but joint efforts have resulted in the Search Results in Sidebar Tab plugin, still in beta I believe.

<:-)
Reply all
Reply to author
Forward
0 new messages