You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2013/10/09 14:53:42 UTC

[jira] [Updated] (KARAF-2496) Add a property to define the behaviour of the subshell completion

     [ https://issues.apache.org/jira/browse/KARAF-2496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-2496:
----------------------------------------

    Description: 
We can see two behaviours for the completion using subshell:
1. the "new" behaviour: the completer only shows the direct subshell to the current shell, and commands to the current shell (not all commands from all shells/scopes)
2. an alternative to the 1. is to have completion for all commands when we are not in a subshell, and, when we are in a subshell, only the commands local to this subshell.
3. the "old" behaviour: the completer displays commands from all shells/scopes, and all subshells.

I add a session property (karaf.completionMode) to define which mode is used by the CommandsCompleter.
The initial value of the completionMode is populated with the completionMode property from etc/org.apache.karaf.shell.cfg file.

I also provide a command (shell:completion MODE) to define the completion mode that the user wants to use. The user can change the completion mode on the fly, while using the console.

  was:
We can see two behaviours for the completion using subshell:
1. the "new" behaviour: the completer only shows the direct subshell to the current shell, and commands to the current shell (not all commands from all shells/scopes)
2. the "old" behaviour: the completer displays commands from all shells/scopes, and all subshells.

The users can be disturbed by the new behaviour. In order to give the choice, I will add the subshellCompletionOnly property in etc/org.apache.karaf.shell.cfg file.

If subshellCompletionOnly=true, the completer will display only the subshell, not all commands ("new" behaviour).
If subshellCompletionOnly=false, the completer will display all subshells, all commands, all aliases ("old" behavior).


> Add a property to define the behaviour of the subshell completion
> -----------------------------------------------------------------
>
>                 Key: KARAF-2496
>                 URL: https://issues.apache.org/jira/browse/KARAF-2496
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.0.0
>
>
> We can see two behaviours for the completion using subshell:
> 1. the "new" behaviour: the completer only shows the direct subshell to the current shell, and commands to the current shell (not all commands from all shells/scopes)
> 2. an alternative to the 1. is to have completion for all commands when we are not in a subshell, and, when we are in a subshell, only the commands local to this subshell.
> 3. the "old" behaviour: the completer displays commands from all shells/scopes, and all subshells.
> I add a session property (karaf.completionMode) to define which mode is used by the CommandsCompleter.
> The initial value of the completionMode is populated with the completionMode property from etc/org.apache.karaf.shell.cfg file.
> I also provide a command (shell:completion MODE) to define the completion mode that the user wants to use. The user can change the completion mode on the fly, while using the console.



--
This message was sent by Atlassian JIRA
(v6.1#6144)