|
|
|
|
@ -26,67 +26,46 @@ const DEFAULT_KEYBOARD_ACTIONS = [
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+J"],
|
|
|
|
|
description: 'Open "Jump to note" dialog'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
separator: "Tabs"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "OpenNewTab",
|
|
|
|
|
defaultShortcuts: isElectron ? ["CommandOrControl+T"] : []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "CloseActiveTab",
|
|
|
|
|
defaultShortcuts: isElectron ? ["CommandOrControl+W"] : []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ActivateNextTab",
|
|
|
|
|
defaultShortcuts: isElectron ? ["CommandOrControl+Tab"] : []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ActivatePreviousTab",
|
|
|
|
|
defaultShortcuts: isElectron ? ["CommandOrControl+Shift+Tab"] : []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
separator: "Dialogs"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowAttributes",
|
|
|
|
|
defaultShortcuts: ["Alt+A"]
|
|
|
|
|
actionName: "ScrollToActiveNote",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+."]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowNoteInfo",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
actionName: "SearchNotes",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+S"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowNoteSource",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
actionName: "SearchInSubtree",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+Shift+S"],
|
|
|
|
|
description: "Search for notes in the active note's subtree"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowLinkMap",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
actionName: "CollapseTree",
|
|
|
|
|
defaultShortcuts: ["Alt+C"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowOptions",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
actionName: "CollapseSubtree",
|
|
|
|
|
defaultShortcuts: ["Alt+-"],
|
|
|
|
|
description: "Collapses subtree of current note"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowNoteRevisions",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
actionName: "FocusNote",
|
|
|
|
|
defaultShortcuts: ["Enter"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowRecentChanges",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
actionName: "ActivateParentNote",
|
|
|
|
|
defaultShortcuts: ["Backspace"],
|
|
|
|
|
description: "Activates parent note of currently active note"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowHelp",
|
|
|
|
|
defaultShortcuts: ["F1"]
|
|
|
|
|
actionName: "SortChildNotes",
|
|
|
|
|
defaultShortcuts: ["Alt+S"],
|
|
|
|
|
description: "Sort child notes"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
actionName: "PrintActiveNote",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
separator: "Creating and moving notes"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "CreateNoteAfter",
|
|
|
|
|
@ -101,22 +80,6 @@ const DEFAULT_KEYBOARD_ACTIONS = [
|
|
|
|
|
defaultShortcuts: ["global:CommandOrControl+Alt+P"],
|
|
|
|
|
description: "Create and open subnote of a current day note"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ScrollToActiveNote",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+."]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "CollapseTree",
|
|
|
|
|
defaultShortcuts: ["Alt+C"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "FocusNote",
|
|
|
|
|
defaultShortcuts: ["return"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "RunCurrentNote",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+return"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "DeleteNotes",
|
|
|
|
|
defaultShortcuts: ["Delete"],
|
|
|
|
|
@ -143,15 +106,29 @@ const DEFAULT_KEYBOARD_ACTIONS = [
|
|
|
|
|
description: "Move note down in hierarchy"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "AddNoteAboveToSelection",
|
|
|
|
|
defaultShortcuts: ["Shift+Up"],
|
|
|
|
|
description: "Add note above to the selection"
|
|
|
|
|
actionName: "EditNoteTitle",
|
|
|
|
|
defaultShortcuts: ["Enter"],
|
|
|
|
|
description: "Edit active note title"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "AddNoteBelowToSelection",
|
|
|
|
|
defaultShortcuts: ["Shift+Down"],
|
|
|
|
|
description: "Add note above to the selection"
|
|
|
|
|
actionName: "EditBranchPrefix",
|
|
|
|
|
defaultShortcuts: ["F2"],
|
|
|
|
|
description: "Show Edit branch prefix dialog"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "CloneNotesTo",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+Shift+C"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "MoveNotesTo",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+Shift+C"]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
separator: "Note clipboard"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
actionName: "CopyNotesToClipboard",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+C"],
|
|
|
|
|
@ -168,77 +145,120 @@ const DEFAULT_KEYBOARD_ACTIONS = [
|
|
|
|
|
description: "Cut selected notes to the clipboard"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "EditBranchPrefix",
|
|
|
|
|
defaultShortcuts: ["F2"],
|
|
|
|
|
description: "Show Edit branch prefix dialog"
|
|
|
|
|
actionName: "SelectAllNotesInParent",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+A"],
|
|
|
|
|
description: "Select all notes from the current note level"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "CollapseSubtree",
|
|
|
|
|
defaultShortcuts: ["Alt+-"],
|
|
|
|
|
description: "Collapses subtree of current note"
|
|
|
|
|
actionName: "AddNoteAboveToSelection",
|
|
|
|
|
defaultShortcuts: ["Shift+Up"],
|
|
|
|
|
description: "Add note above to the selection"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "SortChildNotes",
|
|
|
|
|
defaultShortcuts: ["Alt+S"],
|
|
|
|
|
description: "Sort child notes"
|
|
|
|
|
actionName: "AddNoteBelowToSelection",
|
|
|
|
|
defaultShortcuts: ["Shift+Down"],
|
|
|
|
|
description: "Add note above to the selection"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
actionName: "ActivateParentNote",
|
|
|
|
|
defaultShortcuts: ["Backspace"],
|
|
|
|
|
description: "Activates parent note of currently active note"
|
|
|
|
|
separator: "Tabs"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ToggleNoteHoisting",
|
|
|
|
|
defaultShortcuts: ["Alt+H"],
|
|
|
|
|
description: "Toggles note hoisting of active note"
|
|
|
|
|
actionName: "OpenNewTab",
|
|
|
|
|
defaultShortcuts: isElectron ? ["CommandOrControl+T"] : []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "SearchInSubtree",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+Shift+S"],
|
|
|
|
|
description: "Search for notes in the active note's subtree"
|
|
|
|
|
actionName: "CloseActiveTab",
|
|
|
|
|
defaultShortcuts: isElectron ? ["CommandOrControl+W"] : []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "EditNoteTitle",
|
|
|
|
|
defaultShortcuts: ["Return"],
|
|
|
|
|
description: "Edit active note title"
|
|
|
|
|
actionName: "ActivateNextTab",
|
|
|
|
|
defaultShortcuts: isElectron ? ["CommandOrControl+Tab"] : []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "SelectAllNotesInParent",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+A"],
|
|
|
|
|
description: "Select all notes from the current note level"
|
|
|
|
|
actionName: "ActivatePreviousTab",
|
|
|
|
|
defaultShortcuts: isElectron ? ["CommandOrControl+Shift+Tab"] : []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
separator: "Text note operations"
|
|
|
|
|
separator: "Dialogs"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "AddLinkToText",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+L"],
|
|
|
|
|
description: "Open dialog to add link to the text"
|
|
|
|
|
actionName: "ShowAttributes",
|
|
|
|
|
defaultShortcuts: ["Alt+A"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "CloneNotesTo",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+Shift+C"]
|
|
|
|
|
actionName: "ShowNoteInfo",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "MoveNotesTo",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+Shift+C"]
|
|
|
|
|
actionName: "ShowNoteSource",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "SearchNotes",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+S"]
|
|
|
|
|
actionName: "ShowLinkMap",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowOptions",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowNoteRevisions",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowRecentChanges",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ShowSQLConsole",
|
|
|
|
|
defaultShortcuts: ["Alt+O"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "RunSQL",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+return"]
|
|
|
|
|
actionName: "ShowHelp",
|
|
|
|
|
defaultShortcuts: ["F1"]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
separator: "Text note operations"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
actionName: "AddLinkToText",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+L"],
|
|
|
|
|
description: "Open dialog to add link to the text"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "InsertDateTimeToText",
|
|
|
|
|
defaultShortcuts: ["Alt+T"]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
separator: "Other"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
actionName: "PrintActiveNote",
|
|
|
|
|
defaultShortcuts: []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "RunActiveNote",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+Enter"],
|
|
|
|
|
description: "Run active JavaScript (frontend/backend) code note"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ToggleNoteHoisting",
|
|
|
|
|
defaultShortcuts: ["Alt+H"],
|
|
|
|
|
description: "Toggles note hoisting of active note"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "RunSQL",
|
|
|
|
|
defaultShortcuts: ["CommandOrControl+Enter"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
actionName: "ReloadFrontendApp",
|
|
|
|
|
defaultShortcuts: ["F5", "CommandOrControl+R"]
|
|
|
|
|
|