Created
November 28, 2024 18:04
-
-
Save johnlindquist/0d1c4c8c5d105aa65928d4b60fd38f14 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: Testing Template Shortcut Override | |
import "@johnlindquist/kit"; | |
const result = await template(`($1)$0`, { | |
shortcuts: [ | |
{ | |
name: "Submit", | |
key: `${cmd}+enter`, | |
bar: "right", | |
onPress: async (input) => { | |
submit(input); | |
}, | |
}, | |
], | |
}); | |
await setSelectedText(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment