inkdrop-command-palette/lib/commands/core.js

511 lines
11 KiB
JavaScript
Raw Normal View History

2022-08-23 01:49:14 +00:00
"use babel";
2022-08-23 03:40:41 +00:00
export default [
{
2022-08-24 08:08:38 +00:00
name: ">Copy",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:copy",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
shortcut: ["ctrl", "c"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Copy Image",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:copy-image",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Copy Note Link",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:copy-note-link",
2022-08-24 08:08:38 +00:00
selector: ".note-list-bar",
shortcut: ["ctrl", "c"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Cut",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:cut",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
shortcut: ["ctrl", "x"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Delete Note",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:delete-note",
2022-08-24 08:08:38 +00:00
selector: ".note-list-bar",
shortcut: ["ctrl", "bkspc"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Delete Notebook",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:delete-notebook",
state: "disabled",
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Delete Tag",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:delete-tag",
state: "disabled",
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Duplicate Note",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:duplicate-note",
2022-08-24 08:08:38 +00:00
selector: ".note-list-bar",
shortcut: ["ctrl", "d"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Empty Trash",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:empty-trash",
selector: "body",
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Filter notes",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:filter-notes",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Filter by tag",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:filter-by-tag",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Find",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:find",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
shortcut: ["ctrl", "shft", "f"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Clear search bar",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:find-clear",
2022-08-24 08:08:38 +00:00
selector: ".note-list-search-bar input",
shortcut: ["esc"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Find (Global)",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:find-global",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
shortcut: ["ctrl", "alt", "shft", "f"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Focus next",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:focus-next",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
shortcut: ["tab"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Focus note list bar",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:focus-note-list-bar",
2022-08-24 08:08:38 +00:00
selector: ".note-list-search-bar input",
state: "notworking",
shortcut: ["ctrl", "alt", "l"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Focus previous",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:focus-previous",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Move notebook",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:move-notebook",
state: "disabled",
selector: "body",
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Move to notebook",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:move-to-notebook",
2022-08-24 08:08:38 +00:00
selector: ".note-list-bar",
shortcut: ["ctrl", "alt", "m"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Navigate back",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:navigate-back",
selector: "body",
2022-08-24 08:08:38 +00:00
shortcut: ["alt", "left"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Navigate forward",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:navigate-forward",
selector: "body",
2022-08-24 08:08:38 +00:00
shortcut: ["alt", "right"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">New Note",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:new-note",
selector: "body",
2022-08-24 08:08:38 +00:00
shortcut: ["ctrl", "n"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">New Notebook",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:new-notebook",
selector: "body",
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Show all notes",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:note-list-show-all-notes",
selector: "body",
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Show all notes in specified notebook",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:note-list-show-notes-in-book",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Show all notes by tag",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:notes-list-show-notes-with-tag",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Show all notes with status",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:note-list-show-notes-with-status",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Show notes in book of editing note",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:note-list-show-notes-in-book-of-editing-note",
selector: "body",
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Open first note",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:open-first-note",
selector: "body",
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Open next note",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:open-next-note",
selector: "body",
2022-08-24 08:08:38 +00:00
shortcut: ["ctrl", "tab"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Close note",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:close-note",
selector: "body",
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Open note",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:open-note",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Open note in separate window",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:open-note-in-separate-window",
selector: "body",
2022-08-24 08:08:38 +00:00
shortcut: ["shft", "return"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Open previous note",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:open-prev-note",
selector: "body",
2022-08-24 08:08:38 +00:00
shortcut: ["ctrl", "shift", "tab"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Open tag settings",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:open-tag-settings",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Paste",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:paste",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
shortcut: ["ctrl", "v"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Redo",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:redo",
selector: ".mde-cm-wrapper",
2022-08-24 08:08:38 +00:00
shortcut: ["ctrl", "y"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Rename Notebook",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:rename-notebook",
selector: "body",
state: "disabled",
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Save Image",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:save-image",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Save Note",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:save-note",
selector: "body",
2022-08-24 08:08:38 +00:00
shortcut: ["ctrl", "s"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Select all",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:select-all",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
shortcut: ["ctrl", "a"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Search notes",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:search-notes",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Share note",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:share-note",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Show note revisions",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:show-note-revisions",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
2022-08-23 03:40:41 +00:00
shortcut: [""],
},
{
2022-08-24 08:08:38 +00:00
name: ">Focus sidebar",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:sidebar-focus",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
shortcut: ["shft", "tab"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Select next item on sidebar",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:sidebar-select-next-item",
selector: "body",
2022-08-24 08:08:38 +00:00
shortcut: ["up"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Select previous item on sidebar",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:sidebar-select-prev-item",
selector: "body",
2022-08-24 08:08:38 +00:00
shortcut: ["down"],
},
{
name: ">Disclose item on sidebar",
category: "Core",
command: "core:sidebar-disclose-item",
selector: "body",
shortcut: ["enter"],
},
{
name: ">Expand item on sidebar",
category: "Core",
command: "core:sidebar-expand-item",
selector: "body",
shortcut: ["right"],
},
{
name: ">Collapse item on sidebar",
category: "Core",
command: "core:sidebar-collapse-item",
selector: "body",
shortcut: ["left"],
2022-08-23 03:40:41 +00:00
},
{
2022-08-24 08:08:38 +00:00
name: ">Undo",
2022-08-23 03:40:41 +00:00
category: "Core",
command: "core:undo",
selector: ".mde-cm-wrapper",
2022-08-24 08:08:38 +00:00
shortcut: ["ctrl", "z"],
2022-08-23 03:40:41 +00:00
},
{
name: ">Toggle editor drawer",
category: "Core",
command: "core:toggle-editor-drawer",
selector: "body",
2022-08-24 08:08:38 +00:00
state: "notworking",
shortcut: ["ctrl", "j"],
},
{
name: ">Show editor drawer",
category: "Core",
command: "core:show-editor-drawer",
selector: "body",
shortcut: [""],
},
{
name: ">Close editor drawer",
category: "Core",
command: "core:close-editor-drawer",
selector: "body",
2022-08-24 08:08:38 +00:00
shortcut: ["esc"],
},
{
name: ">Do nothing",
category: "Core",
command: "core:do-nothing",
selector: ".editor-header-title-input input",
state: "notworking",
shortcut: ["ctrl", "w"],
},
{
name: ">Copy preview selection",
category: "Core",
command: "core:do-nothing",
selector: ".mde-preview",
state: "notworking",
shortcut: ["ctrl", "c"],
},
{
name: ">Hide workspace menu on sidebar",
category: "Core",
command: "core:sidebar-hide-workspace-menu",
selector: ".sidebar-workspace-menu",
state: "notworking",
shortcut: ["bkspc"],
},
{
name: ">Unpin/Pin note to top",
category: "Core",
command: "core:pin-note-to-top",
selector: ".note-list-bar",
shortcut: ["p"],
},
{
name: ">Submit",
category: "Core",
command: "core:submit",
selector: ".input-datetime",
state: "notworking",
shortcut: ["return"],
},
{
name: ">Cancel",
category: "Core",
command: "core:cancel",
selector: ".input-datetime",
state: "notworking",
shortcut: ["esc"],
},
{
name: ">Move up on list bar",
category: "Core",
command: "core:list-bar-move-up",
selector: ".list-bar",
state: "notworking",
shortcut: ["up"],
},
{
name: ">Move down on list bar",
category: "Core",
command: "core:list-bar-move-down",
selector: ".list-bar",
state: "notworking",
shortcut: ["down"],
},
{
name: ">Invoke submit on list bar",
category: "Core",
command: "core:list-bar-submit",
selector: ".list-bar",
state: "notworking",
shortcut: ["return"],
},
{
name: ">Cancel list bar action",
category: "Core",
command: "core:list-bar-cancel",
selector: ".list-bar",
state: "notworking",
shortcut: ["esc"],
},
{
name: ">Move up on notebook list",
category: "Core",
command: "core:notebook-list-bar-input-move-up",
selector: ".notebook-list-bar input",
state: "notworking",
shortcut: ["up"],
},
{
name: ">Move down on notebook list",
category: "Core",
command: "core:notebook-list-bar-input-move-down",
selector: ".notebook-list-bar input",
state: "notworking",
shortcut: ["down"],
},
{
name: ">Invoke submit on notebook list",
category: "Core",
command: "core:notebook-list-bar-input-move-submit",
selector: ".notebook-list-bar input",
state: "notworking",
shortcut: ["return"],
},
2022-08-23 03:40:41 +00:00
];