Skip to content

Commit b032916

Browse files
authored
Support to open the newly created files for editor cursor automatically. (#7273)
1 parent ae1c8f5 commit b032916

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

publish/devtool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use function Hyperf\Support\env;
1313

1414
return [
15-
// Supported IDEs: "sublime", "textmate", "emacs", "macvim", "phpstorm", "idea",
15+
// Supported IDEs: "sublime", "textmate", "cursor", "emacs", "macvim", "phpstorm", "idea",
1616
// "vscode", "vscode-insiders", "vscode-remote", "vscode-insiders-remote",
1717
// "atom", "nova", "netbeans", "xdebug"
1818
'ide' => env('DEVTOOL_IDE', ''),

src/Generator/GeneratorCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ protected function getEditorUrl(string $ide): string
228228
return 'subl://open?url=file://%s';
229229
case 'textmate':
230230
return 'txmt://open?url=file://%s';
231+
case 'cursor':
232+
return 'cursor://file/%s';
231233
case 'emacs':
232234
return 'emacs://open?url=file://%s';
233235
case 'macvim':

0 commit comments

Comments
 (0)