24 lines
725 B
Markdown
24 lines
725 B
Markdown
---
|
|
author: malys
|
|
description: Display most commun shortcuts.
|
|
name: "Library/Malys/HelpShortcuts"
|
|
tags: meta/library
|
|
share.uri: "https://github.com/malys/silverbullet-libraries/blob/main/src/HelpShortcuts.md"
|
|
share.hash: c67cc072
|
|
share.mode: pull
|
|
---
|
|
# Help: Shortcuts
|
|
Display helper on demand.
|
|
|
|
```space-lua
|
|
command.define {
|
|
name = "Help: shortcuts",
|
|
key = "Ctrl-h",
|
|
run = function()
|
|
local messages={ "shift-alt-e header picker", "ctrl-alt-t tag picker","alt-c: copy nearest","shift-ctrl-c: cursor position","alt-ctrl-n: new child","alt-ctrl-s: new sibling","ctrl-Alt-1: code block","!!last monday: chronos"}
|
|
for i in pairs(messages) do
|
|
editor.flashNotification(messages[i], "info")
|
|
end
|
|
end
|
|
}
|
|
``` |