mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 23:43:22 +01:00
Add help text about showing menu with the Alt key, to the initial buffer text on windows
This commit is contained in:
parent
2a42eea089
commit
6ec64ed3ee
@ -1,7 +1,8 @@
|
|||||||
import { isMac } from "./detect-platform.js"
|
import { isMac, isWindows } from "./detect-platform.js"
|
||||||
|
|
||||||
const modChar = isMac ? "⌘" : "Ctrl"
|
const modChar = isMac ? "⌘" : "Ctrl"
|
||||||
const altChar = isMac ? "⌥" : "Alt "
|
const altChar = isMac ? "⌥" : "Alt "
|
||||||
|
const windowsShowMenu = isWindows ? `\n${altChar} Show menu` : ""
|
||||||
|
|
||||||
export const initialContent = `
|
export const initialContent = `
|
||||||
∞∞∞text
|
∞∞∞text
|
||||||
@ -14,7 +15,7 @@ ${modChar} + Down Goto next block
|
|||||||
${modChar} + Up Goto previous block
|
${modChar} + Up Goto previous block
|
||||||
${modChar} + A Select all text in a note block. Press again to select the whole buffer
|
${modChar} + A Select all text in a note block. Press again to select the whole buffer
|
||||||
${modChar} + ⌥ + Up/Down Add additional cursor above/below
|
${modChar} + ⌥ + Up/Down Add additional cursor above/below
|
||||||
${altChar} + Shift + F Format block content (works for JSON, JavaScript, HTML, CSS and Markdown)
|
${altChar} + Shift + F Format block content (works for JSON, JavaScript, HTML, CSS and Markdown)${windowsShowMenu}
|
||||||
∞∞∞math
|
∞∞∞math
|
||||||
This is a Math block. Here, rows are evaluated as math expressions.
|
This is a Math block. Here, rows are evaluated as math expressions.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user