AutoCompletion in Wiki Editor for Velocity
Last modified by Vincent Massol on 2012/07/27 13:43
Features Implemented
- $
- $!
- ${
- $!{
- $a
- $!a
- ${a
- $!{a
- $a.
- $a.b
- $services. (list SS)
- $xwiki. (find plugins too)
- $context. (find context keys too)
- $xcontext. (find context keys too)
- $a.bbb with cursor inside the method
- Special support for Velocity shorthands for getters
- List parameters and return type
- Sorted
- Supports lowercase matching (user enters in lowercase and it matches uppercase)
- PR support!
- REST-based which means other clients can use it
- Clean code with automated tests which is ready to be proposed to the XWiki Platform
- Pluggable: new method finder can be plugged in for a specific variable name
- Generic code which can be used not only for Velocity but for other scripting languages (groovy, etc) and wiki syntax autocompletion
- Syntax highlighting
Future
- #set ($mydoc = $xwiki.getDocument("whatever"))
$mydoc. - Velocity Macro autocompletion
- Javadoc display
- Wiki syntax autocompletion on links
- Chained methods!
- Velocity VTL elements for autocompletion
- Bug: ${key}.method
- Parameter autocompletion; i.e. show param types when inside method params
- Bug: $something.class is a String and not a Class, shows as "class class"
- Return PR requirement not as text but as color of autocompletion hint for example