Inline Tagging?

112 views
Skip to first unread message

primetime

unread,
May 4, 2008, 3:20:27 PM5/4/08
to TiddlyWiki
Hi, would it be possible add tags of the note while you're typing the
text block? So you don't have to type words into the tag box?

FND

unread,
May 4, 2008, 3:43:16 PM5/4/08
to Tiddl...@googlegroups.com
> Hi, would it be possible add tags of the note while you're typing the
> text block? So you don't have to type words into the tag box?

I could swear there was a thread on this only recently - but for the
life of me, I can't find it!
I'm sure someone here will remember the thread title though...


-- F.

ocalTW

unread,
May 4, 2008, 3:49:25 PM5/4/08
to TiddlyWiki
Hi primetime

Have a look at Lewcid's TaggerPlugin : http://tw.lewcid.org//#TaggerPlugin
You can add the "tagger" as a macro word in both the EditTemplate and
the ViewTemplate
There may be other plugins too, but this is the one I use.

-- ocalTW

Eric Shulman

unread,
May 4, 2008, 3:49:52 PM5/4/08
to TiddlyWiki
> Hi, would it be possible add tags of the note while you're typing the
> text block? So you don't have to type words into the tag box?

To do this, we would need to have some special syntax that you could
type around the text of each 'inline tag' so that it could be
recognized as a tag. This syntax would then also have to be
suppressed in the rendering of the tiddler content, so that the tag
text would appear as normal content. However, this becomes
problematic if you want that text to be, for example, part of the
display text for a "PrettyLink" (i.e., the [[show this text|
TiddlerName]] syntax).

It doesn't seem to me that there is much to be gained, and a great
deal of complexity to be added, simply to avoid entering tags into a
separate field.

However, you can use this plugin:
http://www.TiddlyTools.com/#AutoTaggerPlugin
to automatically *scan* the tiddler source content for any text that
matches any tag that has already been used in the document and then
add those matching tags to the tiddler.

For example, supposed you create a tiddler and tag it with "foobar".
Then, create another tiddler in which 'foobar' occurs within that
tiddler's content. If you tag that tiddler with "auto" then, when you
press 'done', that tiddler will be scanned and tagged with 'foobar',
without having to type "foobar" into the tag input field.

AutoTaggerPlugin also includes some other handy features, such as "tag
aliases", so that you can enter a single tag value into the tag input
field, and it will be automatically converted to one or more other
tags. Please refer to
http://www.TiddlyTools.com/#AutoTaggerPluginInfo
for more details.

enjoy,
-e


FND

unread,
May 4, 2008, 3:55:15 PM5/4/08
to Tiddl...@googlegroups.com
> I could swear there was a thread on this only recently - but for the
> life of me, I can't find it!

I'm pretty sure this was the thread I was thinking of:
http://groups.google.com/group/TiddlyWiki/t/38cea8b845e70364/


-- F.

Simon Baird

unread,
May 4, 2008, 9:00:48 PM5/4/08
to Tiddl...@googlegroups.com
It's an interesting idea. MediaWiki's categories work this way. I imagine it's a fairly easy plugin to write. The plugin would need a formatter so that (for example) [[tag:SomeTag]] would be ignored by the wikifier. And possibly eat surrounding new lines to reduce unwanted whitespace. And a hijack of story.saveTiddler to parse the contents of the tiddler and produce a list of tags.

On Mon, May 5, 2008 at 5:20 AM, primetime <adriann...@gmail.com> wrote:

Hi, would it be possible add tags of the note while you're typing the
text block?  So you don't have to type words into the tag box?





--
simon...@gmail.com

Eric Shulman

unread,
May 4, 2008, 11:25:22 PM5/4/08
to TiddlyWiki
> It's an interesting idea. MediaWiki's categories work this way. I imagine
> it's a fairly easy plugin to write. The plugin would need a formatter so
> that (for example) [[tag:SomeTag]] would be ignored by the wikifier. And
> possibly eat surrounding new lines to reduce unwanted whitespace. And a
> hijack of story.saveTiddler to parse the contents of the tiddler and produce
> a list of tags.

AutoTaggerPlugin already does the latter part, i.e., hijacking
story.saveTiddler() and parsing the contents to add tags, so it would
be relatively simple to implement as another feature of that plugin.
However, I'm just not sold on the idea of embedding a special syntax
to surround tiddler content. There are several concerns:

* An 'inline tag' syntax wouldn't actually result in some kind of
corresponding *formatting* of that content. Instead, the result would
look like normal text, but perform a 'side-effect' of setting a tag.
This is unlike other TW syntax that is generally used to format the
content it surrounds.

* The inline tag syntax would have to be something that *never* occurs
in normal content, otherwise inadvertent tagging would occur.

* Tagging that is specified inline could be very hard to spot when
buried within a large block of content (especially if it looks similar
to other kinds of TW wiki formatting syntax), making it difficult to
locate and review or remove a tags from that tiddler without carefully
reading through the tiddler's entire source definition.

* I suppose that AutoTaggerPlugin could remove the inline syntax when
it scans and adds the tags, so that subsequent edits of the tiddler
would show the tags in the usual tag input field and the actual
tiddler source would contain normal text. However, this means that
interaction with the tags input field would still be an integral part
of editing a tiddler, so the use of inline tag specification becomes
just a one-time minor convenience.

Given the concerns noted above, I just don't see where there is a
great advantage to using a special inline syntax to enter tags when
the normal tag input field would still need to be present. Even so,
if you can make a strong case for how this feature would result in a
significant improvement in user interaction during editing, and can
suggest a suitably distinct syntax, I'm willing to add it as an
*optional* feature to AutoTaggerPlugin.

-e
Reply all
Reply to author
Forward
0 new messages