You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add EditorVim constant to editor types
- Update validation logic in handleSetDefault and determineEditorType functions
- Add vim case to openEditorByType and getEditorName functions
- Implement openVim function following tmux pattern for SSH-based editor launching
- Update help text and examples to include vim support
- Command usage: brev open <instance> vim opens vim in home directory
Co-Authored-By: Alec Fong <alecsanf@usc.edu>
Copy file name to clipboardExpand all lines: pkg/cmd/open/open.go
+31-7Lines changed: 31 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,12 @@ const (
34
34
EditorCursor="cursor"
35
35
EditorWindsurf="windsurf"
36
36
EditorTmux="tmux"
37
+
EditorVim="vim"
37
38
)
38
39
39
40
var (
40
-
openLong="[command in beta] This will open VS Code, Cursor, Windsurf, or tmux SSH-ed in to your instance. You must have the editor installed in your path."
41
-
openExample="brev open instance_id_or_name\nbrev open instance\nbrev open instance code\nbrev open instance cursor\nbrev open instance windsurf\nbrev open instance tmux\nbrev open --set-default cursor\nbrev open --set-default windsurf\nbrev open --set-default tmux"
41
+
openLong="[command in beta] This will open VS Code, Cursor, Windsurf, tmux, or vim SSH-ed in to your instance. You must have the editor installed in your path."
42
+
openExample="brev open instance_id_or_name\nbrev open instance\nbrev open instance code\nbrev open instance cursor\nbrev open instance windsurf\nbrev open instance tmux\nbrev open instance vim\nbrev open --set-default cursor\nbrev open --set-default windsurf\nbrev open --set-default tmux\nbrev open --set-default vim"
0 commit comments