feature(console) paste path of current directory on Ctrl + P

This commit is contained in:
coderaiser 2014-07-01 10:00:29 -04:00
parent 8f6892c59f
commit cd936ac686
2 changed files with 8 additions and 0 deletions

View file

@ -138,6 +138,7 @@ Console
|Key |Operation
|:----------------------|:--------------------------------------------
| `~` | open
| `Ctrl` + `P` | paste path of current directory
| `Esc` | close
Config

View file

@ -68,6 +68,13 @@ var CloudCmd, Util, DOM, CloudFunc, $;
jqconsole.AbortPrompt();
handler();
});
jqconsole.RegisterShortcut('P', function() {
var command = jqconsole.GetPromptText();
command += DOM.getCurrentDirPath();
jqconsole.SetPromptText(command);
});
}
CloudCmd.View.show(Element, {