[jboss-jira] [JBoss JIRA] (AS7-6004) Inconsistent tab completion behaviour between commands and arguments

Jeff Mesnil (JIRA) jira-events at lists.jboss.org
Fri Dec 7 05:42:17 EST 2012


    [ https://issues.jboss.org/browse/AS7-6004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740091#comment-12740091 ] 

Jeff Mesnil commented on AS7-6004:
----------------------------------

Using the CLI on the master branch after Aesh 0.26 has been integrated, I don't see the expected fix:

{noformat}
[standalone at localhost:9999 /] deployment-overlay a<CURSOR><TAB>
=> autocompletes to ./deployment-overlay add<CURSOR>
   and not the expected ./deployment-overlay add<WHITESPACE><CURSOR>
{noformat}

Beside, I think we have some regressions wrt to completions:

{noformat}
[standalone at localhost:9999 /] ./deployment-<CURSOR><TAB>
=> this does not autocomplete to ./deployment-overlay=<CURSOR>

while 
[standalone at localhost:9999 /] ./deployment-o<CURSOR><TAB>
=> *does* autocomplete to ./deployment-overlay=<CURSOR>
{noformat}

I am not sure this was the observed behaviour before Aesh 0.26
                
> Inconsistent tab completion behaviour between commands and arguments
> --------------------------------------------------------------------
>
>                 Key: AS7-6004
>                 URL: https://issues.jboss.org/browse/AS7-6004
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Jeff Mesnil
>            Assignee: Jeff Mesnil
>            Priority: Minor
>
> When tab is used for completion, the behavior changes when there is only 1 remaining candidate.
> For commands, when the completion leads to a single candidate, a whitespace is appended and we can proceed to the arguments
> For arguments using a TabCompleter, when the completion leads to a single candidate, no whitespace is appended and we have to type it to be able to proceed to the next argument
>  
> Example:
> * deployment-over<TAB>
> => will complete to deployment-overlay<WHITESPACE><CURSOR> (a whitespace is appended to the single candidate)
> * deployment-overlay a<TAB>
> => will complete to deployment-overlay add<CURSOR> (no whitespace appended even though add is the only candidate matched) 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list