Mat,

A few thoughts

   - Perhaps auto numbering is useful but manual numbering would be fine as 
   well. 
   - Yes actually I see this serial number method being useful in a number 
   of places, multiple values for which one can obtain the next number. Keep 
   in mind this needs a trigger to set the incremented field. 
   - So when creating the ghost tiddler you need to either use or set then 
   use the Serial number first.
   - Rather than delete ghost tiddlers I suggest leave them, after all we 
   could export and reimport and the matching serial number would come alive 
   again. Of course if one was to delete large numbers of tiddlers an empty 
   dead ghosts button would help reduce space wastage.
   - Again if a comment marker is deleted leave the actual comment in the 
   ghost tiddler, perhaps you are just cutting and pasting from one part of 
   the tiddler to another. If the comment marker is restored it will return, 
   you could have a list of orphaned comments to review if you wanted.

Further though should be given to global markers. 

   - In this case they can be applied multiple times in multiple places and 
   display the same content, wherever used. This would be good for annotating 
   common code patterns, even ones you copied into your code from a code 
   template, it could be preloaded with a global comment, perhaps even 
   referencing the code pattern source. 
   - Finally lets consider searching comments, find them in ghosts and 
   listing the main non ghost tiddler.

Regards
Tony

On Friday, April 10, 2020 at 12:25:04 AM UTC+10, Mat wrote:
>
> Tony, I like your idea. Here's a sketch for a workflow/UI:
>
> A'la EditorMagic, typing some trigger e.g <! could open a popup at caret 
> position, showing a small floating editor. Comments are added there. 
> Closing it converts the trigger into e.g <!-- # --> where # is e.g a 
> calculated number unique within the tiddler (but another tiddler might have 
> the same number). The number of comments a tiddler has is very limited so a 
> rough but pragmatic strategy could be to number any new comment with "the 
> current highest number +1".
>
> Hovering or clicking this marker shows the comment. Or, clicking some 
> button for the whole editview tiddler, opens all comments perhaps located 
> where the preview area is located. (Nice if they're vertically located 
> where the comment marker is but not sure if that's possible.)
>
> What really happens as soon as you add a comment is that a ghost tiddler 
> is created. Every new comment is a new field in this ghost tiddler. 
>
> When a tiddler is deleted, its ghost tiddler should probably also be 
> deleted. 
>
> What happens if a comment marker is deleted? I guess saving the tiddler 
> makes a run through of the existing markers and the existing ghostly 
> comments and anything not matching up is removed.
>
> Thoughts?
>
> <:-)
>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/aa7c43a1-d6d3-4c87-97d8-38e0e3854301%40googlegroups.com.

Reply via email to