I was going to post this on Github as a proposal for a core plugin but 
realized I need help to define what it should actually do/be;

The idea is basically a generalization of Alain Dutech's Edit-Comp Text 
plugin <http://snowgoon88.github.io/TW5-extendedit/>, (thread 
<https://groups.google.com/forum/#!topic/tiddlywiki/ojCXpPWGTIY>).

As Alain shows, it is possible in edit-mode(!) to have popup trigger from a 
custom command that can interact with the editor content (and at cursor 
position).

With the obvious exception of Jeremys recent rich text editor additions, 
TWs edit-mode capabilities are very limited both in terms of tools to *use* 
but, more seriously, in terms of "infrastructure" to *create *tools for 
edit-mode. What I need help to define is a "piece of such infrastructure", 
i.e;


   - a widget(?) that is a generic and customizable "container" for 
   specific tools
   - and this container gives a UI for interaction between those tools and 
   the editor content


One major use of this would be for Intelligent Code Completion 
<https://en.wikipedia.org/wiki/Intelligent_code_completion> like 
VisualStudios *Intellisense*. So, for example;


   - Much like in Alain's solution, typing the beginning letters of a *macro 
   *title could propose the complete title.
   - But it could also be made to (in the popup) display *info *on the 
   relevant macro *parameters*.
   - ...even by merely clicking on a macro title, it could display this 
   info or other comments about it.
   - ...nd a link to where the macro is defined.
   - ...nd a peek feature to have it display the definition.


   - ...same features for: style classes, widget defnitions, js-code or 
   other constructs.


   - And for *markup tags* or other special syntax it could inform on 
   syntactic matters (e.g inserting a newline proposes the missing closing 
   tag, or the "\end" marker in a macro). 
   - *"Filter error: Missing [ in filter expression"* - this old favourite 
   could show already in edit mode
   - Self-recursion warnings
   - Notifications when linking, transcluding etc to missing tiddlers


...etc. In spite of my limited coding skills, it seems to me that if things 
can trigger from the typing of (or clicking on) specific strings then this 
should all be doable. And it feels like a general and useful enough concept 
that maybe it could be a standard distro widget.

Such a popup container might also be an alternative *location *to display 
the rich text edit tools in Jeremys current creations. 

But I'm *not *talking about some advanced developers tool - I'm thinking of 
an end-user widget; A regular user might want that, say, a list of 
selecatable profile pictures appear as @emplo... is typed. Or simply that a 
set of predefined text snippets list when the string "byebye" is typed.

*SO, I'm asking you to help out in specifying what this "container" should 
be in defined enough terms for it to be a valid proposal on github.*

A generic container (manifested as a popup?), in cursor proximity, 
triggered by custom strings in edit mode (and perhaps also by clicking on a 
special string?) that allows the added applicatinos it may feature to 
interact with the content. The added applications are a separate and later 
task.

BTW, thinking on how tag(pills) are selected in edit-mode, I'm thinking we 
might already have parts of this in core - no?

<:-)

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/79a3fb44-0732-4740-9b1c-cbee6acdf7b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to