[TW5] Questions about Excision and using as outliner

104 views
Skip to first unread message

Mark S.

unread,
Nov 15, 2016, 5:32:16 PM11/15/16
to TiddlyWiki
Hello everyone,

I'm attempting to roll my own excision macro so that the resulting tiddler structure works something like an outliner.

It occurs to me that I might be re-inventing the napkin. Has anyone else already made an outliner for TW5?

Is there a way to change the default macro in the excision dialog so I don't have to keep typing in the new macro name over and over?

I'll post the macro and stylesheet I have so far below.

Thanks!
Mark

Styles:

.transedit .tc-image-fold, .transedit .tc-image-unfold, .transedit .tc-image-edit-button {
width
: 1em ;
height
: auto ;
line
-height: 1.2em ;
float:right;
}
.transedit .tc-btn-invisible, .transedit .tc-subtitle {
float: right;
line
-height: 1.2em ;
}
.transedit svg {
fill
:  blue;
}

 Styles:

\define transedit("title")
<$reveal text="show" type="match" state="""$:/state/$title$""">
<br/>
@@.transedit
<$button set= """$:/state/$title$""" setTo="hide" class="tc-btn-invisible">{{$:/core/images/fold-button}}</$button>
<$button message="tm-edit-tiddler" param="""$title$""" class="tc-btn-invisible" >{{$:/core/images/edit-button}}</$button>
@@
<$transclude tiddler="""$title$""" mode="block"/>
</$reveal>
<$reveal text="show" type="nomatch" state="""$:/
state/$title$""">
<br/>
@@.transedit
<$button set="""
$:/state/$title$""" setTo="show" class="tc-btn-invisible" >
{{$:/core/images/unfold-button}}</$button><span class="
tc-subtitle"> $title$&nbsp;&nbsp;&nbsp;</span>
@@
</$reveal>
\end



Sylvain Naudin

unread,
Nov 16, 2016, 2:31:42 AM11/16/16
to TiddlyWiki
Hi Mark,

It's not transclusion, but you have this :
Some Plugins for the new Editor Toolbar : https://groups.google.com/d/msg/tiddlywiki/zjb_wH0BgJc/emN7GcZIAwAJ

Work from Stephen Kimmel :
http://skplugins.tiddlyspot.com/


Have a good day,
Sylvain

Mark S.

unread,
Nov 16, 2016, 10:51:38 AM11/16/16
to TiddlyWiki
Thanks Sylvain,

I don't see anything in there that would help with my goal. I'm trying to use the excision feature to be able to effectively create an outline by a series of excisions. Parts that you're not working on can be hidden away. Actually, with this approach you end up with text formatted like it would be in a standard Wiki, with each section having its own edit button.

One of the problems is that the excision tool wants me to type in the name of the new macro each time I use it, rather than defaulting to the last macro.

Thanks,
Mark
Reply all
Reply to author
Forward
0 new messages