inkdrop-command-palette/lib/commands/view.js
2022-08-24 16:08:38 +08:00

71 lines
1.5 KiB
JavaScript

"use babel";
export default [
{
name: ">Sort by date created",
category: "View",
command: "view:sort-by-date-created",
selector: "body",
state: "notworking",
shortcut: [""],
},
{
name: ">Sort by date updated",
category: "View",
command: "view:sort-by-date-updated",
selector: "body",
state: "notworking",
shortcut: [""],
},
{
name: ">Sort by title",
category: "View",
command: "view:sort-by-title",
selector: "body",
state: "notworking",
shortcut: [""],
},
{
name: ">Sort in ascending",
category: "View",
command: "view:sort-in-ascending",
selector: "body",
state: "notworking",
shortcut: [""],
},
{
name: ">Sort in descending",
category: "View",
command: "view:sort-in-descending",
selector: "body",
state: "notworking",
shortcut: [""],
},
{
name: ">Toggle distraction free",
category: "View",
command: "view:toggle-distraction-free",
selector: "body",
shortcut: ["ctrl", "shft", "d"],
},
{
name: ">Toggle preview",
category: "View",
command: "view:toggle-preview",
selector: "body",
shortcut: ["ctrl", "e"],
},
{
name: ">Toggle side by side",
category: "View",
command: "view:toggle-side-by-side",
selector: "body",
shortcut: ["ctrl", "p"],
},
{
name: ">Toggle sidebar",
category: "View",
command: "view:toggle-sidebar",
selector: "body",
shortcut: ["ctrl", "/"],
},
];