Question - Does a plug in exist to make Hash Tags for Inline #Tags in TW5?

342 views
Skip to first unread message

RichShumaker

unread,
Dec 22, 2016, 10:00:08 PM12/22/16
to TiddlyWiki
Is there a current plug in that would allow you to automagically turn inline #Hashtags into Tags for that Tiddler?

Thanks everyone and have an amazing holiday.

Rich Shumaker

Tobias Beer

unread,
Dec 22, 2016, 11:58:22 PM12/22/16
to tiddl...@googlegroups.com
Hi Rich,

In an attempt to rebuild my plugin for TW2,
I once tried at it but ran into a major issue
that prevented me from going further...

#2192 hashtags wikirule breaks stylesheets

——

Possibly, I should post a demo at that ticket or here
for others to play with and perhaps come up with
a solution I didn't manage to find yet.

Best wishes,

Tobias.

RichShumaker

unread,
Dec 23, 2016, 3:40:30 AM12/23/16
to TiddlyWiki
As always thank you Tobias.

That helps me out and keeps my sanity for a bit.

Rich Shumaker

Mark S.

unread,
Dec 23, 2016, 12:11:43 PM12/23/16
to TiddlyWiki
Does it have to be "automagic" ? It seems to me that it might be possible to make something that, at a press of a button, would tag all your tiddlers based on hashtags IF you knew in advance what hashtags to look for.

Tobias Beer

unread,
Dec 23, 2016, 4:27:28 PM12/23/16
to tiddl...@googlegroups.com
Hi Mark,
 
Does it have to be "automagic" ?

Basically: Yes.
 
It seems to me that it might be possible to make something that, at a press of a button, would tag all your tiddlers based on hashtags IF you knew in advance what hashtags to look for.

The point is not that tiddlers are tagged using general tags, but that you are able to define #hashtags, inline.

Besides, if one was to do a text search for hashtags only to create them as real tags, you might as well just use them as they are.

The trouble is mostly that you cannot currently define a parser that does something special with #hashtag, because that would kick-in for half the palette tiddlers / stylesheets that use them. And there lies the real problem. TiddlyWiki should be able to, by default, disable certain parsers in a given context, e.g. a #hashtag parser rule and probably others, too, should never be run in the context of a stylesheet tiddler... w/o having to specifically diable that rule in the Stylesheet itself. Why? Because I cannot suggest others to modify a core theme and add some "hashtags off" pragma rule just to make it compatible with a #hashtags plugin.

To remedy the situation, I created a new issue:

#2675 ParserWidget enabling or disabling parser rules for a context

Best wishes,

Tobias.

Mark S.

unread,
Dec 23, 2016, 6:58:52 PM12/23/16
to TiddlyWiki


On Friday, December 23, 2016 at 1:27:28 PM UTC-8, Tobias Beer wrote:
Besides, if one was to do a text search for hashtags only to create them as real tags, you might as well just use them as they are.

Once you have the tiddlers tagged, you can use them in all the ways that tagged tiddlers are used, especially  the TOC macro. Also,, when would the rule get applied? If it gets applied in a constant refresh cycle, seems like that would add a lot to TW overhead (which is already too much -- it interferes with typing all the time). A refresh button would have to be used on an as-needed basis.

Cheers,
Mark

RichShumaker

unread,
Dec 23, 2016, 9:29:57 PM12/23/16
to TiddlyWiki
Thanks again Tobias and now Mark S.

The end goal was to have the inline #hashtags turn into tags for the tiddler, however that might happen.
My thought was that when you hit the check mark and close a tiddler it would 'automagically' convert #hashtags to Tiddler Tags.
I am not a coder so I can't say how it would really work or how it might best work.

A long time ago I was looking at TW as a possible off the grid FB for everyone and I wanted to grab features from other social platforms.
If you have seen an Instagram post it reads like a # party.  Some are #this #that #words #stuff it is #crazy.
It makes sense once you understand that the 'search' mechanism uses it and without that special symbol then no one can discuss things together or even find things.

