mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(dom) add goToDirectory
This commit is contained in:
parent
c8de19c7b4
commit
10cbb16645
3 changed files with 18 additions and 0 deletions
1
HELP.md
1
HELP.md
|
|
@ -125,6 +125,7 @@ Hot keys
|
|||
| `Ctrl + u` | swap panels
|
||||
| `Up`, `Down`, `Enter` | file system navigation
|
||||
| `Alt + Left/Right` | show content of directory under cursor in target panel
|
||||
| `Alt + g` | go to directory
|
||||
| `Ctrl + \` | go to the root directory
|
||||
| `Tab` | move via panels
|
||||
| `Page Up` | up on one page
|
||||
|
|
|
|||
|
|
@ -1772,6 +1772,17 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
return this;
|
||||
};
|
||||
|
||||
this.goToDirectory = function() {
|
||||
var msg = 'Go to directory:',
|
||||
path = CurrentInfo.dirPath;
|
||||
|
||||
path = prompt(msg, path);
|
||||
|
||||
path && CloudCmd.loadDir({
|
||||
path: path
|
||||
});
|
||||
},
|
||||
|
||||
this.duplicatePanel = function() {
|
||||
var isDir = CurrentInfo.isDir,
|
||||
path = CurrentInfo.dirPath,
|
||||
|
|
|
|||
|
|
@ -472,6 +472,12 @@ var CloudCmd, Util, DOM;
|
|||
|
||||
break;
|
||||
|
||||
case Key.G:
|
||||
if (alt)
|
||||
DOM.goToDirectory();
|
||||
|
||||
break;
|
||||
|
||||
/**
|
||||
* обновляем страницу,
|
||||
* загружаем содержимое каталога
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue