Add Linux support (#6)

* Add linux AppImage build target
* Add ubuntu to Github Actions build matrix
* Show help text on how to open Menu, on Linux
This commit is contained in:
Jonatan Heyman
2023-12-21 19:18:04 +01:00
committed by GitHub
parent 41795c14ea
commit 49d3e5cd7d
3 changed files with 17 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
import { isMac, isWindows } from "./detect-platform.js"
import { isLinux, isMac, isWindows } from "./detect-platform.js"
const modChar = isMac ? "⌘" : "Ctrl"
const altChar = isMac ? "⌥" : "Alt "
const windowsShowMenu = isWindows ? `\n${altChar} Show menu` : ""
const showMenuHelp = (isWindows || isLinux) ? `\n${altChar} Show menu` : ""
export const initialContent = `
∞∞∞text
@@ -15,7 +15,7 @@ ${modChar} + Down Goto next block
${modChar} + Up Goto previous block
${modChar} + A Select all text in a note block. Press again to select the whole buffer
${modChar} + ⌥ + Up/Down Add additional cursor above/below
${altChar} + Shift + F Format block content (works for JSON, JavaScript, HTML, CSS and Markdown)${windowsShowMenu}
${altChar} + Shift + F Format block content (works for JSON, JavaScript, HTML, CSS and Markdown)${showMenuHelp}
∞∞∞math
This is a Math block. Here, rows are evaluated as math expressions.