Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Groovy
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p>This page is dedicated to the discussion of what the Groovy Shell (aka. <code>groovysh</code>) and Groovy Console (aka. <code>groovyConsole</code>) should be able to do in the future. So please go on and add suggestions.</p> <h3>Wishlist for the command-line Groovy Shell (aka. <code>groovysh</code>)</h3> <ul> <li>keep imports (<strong>DONE</strong> see <code>import</code> and <code>show imports</code> commands)</li> <li>remove the requirement for the "go" command (<strong>DONE</strong>) <ul> <li>proposal: read lines until one is entered WITHOUT a trailing semicolon or as long as there are open parantheses; change prompt for continuation lines</li> </ul> </li> <li>the value of last expression evaluated is made available in a variable. The name of the variable is short , e.g. "res". It is also automatically printed to the console (including type?). (<strong>DONE</strong> The last result is saved as the {_} variable) <ul> <li>alternate name: "_" or "_r"</li> </ul> </li> </ul> <p>from Dierk</p> <ul> <li>code completion for known methods, DGM, and symbols used so far</li> <li>dump transcript to file (<strong>DONE</strong> see <code>record</code>).</li> <li>nice to have: dump classes and methods that were previously defined (<strong>DONE</strong> See <code>show classes</code> and <code>show variables</code>, methods are wrapped in a closure and bound to variables)</li> <li>nice to have: run code in new jdb console</li> </ul> <p>from Guillaume</p> <ul> <li>all the above, and...</li> <li>possibility to discard imports (since we can keep imports, let's flush them too) (<strong>DONE</strong> See <code>purge imports</code>).</li> <li>Crazy idea: I'm wondering whether we could leverage ANSI colours in the shell so that we can have some text in colours (perhaps even syntax highlighting???) (<strong>DONE</strong> sans syntax highlighting right now)</li> </ul> <p>from Jürgen:</p> <ul> <li> learn from Python and especially IPython (sys.displayhook etc.) (<strong>DONE</strong> There is a <code>errorHook</code> and <code>resultHook</code> now).</li> <li>(GNU) readline support (<strong>DONE</strong> current trunk uses jline for rich buffer editing and history).</li> </ul> <hr /> <p>additionally: enhance ObjectBrowser to execute selected methods and change the "object under inspection" to the result of that method call. Keep an expression of how to get to that object (e.g. GPath). Let ObjectBrowser return this expression and make groovysh and groovyConsole arware of it such that groovysh user can use the inspect command to interactively construct such expressions. <br class="atl-forced-newline" /></p> <h3>Wishlist for the Swing Console (aka. <code>groovyConsole</code>)</h3> <ul> <li>basic syntax highlighting in source code (<strong>DONE</strong> in 1.5*)*</li> <li>line numbers (be able to turn on / off)</li> <li>be able to specify some .jar files that will be included into the classpath (<strong>DONE</strong> in 1.6)</li> <li>enable standard-de-facto ctrl+z for undo and ctrl+y for redo</li> <li>tabs</li> <li>code formatting</li> </ul> <p>Debug features:</p> <ul> <li>step-by-step execution of statements</li> <li>improve variables insight for clarity</li> </ul> <h3> </h3>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced