Very simple button for notes - help appreciated

111 views
Skip to first unread message

Matthew Phelps

unread,
Dec 12, 2019, 1:53:16 PM12/12/19
to TiddlyWiki
I have spent many hours scouring through examples on how to make a pagetoolbar button that acts as a custom journal, but am not having any success. I believe there there is something very subtle I am missing but cannot for the life of me determine why it is not working. I've tried looking at the setup of journal itself in the $:/core and was influenced by the live-notes package.

Any help would be greatly appreciated.

My homepage here (https://phelps-matthew.github.io/TW5-Notes/)  exemplifies the three simple tiddlers I've established for the toolbar. The zbutton itself  works as desired, but I cannot determine how to get it 'into' the page-controls.

Mark S.

unread,
Dec 12, 2019, 2:16:49 PM12/12/19
to TiddlyWiki
If you go to advanced search and put this into the filter tab:

[tags[]addprefix[X]addsuffix[X]]

then scroll down to see the various tags in use.

You will notice that $:/tags/PageControls has a space in front of it. Somehow you introduced an extra character. Delete the tag from TestButton2 and zbutton and close them both out to get rid of the bad tag. Then open zbutton again and select the real $:/tags/PageControls from the bottom of the drop-down list.

Good luck!

Matthew Phelps

unread,
Dec 12, 2019, 2:57:54 PM12/12/19
to TiddlyWiki
YES!!!!!!!!!!!!!!! This is exactly it. Thank you sooo much. You're the best. 

A Gloom

unread,
Dec 17, 2019, 6:28:59 PM12/17/19
to TiddlyWiki

[tags[]addprefix[X]addsuffix[X]]


made that into a simple utility since I occasionally get rouge leading & trailing spaces in titles, tags & fields from copying and pasting and its hard to see them once save except for things like seemingly duplicate tags, calling & matching errors, etc

FOR SIMPLE MANUAL EDITING EACH USE (NULL is a placeholder)

{{{ [tag[NULL]addprefix[X]addsuffix[X]] }}}

WITH A TEXT EDIT FIELD FOR FILTER ENTRY AND CODE STYLE BORDER

<$edit-text tiddler='$:/temp/spacesearch' placeholder='search term' tag='input' type='text'/><$button class="tc-btn-rounded"  style="margin-left:10px;">
<$action-setfield $tiddler="$:/temp/spacesearch" text="innominull" />
{{$:/core/images/close-button}}
</$button>

<$list filter={{$:/temp/spacesearch}}>
<span style="border:solid 1px;"><<currentTiddler>></span><br/>
</$list>

A Gloom

unread,
Dec 17, 2019, 6:33:15 PM12/17/19
to TiddlyWiki
clarification:
the code style border replaces the "X" prefix and suffix and it has no padding so it will also show leading & trailing blank spaces
Reply all
Reply to author
Forward
0 new messages