clear cmd line on ctrl-w

This commit is contained in:
Iuri Matias 2016-09-22 22:52:59 -07:00
parent 556c799869
commit 432bc5a5b1
1 changed files with 5 additions and 0 deletions

View File

@ -339,6 +339,11 @@ Dashboard.prototype.layoutCmd = function() {
process.exit(0); process.exit(0);
}); });
this.input.key(["C-w"], function() {
self.input.clearValue();
self.input.focus();
});
this.input.key(["up"], function() { this.input.key(["up"], function() {
var cmd = self.history.getPreviousCommand(); var cmd = self.history.getPreviousCommand();
self.input.setValue(cmd); self.input.setValue(cmd);