OneNote-style flagging

181 views
Skip to first unread message

Jon

unread,
Jul 23, 2020, 4:54:29 PM7/23/20
to TiddlyWiki
Hi,

In OneNote, you can apply a flag to selected lines of text in a note and repeat that for multiple notes.
You can then search for the flag which will just bring up just those lines of text from all of the notes.

In my wiki, I've got several tiddlers which are notes on a particular subject and I want to "extract" a couple of lines from each which require a follow-up.

I don't want to split the tiddlers as that would be overkill.

Can I enclose the lines of text in something and then use a filter to reproduce the OneNote-style flagging?

Regards
Jon

TW Tones

unread,
Jul 23, 2020, 6:01:25 PM7/23/20
to TiddlyWiki
Jon

I will give this some further thought but the standard answer would in tiddlywiki be to divide into it here tiddlers. Have you used the excise tool? You mention not splitting but I am not sure if you considered excise.

However since the two things you seem to need is to indicate a section of text and search for it later I can imagin a lot of ways to do this.

Rather than define your requirement by reference to OneNote perhaps you could describe what you want to see and do, be imaginative and dream of the ideal and let us know. I / we are all about making dreams come true in tiddlywiki.

Regards
Tony

TW Tones

unread,
Jul 23, 2020, 6:13:57 PM7/23/20
to TiddlyWiki
The answer to your question is yes.

If you want to do it yourself!

Many ways are available
You can use hidden comments the content which can be found using search.
You can use html sections, div or span to wrap a section
You can use css classes on such sections
You can use splitregexp[\n] to extract lines from text the prefix[string] to find lines beginning with something.
If you are happy to use a particular existing wiki text standard e.g. headings you can build a tool to list it when found in tiddlers.
You can make text as a parameter to a macro.
You can wrap text or a transclude inside a button for click to action.

Etc etc...

Regards
Tony

Jon

unread,
Jul 24, 2020, 1:53:47 AM7/24/20
to tiddl...@googlegroups.com
Thanks Tony, I thought there would be several ways to do it!

I hadn't actually come across the Excise tool before so thanks for pointing it out!

After playing around with it, it's not quite what I was after because, as far as I can see, once you excise the text into a new tiddler, you can't excise further text into the same tiddler - it will overwrite the previous one.

Also, I want the text in the new tiddler to link back to the original tiddler with the text in the original unchanged.

So for instance, if I've got a series of note tiddlers where each may have a few lines which prompt a question or follow up, I want to be able to mark those sections somehow, so just those sections will all appear in another 'Questions' tiddler and will link back to their source tiddler.

Regards
Jon

Birthe C

unread,
Jul 24, 2020, 2:14:53 AM7/24/20
to TiddlyWiki

Jon

unread,
Jul 24, 2020, 6:21:07 AM7/24/20
to TiddlyWiki
Hi Birthe,

Well, that's pretty much exactly what I want!

Unfortunately it's not working correctly in my wikis.

In the first (vs.5:1:21), it works but I get a lot of extraneous text in the target tiddler, so above the "cherry" I also get a block of text beginning with pfx: and a second beginning with txt: and another below beginning with rest:


In the second wiki (vs. 5:1:22) as soon as I paste the macro into a tiddler, the browser locks up and I get "A web page is slowing down your browser" message.

Perhaps it's because my wikis are too weak and feeble to withstand Mat's genius - hopefully he'll be around soon to put things right :)

Regards
Jon

Birthe C

unread,
Jul 24, 2020, 2:26:46 PM7/24/20
to TiddlyWiki
Jon,

I tested it in vs. 5.1.22. I did not get any browser lock up - but I did not get the wanted result either. No matter what I do....no cherries...only the word NO.

Birthe


Birthe C

unread,
Jul 24, 2020, 2:55:48 PM7/24/20
to TiddlyWiki
Jon,
 
Try to look in the macro. You will see that pfx, text and rest is matching the work the macro does chewing through the text. The last part the scrub doesn't seem to work.

It makes me think, that even if it worked, it would not be good for use, if you have lots of cherries to pick. ;-)


Birthe

Jon

unread,
Jul 24, 2020, 2:56:16 PM7/24/20
to TiddlyWiki
Hi Birthe,

If the macro isn't matched correctly then "No" will show, so something like:

<<cherrypicker "@Q">> 

with @QThis is some text@Q

What browser are you using by the way, I'm using Firefox?

Regards
Jon

Mat

unread,
Jul 24, 2020, 2:56:45 PM7/24/20
to TiddlyWiki
@Jon/Birthe

A lot has happened with TW since I made the CherryPicker so it is much due for a total rework. Unfortunately I don't have the time at the moment. Fortunately several of the improvements in TW makes it much simpler to create something like CherryPicker. You can experiment with the filter operators: search, split and join. Possibly splitregexp also.

<:-)

Jon

unread,
Jul 24, 2020, 3:21:11 PM7/24/20
to tiddl...@googlegroups.com
Ah, it's a shame a little tweaking won't make it work :)


Mark S.

unread,
Jul 24, 2020, 4:17:30 PM7/24/20
to TiddlyWiki

Excising tiddlers is the method that matches the Philosophy of Tiddlers.

What's needed is an enhanced excision tool that would:

  1. Allow you to specify a tag
  2. Transclude the excised text and wrap it in a link for rapid access
  3. Insert the original tiddler name into a field "excisedfrom" in the excised tiddler.
  4. Accompanied by a template that would reveal the excisedfrom field whenever available.

Then you would be able to grab everything you had tagged (e.g. "Quotes") for presentation, and easily link back to the source document. Actually, a version that did 1 and 2, and instead of a field, put in a link to the source tiddler, would work well with Stroll which already provides the backlinks.


Jon

unread,
Jul 25, 2020, 1:01:57 AM7/25/20
to TiddlyWiki
Glad you've taken an interest, Mark.
Reply all
Reply to author
Forward
0 new messages