From 91cfb217d835b1abad3e22dd556f6e46399a96e0 Mon Sep 17 00:00:00 2001 From: Max Schillinger Date: Sun, 15 May 2022 18:46:32 +0200 Subject: [PATCH] Markdown: Add shortcut for new Markdown tiddler (#6696) ctrl-M on mac, alt-M on other platforms --- .../markdown/KeyboardShortcuts/new-markdown-tiddler.tid | 8 ++++++++ plugins/tiddlywiki/markdown/config.multids | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 plugins/tiddlywiki/markdown/KeyboardShortcuts/new-markdown-tiddler.tid create mode 100644 plugins/tiddlywiki/markdown/config.multids diff --git a/plugins/tiddlywiki/markdown/KeyboardShortcuts/new-markdown-tiddler.tid b/plugins/tiddlywiki/markdown/KeyboardShortcuts/new-markdown-tiddler.tid new file mode 100644 index 000000000..a629f6227 --- /dev/null +++ b/plugins/tiddlywiki/markdown/KeyboardShortcuts/new-markdown-tiddler.tid @@ -0,0 +1,8 @@ +title: $:/plugins/tiddlywiki/markdown/KeyboardShortcuts/new-markdown-tiddler +tags: $:/tags/KeyboardShortcut +key: ((new-markdown-tiddler)) + +\whitespace trim +<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}> +<$action-sendmessage $message="tm-new-tiddler" type="text/x-markdown"/> + diff --git a/plugins/tiddlywiki/markdown/config.multids b/plugins/tiddlywiki/markdown/config.multids new file mode 100644 index 000000000..1f142c8b4 --- /dev/null +++ b/plugins/tiddlywiki/markdown/config.multids @@ -0,0 +1,5 @@ +title: $:/config/ + +ShortcutInfo/new-markdown-tiddler: {{$:/language/Buttons/NewMarkdown/Hint}} +shortcuts-mac/new-markdown-tiddler: ctrl-M +shortcuts-not-mac/new-markdown-tiddler: alt-M