Add help text about showing menu with the Alt key, to the initial buffer text on windows

This commit is contained in:
Jonatan Heyman 2023-12-12 15:39:01 +01:00
parent 2a42eea089
commit 6ec64ed3ee

View File

@ -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.