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: Testing Restart Prompt | |
| import "@johnlindquist/kit"; | |
| let errorCount = 0; | |
| let noError = false; | |
| while (!noError) { | |
| try { | |
| throw new Error(); | |
| } catch (e) { |
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: Testing Restart Prompt | |
| import "@johnlindquist/kit"; | |
| let errorCount = 0; | |
| let error = true; | |
| while (error) { | |
| error = false; | |
| try { | |
| throw new Error(); |
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: Testing Restart Prompt | |
| import { Action } from "@johnlindquist/kit"; | |
| let errorCount = 0; | |
| let error = true; | |
| while (error) { | |
| error = false; | |
| try { | |
| throw new Error(); |
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: Testing Currently Active | |
| import "@johnlindquist/kit"; | |
| import { Choice } from "@johnlindquist/kit"; | |
| const css = ` | |
| .active { | |
| background-color: green; | |
| } | |
| `; |
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: Testing Template Shortcut Override | |
| import "@johnlindquist/kit"; | |
| const result = await template(`($1)$0`, { | |
| shortcuts: [ | |
| { | |
| name: "Submit", | |
| key: `${cmd}+enter`, | |
| bar: "right", |
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: Testing Template with Selection | |
| // Shortcut: opt 7 | |
| import "@johnlindquist/kit"; | |
| const selectedText = await getSelectedText(); | |
| const templates = [ | |
| { | |
| name: "par", |
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: Testing Widget | |
| import "@johnlindquist/kit"; | |
| // await hide(); | |
| await widget(`Hi there`); |
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: Testing Widget | |
| import "@johnlindquist/kit"; | |
| // await hide(); | |
| await widget(`Hi there`); |
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
| /* | |
| # Markdown Journal | |
| - Creates a new markdown file based on the day (or opens existing file) | |
| - Opens the file in the built-in editor | |
| - Adds a timestamp | |
| - Auto-saves as you type | |
| - On first run, will prompt the user to select where to store files | |
| */ | |
| // Name: Journal |
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
| /* | |
| # Create a Gist | |
| - Opens the built-in editor | |
| - Saving automatically creates a Gist | |
| - Opens the Gist in your browser | |
| */ | |
| // Name: Create Gist | |
| // Description: Quickly Save Text as a Gist |