Have an amazing holiday and thanks again everyone for discussing this again.

Rich Shumaker

Tobias Beer

unread,
Dec 24, 2016, 2:47:00 AM12/24/16
to tiddl...@googlegroups.com
Hi Mark,
 
Once you have the tiddlers tagged, you can use them in all the ways that tagged tiddlers are used, especially  the TOC macro.

While there likely is a performance benefit to that, you could easily use [search[#hashtag]].

Also,, when would the rule get applied?

Not a "rule" rather than wiki markup... and as such, of course, when rendered. Otherwise, when clicked on that #hashtag.

If it gets applied in a constant refresh cycle, seems like that would add a lot to TW overhead (which is already too much -- it interferes with typing all the time).

Same is true about making text bold and then not.

A refresh button would have to be used on an as-needed basis.

I wouldn't know why. I agree, some #hashtag index would be beneficial for performance compared to doing a full text search. However, clicking on a hashtag to find related results isn't going to be something you'll be doing all the time. But seeing a #hashtag rendered as a clickable link doesn't come with any more overhead than rendering any type of link!

My problem right now is that the TiddlyWiki core prevents me from turning the wikitext #hashtag into a link... since that will break stylesheets.

Best wishes,

Tobias. 

Danielo Rodríguez

unread,
Dec 24, 2016, 3:07:04 AM12/24/16
to TiddlyWiki
I have created a plugin called automatic tags or something like that. Instead of look for hashtags it looks for existing tags contained as words in the tiddler being saved, and all matches are added as tags to the tiddler.
Does that fit your needs?

Tobias Beer

unread,
Dec 24, 2016, 6:53:39 AM12/24/16
to TiddlyWiki
Hi Danielo,
 
I have created a plugin called automatic tags or something like that. Instead of look for hashtags it looks for existing tags contained as words in the tiddler being saved, and all matches are added as tags to the tiddler.

Here's your plugin link: AutoTag ;-)

I'm thinking I may create something slightly different, where those "autotags" are created not at the tiddlers themselves but under a system-namespace, decoupled so as to not overload actual tiddlers with plugin related data.

My variation would probably also have a button to re-index everything, e.g. initially or after changing the definition for what is to be matched as a tag.

Best wishes,

Tobias.
 

Riz

unread,
Dec 24, 2016, 9:29:10 AM12/24/16
to TiddlyWiki

RichShumaker

unread,
Jan 6, 2017, 6:07:34 PM1/6/17
to TiddlyWiki
Wow cool implementation.
Need to test it out and thanks Riz for posting this.

I wonder if this could be used for other things like @ for People as well.

Thanks again for posting this.

Rich Shumaker

Riz

unread,
Jan 6, 2017, 8:31:37 PM1/6/17
to TiddlyWiki


Did it work? Tobias was telling me how it failed to work for him. Remember you have to specify the symbol in the settings first.

Yeah, it can be tweaked to include @people as well. However, currently it has the limitations pointed out by Beabonobo and I haven't had time to solve them.


Mark S.

unread,
Jan 6, 2017, 11:48:05 PM1/6/17
to TiddlyWiki
It seems to work on my version of chrome. (Version 55.0.2883.87 m (64-bit))

One thing, if you use control-enter to close out the tiddler, it doesn't work. You have to use the check-mark.

ĝis,
Mark

Rizwan Ishak

unread,
Jan 6, 2017, 11:50:22 PM1/6/17
to tiddl...@googlegroups.com
Yeah, that is expected. As you can see, what I did was modify the save button to scan the text and find the hashtags, and add it to list of existing tags. 

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/L3IWabNQYrE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@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/46dbd292-c393-43d7-bd94-a4cba159ac03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

RichShumaker

unread,
Jan 7, 2017, 12:21:45 AM1/7/17
to TiddlyWiki
I am trying to figure out how to install the JSON plug in manually.
So it is not work for me yet as I haven't gotten it installed, heheh.

Any links on how to do manually install the JSON plug in would be greatly appreciated as I haven't figured it out yet.

Rich Shumaker


On Friday, January 6, 2017 at 8:50:22 PM UTC-8, Riz wrote:
Yeah, that is expected. As you can see, what I did was modify the save button to scan the text and find the hashtags, and add it to list of existing tags. 
On 07-Jan-2017 10:18 AM, "'Mark S.' via TiddlyWiki" <tiddl...@googlegroups.com> wrote:
It seems to work on my version of chrome. (Version 55.0.2883.87 m (64-bit))

One thing, if you use control-enter to close out the tiddler, it doesn't work. You have to use the check-mark.

ĝis,
Mark

On Friday, January 6, 2017 at 5:31:37 PM UTC-8, Riz wrote:


Did it work? Tobias was telling me how it failed to work for him. Remember you have to specify the symbol in the settings first.

Yeah, it can be tweaked to include @people as well. However, currently it has the limitations pointed out by Beabonobo and I haven't had time to solve them.


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/L3IWabNQYrE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

Rizwan Ishak

unread,
Jan 7, 2017, 12:39:03 AM1/7/17
to tiddl...@googlegroups.com
Download the JSON, drag and drop it to your TW.


To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

RichShumaker

unread,
Jan 7, 2017, 3:22:13 AM1/7/17
to TiddlyWiki
Thanks and I remember I had some obscure JSON issue a while ago.
Still having it or I am just doing it wrong, https://youtu.be/aRw5J_OOxDg

Rich Shumaker

Riz

unread,
Jan 7, 2017, 4:25:26 AM1/7/17
to TiddlyWiki


That is an interesting bug. I am afraid I don't have a solution for that issue.

However, here is where I kept the original copy of the plugin. https://tesseract-index.bitbucket.io/pluginsandmacros/hashtag2tag.html

Jeremy Ruston

unread,
Jan 7, 2017, 5:06:45 AM1/7/17
to tiddl...@googlegroups.com
Hi Rich

Thanks and I remember I had some obscure JSON issue a while ago.
Still having it or I am just doing it wrong, https://youtu.be/aRw5J_OOxDg

I couldn’t duplicate the bug you show there of a JSON file containing multiple tiddlers importing as a single tiddler. Do you get the same problem if you export a JSON file from tiddlywiki.com/index.html and try to import it into tiddlywiki.com/empty.html?

Best wishes

Jeremy

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.

Mark S.

unread,
Jan 7, 2017, 10:21:07 AM1/7/17
to TiddlyWiki
Seems like the first step is to determine if there is an import or export problem.

If you use a text editor, are the tiddlers actually in your generated json file?

Good luck!
Mark

RichShumaker

unread,
Jan 7, 2017, 9:30:23 PM1/7/17
to TiddlyWiki
I was able to drag and drop the plug in. THANK YOU.
I can add a plug in from the repository.
I can drag and drop a plug in.
JSON's for some reason just don't work for me and I have tried many browsers on this computer and many TW5 files.

In regards to why I can't get JSON's to work I blame me.
I am sure there is something that I don't understand or that I am doing incorrectly.

I will try to troubleshoot this except I am the only one that has ever reported it that is why I think I am the actual issue.

If I find a solution to the JSON issue I will let you know and I will try everything that people suggest as I would like to know what is up.
I was able to get hashtag2tag to work in my ecosystem, I use FF, I will try to test on Chrome except I don't use Chrome day in day out.

Rich Shumaker

BJ

unread,
Jan 8, 2017, 3:35:00 AM1/8/17
to TiddlyWiki
Hi Rich,
this happens if tw cannot recognise the last part of the filename as '.json'. I can reproduce this behavior by appending a space to the file extension ie '.json '. So I would try renaming your json files. Note that if you import one of these (non-working) files then click on the edit button in tiddlywiki, you can position the curser at the end of the tiddler name to see if there is a blank space added to the file name.

All the best
BJ
Reply all
Reply to author
Forward
0 new messages