clear cmd line on ctrl-w
This commit is contained in:
parent
556c799869
commit
432bc5a5b1
|
@ -339,6 +339,11 @@ Dashboard.prototype.layoutCmd = function() {
|
|||
process.exit(0);
|
||||
});
|
||||
|
||||
this.input.key(["C-w"], function() {
|
||||
self.input.clearValue();
|
||||
self.input.focus();
|
||||
});
|
||||
|
||||
this.input.key(["up"], function() {
|
||||
var cmd = self.history.getPreviousCommand();
|
||||
self.input.setValue(cmd);
|
||||
|
|
Loading…
Reference in New Issue