[tw5] TiddlerInfotab: ViewText to display text field of a shadow, system tiddler without having to open it in edit mode

213 views
Skip to first unread message

wimm

unread,
Dec 31, 2016, 2:02:15 PM12/31/16
to tiddl...@googlegroups.com
Sometimes you just want to view the source text of a system or shadow tiddler withot the chance of accidently modifying the source when opening the tiddler.

To minimise the chance of accidental modifying, you can use the following new TiddlerInfoTab to look at the code in read only mode..

     ViewText will display the non-wikified read only contents of the text field of the current tiddler.

Import the attached .json file to create the new tab. (updated with ~)

Njoy
WimM

One known issue : for javascript (.js) tiddlers the source is already displayed, the ViewText tab then is not usefull, when you select the tab the textfield will be display twice.

$--core-ui-TiddlerInfo-ViewText wimm ~.json

wimm

unread,
Dec 31, 2016, 3:11:23 PM12/31/16
to tiddl...@googlegroups.com
One tiny update: 
Apparently tabs now display camelcase captions as links (indepent of config setting autocamelcase to link switched on or off, is this a bug in the prerelease?).
So I changed the caption field of the tiddler from ViewText to ~ViewText.

This version works (tested) with TW 5.1.5 , TW 5.1.14-prerelease and now also with NoteSelf Mobile app by Danielo Rodríguez on android 4.4 3 chrome 54

The json file in OP is replaced.


Njoy
WimM

Tobias Beer

unread,
Jan 2, 2017, 3:23:19 PM1/2/17
to TiddlyWiki
Hi WimM,
 
Apparently tabs now display camelcase captions as links (indepent of config setting autocamelcase to link switched on or off, is this a bug in the prerelease?).

I'd say it smells like a bug, since standard tab buttons don't really provide the flexibility to have things like images rendered, afaik.

Best wishes,

Tobias.

Jeremy Ruston

unread,
Jan 3, 2017, 4:02:19 AM1/3/17
to tiddl...@googlegroups.com
Hi Tobias

Apparently tabs now display camelcase captions as links (indepent of config setting autocamelcase to link switched on or off, is this a bug in the prerelease?).

I'd say it smells like a bug, since standard tab buttons don't really provide the flexibility to have things like images rendered, afaik.

The caption field is wikified, so as to allow for things like translation.

The tabs macro could be updated to set the variable tv-wikilinks to “no” for the scope of rendering the caption field. Or we could update the button widget to automatically set tv-wikilinks for its’ content.

Best wishes

Jeremy




Best wishes,

Tobias.

--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/266eddb9-84f4-4dd9-beea-d208b2080790%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tobias Beer

unread,
Jan 3, 2017, 10:10:19 AM1/3/17
to TiddlyWiki
Hi Jeremy,

The tabs macro could be updated to set the variable tv-wikilinks to “no” for the scope of rendering the caption field. 
Or we could update the button widget to automatically set tv-wikilinks for its’ content.

Possibly the latter. But maybe there is a usecase where we would want buttons with links inside.
Not sure what's supposed to happen in this case: both events?
...e.g. "scroll to tiddler" and perform click action(s)?

So, the safer place to fix the issue probably is modifying the tabs macro.
However, updating the button widget would cover that ground as well.

Not sure.

Best wishes,

Tobias.

Danielo Rodríguez

unread,
Jan 3, 2017, 1:56:55 PM1/3/17
to TiddlyWiki
For me having a link inside a button it's always a problem. I faced this before and Mario persuaded me from asking a change, can't remember how.

wimm

unread,
Jan 4, 2017, 2:44:40 AM1/4/17
to TiddlyWiki
Hi Jeremy 
The caption field is wikified, so as to allow for things like translation.

If the caption field is wikified, shouldn't it still convert camel case words into links depending on the config setting

--- 

Camel Case Wiki Links

You can globally disable automatic linking of CamelCase phrases. Requires reload to take effect

Jeremy Ruston

unread,
Jan 7, 2017, 8:17:45 AM1/7/17
to tiddl...@googlegroups.com
Hi wimm


The caption field is wikified, so as to allow for things like translation.

If the caption field is wikified, shouldn't it still convert camel case words into links depending on the config setting

Setting the variable `tv-wikilinks` to “no” suppresses linking within that scope.

Best wishes

Jeremy.

--- 

Camel Case Wiki Links

You can globally disable automatic linking of CamelCase phrases. Requires reload to take effect


--
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 https://groups.google.com/group/tiddlywiki.

wimm

unread,
Feb 19, 2017, 9:31:16 AM2/19/17
to TiddlyWiki
Thank you Tobias, Jeremy,

I'll use the ~ 

which is IMHO easier to maintain,

BR
Wimm
Reply all
Reply to author
Forward
0 new messages