try writing "Lo" in the Lorem ipsum tiddler, then hit Ctrl+Space
I note that if I create a new tiddler, named New Tiddler and, in another tiddler, type [[ I automatically get also the closing brackets [[]] (and cursor conveniently placed in between)
but as I begin to type New there is no text autocompletion or suggestions.
Generally put, If I type [[ or <$ or << then I want for all tiddlers / widgets / macros to have a list show from which I can select an entry. If the string is extended to e.g
Does this functionality not exist?
What would be required to make it exist?
I cannot find any instrux for that "Autocompletion" addon.
Also, writing class="foo should show a select list of all classes prefixed foo.
Further, it seems that when I in a Stylesheet type bord (as in "border") that is recognized as an attribute name because it remains colored red until I've typed the last letter in border (and before any eventual space character). But I barely see any point with this recognition without autocomplete - ?
I also want be able to hover or click on certain keywords and have some info text come up. For example, if I click on a macro then perhaps the parameter list shows (extracted from some docs or from the macro definition) and if I click on a style def attribute then it's possible values come up.
What would it take to enable this type of functionality?
It is all about some pattern recognition and showing a list of stuff pulled from either some dictionary or a search in the code.
The current implementation has no idea about TW-titles. ... We would need an eg: "title-hint.js" function.
tag-hint.js, field-hint.js , widget-hint.js
eg:
The existing -closetag AddOn allows us to say eg: <div> .. As soon as you hit the > letter it will add </div> ... Which is nice. ..
The problem is, that it only works if type is set to "text/html"
The problem is: It's complex to guess what the user actually wants to see, without a specific type definition. ...
Also, writing class="foo should show a select list of all classes prefixed foo.
This will be extremely complicated and probably slow. TW allows macro calls in StyleSheet tiddlers. So it's close to impossible. So about 99.7%. ... or may be 98,7% :))
Further, it seems that when I in a Stylesheet type bord (as in "border") that is recognized as an attribute name because it remains colored red until I've typed the last letter in border (and before any eventual space character). But I barely see any point with this recognition without autocomplete - ?
Yea type: text/CSS ... knows a lot about CSS parameters. .. CTRL-SPACE is key here. IMO it's already useful, if you don't know the exact parameter names. It may help a lot with typos.
I also want be able to hover or click on certain keywords and have some info text come up. For example, if I click on a macro then perhaps the parameter list shows (extracted from some docs or from the macro definition) and if I click on a style def attribute then it's possible values come up.
So if we come up with a "doc-format" you volunteer to implement the texts .... right?
It is all about some pattern recognition and showing a list of stuff pulled from either some dictionary or a search in the code.
codemirror docs will have the info. ... But it's relatively low level developer stuff. But the existing addOns can be used as examples. ..