mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
feature(console) paste path of current directory on Ctrl + P
This commit is contained in:
parent
8f6892c59f
commit
cd936ac686
2 changed files with 8 additions and 0 deletions
1
HELP.md
1
HELP.md
|
|
@ -138,6 +138,7 @@ Console
|
|||
|Key |Operation
|
||||
|:----------------------|:--------------------------------------------
|
||||
| `~` | open
|
||||
| `Ctrl` + `P` | paste path of current directory
|
||||
| `Esc` | close
|
||||
|
||||
Config
|
||||
|
|
|
|||
|
|
@ -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, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue