mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature: cloudcmd: add ability to hide dot files (#307)
This commit is contained in:
parent
9dbd812b3d
commit
ddf4542b75
11 changed files with 203 additions and 126 deletions
|
|
@ -509,6 +509,19 @@ async function switchKey(event) {
|
|||
event.preventDefault();
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case KEY.DOT:
|
||||
if (meta && shift) {
|
||||
const showDotFiles = !CloudCmd.config('showDotFiles');
|
||||
CloudCmd._config('showDotFiles', showDotFiles);
|
||||
CloudCmd.refresh();
|
||||
await DOM.RESTful.Config.write({
|
||||
showDotFiles,
|
||||
});
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue