// Package help holds glint's single source of truth for the keybind and command // reference, shared by the CLI (glint -h) and the in-editor help overlay. package help // Text is the full reference printed by `glint -h` and shown in the Ctrl+/ // overlay inside the editor. const Text = `glint — a modeless terminal markdown editor USAGE glint [file] open a file, or the fuzzy picker when no file is given glint COMMANDS (each takes a short letter or the full word, one or two dashes: -n / --n / -new / --new all work) -n, --new [name] new note in the current directory combine with -i or -v to target the inbox or vault -t, --today open today's daily note (in the vault) -d, --daily browse the daily-notes folder -v, --vault fuzzy picker over your vault, from anywhere -i, --inbox fuzzy picker over your inbox -c, --config interactive setup walkthrough (writes the config file) -h, --help show this help --version print the version EDITOR KEYS Enter (on a list) continue the list marker (numbers increment, checkboxes reset); Enter on an empty item exits the list Tab / Shift+Tab indent / outdent the current list item Ctrl+S save (an unnamed buffer prompts for a name) Ctrl+P toggle the read preview Ctrl+F fuzzy file picker Ctrl+G find in document (Enter/down next, Shift+Tab/up prev) Ctrl+D today's daily note Ctrl+N new note in the current directory Ctrl+B new note in the inbox Ctrl+T cycle theme (flexoki-light / flexoki-dark / charm) Ctrl+C / Ctrl+X / Ctrl+V copy / cut / paste (system clipboard) Shift+arrows select text (Ctrl+Shift+left/right by word) Alt+left / Alt+right move by word Ctrl+U / Ctrl+K delete to start / end of line Ctrl+W delete the word before the cursor Ctrl+Z / Ctrl+Y undo / redo Ctrl+/ toggle this help overlay Ctrl+Q quit (press twice if there are unsaved changes) Esc back to the editor CONFIG ~/.config/glint/config.toml (run 'glint -c' to set it up) `