Obsidian/Q/Using the Obsidian CLI, what one-liner filters obsidian hotkeys to show only actually-mapped commands?
Properties
- logseq-entity
- Logseq/Entity/Question
- see-also
- Obsidian/CLI, awk/-F
Using the Obsidian/CLI, what one-liner filters
obsidian hotkeysto show only actually-mapped commands?AI Answer
- Short answer:
obsidian hotkeys | awk -F'\t' '$2' obsidian hotkeysoutputs tab-separated lines: command ID in column 1, key binding (if any) in column 2. Unmapped commands have an empty second field.awk -F'\t' '$2'prints only lines where the second field is truthy (non-empty).- bash
obsidian hotkeys | awk -F'\t' '$2' - Example output (mapped only):
- Alternative using
grep:obsidian hotkeys | grep -P '\t.+'— matches lines with at least one character after the tab.
- Short answer: