Skip to content

Commit aeaa062

Browse files
committed
feat: support cursor
Cursor is a fork of VS Code.
1 parent a9db3e1 commit aeaa062

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
.turbo
3+
.idea
34

45
# Logs
56
logs

packages/click-to-react-component/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
[Create React App](https://create-react-app.dev/),
1919
& [Vite](https://github.com/vitejs/vite/tree/main/packages/plugin-react)
2020
that use [@babel/plugin-transform-react-jsx-source](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-jsx-source)
21-
- Supports `vscode` & `vscode-insiders`' [URL handling](https://code.visualstudio.com/docs/editor/command-line#_opening-vs-code-with-urls)
21+
- Supports `vscode` & `vscode-insiders` & `cursor` [URL handling](https://code.visualstudio.com/docs/editor/command-line#_opening-vs-code-with-urls)
2222
- Automatically **tree-shaken** from `production` builds
2323
- Keyboard navigation in context menu (e.g. <kbd>←</kbd>, <kbd>→</kbd>, <kbd>⏎</kbd>)
2424
- More context & faster than using React DevTools:

packages/click-to-react-component/src/types.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export { ClickToComponent } from './ClickToComponent'
1+
export { ClickToComponent } from './ClickToComponent';
22

3-
export type Editor = 'vscode' | 'vscode-insiders'
3+
export type Editor = 'vscode' | 'vscode-insiders' | 'cursor';
44

55
export type PathModifier = (path: string) => string;
66

@@ -16,4 +16,4 @@ export type Target = HTMLElement
1616
export type ContextMenuProps = {
1717
onClose?: () => void;
1818
pathModifier?: PathModifier;
19-
}
19+
}

0 commit comments

Comments
 (0)