feature(dom) add goToDirectory

This commit is contained in:
coderaiser 2015-05-14 06:21:49 -04:00
parent c8de19c7b4
commit 10cbb16645
3 changed files with 18 additions and 0 deletions

View file

@ -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

View file

@ -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,

View file

@ -472,6 +472,12 @@ var CloudCmd, Util, DOM;
break;
case Key.G:
if (alt)
DOM.goToDirectory();
break;
/**
* обновляем страницу,
* загружаем содержимое каталога