add toggleLeftPane command/shortcut, closes #2225

This commit is contained in:
zadam
2021-10-12 19:29:42 +02:00
parent 23e34e8c02
commit e2c37a6f8c
4 changed files with 34 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ import dateNoteService from "../services/date_notes.js";
import treeService from "../services/tree.js";
import openService from "./open.js";
import protectedSessionService from "./protected_session.js";
import options from "./options.js";
export default class RootCommandExecutor extends Component {
jumpToNoteCommand() {
@@ -101,4 +102,16 @@ export default class RootCommandExecutor extends Component {
leaveProtectedSessionCommand() {
protectedSessionService.leaveProtectedSession();
}
hideLeftPaneCommand() {
options.save(`leftPaneVisible`, "false");
}
showLeftPaneCommand() {
options.save(`leftPaneVisible`, "true");
}
toggleLeftPaneCommand() {
options.toggle('leftPaneVisible');
}
}