You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/08/03 22:51:00 UTC

[jira] [Commented] (GROOVY-6780) Replace FileNameCompleter of Groovysh with JLine2 FileNameCompleter

    [ https://issues.apache.org/jira/browse/GROOVY-6780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16113638#comment-16113638 ] 

Paul King commented on GROOVY-6780:
-----------------------------------

I had a look into this and the ability to suppress the trailing blank isn't implemented in the latest JLine {{FileNameCompleter}} but within {{CandidateListCompletionHandler}}. We can possibly extend from the JLine2 {{FileNameCompleter}} class though and not have as much (hardly any?) duplicated code. That would potentially allow us to remove the special license notice for the respective file. I noticed that on Windows user.home (~) isn't working and neither are backslashes. (Single backslashes complete but then aren't escaped - escaped/double backslashes don't work with completion. This is with either our file or the one in JLine 2.14.5.)

> Replace FileNameCompleter of Groovysh with JLine2 FileNameCompleter
> -------------------------------------------------------------------
>
>                 Key: GROOVY-6780
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6780
>             Project: Groovy
>          Issue Type: Task
>          Components: Groovysh
>            Reporter: Pascal Schumacher
>            Priority: Minor
>
> Groovysh includes a patched version of the JLine2 FileNameCompleter (org.codehaus.groovy.tools.shell.completion.FileNameCompleter).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)