Created
August 9, 2022 21:14
-
-
Save zacjones93/f4ae832accf18b508b1fc8d840dd71cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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