Completion proposal support for complete jline parameter
- to allow completing single argument with multiple tab clicks, for example file paths. - Backport #512 - Fixes #835
This commit is contained in:
committed by
Janne Valkealahti
parent
e2da0d0907
commit
2cb0f115c6
@@ -49,6 +49,12 @@ public class CompletionProposal {
|
||||
*/
|
||||
private boolean dontQuote = false;
|
||||
|
||||
/**
|
||||
* Whether the proposal cant be completed further. By setting complete to false then it will not append an space
|
||||
* making it easier to continue tab completion
|
||||
*/
|
||||
private boolean complete = true;
|
||||
|
||||
public CompletionProposal(String value) {
|
||||
this.value = this.displayText = value;
|
||||
}
|
||||
@@ -89,6 +95,16 @@ public class CompletionProposal {
|
||||
return this;
|
||||
}
|
||||
|
||||
public CompletionProposal complete(boolean complete) {
|
||||
this.complete = complete;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean complete() {
|
||||
return complete;
|
||||
}
|
||||
|
||||
|
||||
public CompletionProposal dontQuote(boolean dontQuote) {
|
||||
this.dontQuote = dontQuote;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user