Created
September 18, 2022 15:05
-
-
Save vogelino/98f1b68ef96ed253bd458995a2da5bdb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: Cheat Sheet | |
// Index: 0 | |
import "@johnlindquist/kit" | |
let sheet = ` | |
; = App Launcher | |
/ = File Browser | |
> = Terminal | |
< = Clipboard History | |
1-9 = Calculator | |
, = Scratch Pad | |
. = File Search | |
' = Snippets | |
[ = Templates | |
" = Word API | |
- = System Commands | |
= = Dev Tools | |
: = Emoji Picker | |
~ = Google Suggest | |
Note: Feel free to modify this and take your own notes! 😉 | |
`.trim() | |
let cheatSheetPath = kenvPath("cheat-sheet.md") | |
// If file doesn't exist, create with content | |
let value = await ensureReadFile(cheatSheetPath, sheet) | |
let content = await editor({ | |
value, | |
footer: `cmd+s to save`, | |
}) | |
// update file after save | |
await writeFile(kenvPath("cheat-sheet.md"), content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment