-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add command palette and style table
- Loading branch information
Showing
8 changed files
with
147 additions
and
57 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { defineAction } from 'solid-command-palette'; | ||
|
||
const minimalAction = defineAction({ | ||
id: 'minimal', | ||
title: 'Minimal Action', | ||
run: () => { | ||
console.log('ran minimal action'); | ||
}, | ||
}); | ||
|
||
const incrementCounterAction = defineAction({ | ||
id: 'increment-counter', | ||
title: 'Increment Counter by 1', | ||
subtitle: 'Press CMD + E to trigger this.', | ||
shortcut: '$mod+e', // $mod = Command on Mac & Control on Windows. | ||
run: ({ rootContext }) => { | ||
rootContext.increment(); | ||
}, | ||
}); | ||
|
||
export const actions = { | ||
[minimalAction.id]: minimalAction, | ||
[incrementCounterAction.id]: incrementCounterAction, | ||
}; | ||
|
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
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
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
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
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