mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(sort) add hot keys
- <Ctrl> + <F3> - sort by name - <Ctrl> + <F5> - sort by date - <Ctrl> + <F6> - sort by size
This commit is contained in:
parent
61eba36c67
commit
04a63da6ab
2 changed files with 15 additions and 2 deletions
3
HELP.md
3
HELP.md
|
|
@ -141,6 +141,9 @@ Hot keys
|
|||
| `Ctrl + a` | select all files in a panel
|
||||
| `Ctrl + m` | rename selected files
|
||||
| `Ctrl + u` | swap panels
|
||||
| `Ctrl + F3` | sort by name
|
||||
| `Ctrl + F5` | sort by date
|
||||
| `Ctrl + F6` | sort by size
|
||||
| `Up`, `Down`, `Enter` | file system navigation
|
||||
| `Alt + Left/Right` | show content of directory under cursor in target panel
|
||||
| `Alt + g` | go to directory
|
||||
|
|
|
|||
|
|
@ -288,6 +288,8 @@ var CloudCmd, Util, DOM;
|
|||
case Key.F3:
|
||||
if (shift)
|
||||
CloudCmd.Markdown.show(path);
|
||||
else if (ctrlMeta)
|
||||
CloudCmd.sortPanel('name');
|
||||
else
|
||||
CloudCmd.View.show();
|
||||
|
||||
|
|
@ -300,12 +302,20 @@ var CloudCmd, Util, DOM;
|
|||
break;
|
||||
|
||||
case Key.F5:
|
||||
Operation.show('copy');
|
||||
if (ctrlMeta)
|
||||
CloudCmd.sortPanel('date');
|
||||
else
|
||||
Operation.show('copy');
|
||||
|
||||
event.preventDefault();
|
||||
break;
|
||||
|
||||
case Key.F6:
|
||||
Operation.show('move');
|
||||
if (ctrlMeta)
|
||||
CloudCmd.sortPanel('size');
|
||||
else
|
||||
Operation.show('move');
|
||||
|
||||
event.preventDefault();
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue