Skip to content

Commit 3575866

Browse files
authored
feat: add windsurf-next support (#814)
1 parent 69480a6 commit 3575866

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

crates/fig_integrations/src/vscode/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ pub static VARIANTS: &[VSCodeVariant] = &[
7979
application_name: "Windsurf",
8080
cli_executable_name: "windsurf",
8181
},
82+
VSCodeVariant {
83+
bundle_identifier: "com.exafunction.windsurf-next",
84+
config_folder_name: ".windsurf-next",
85+
application_support_folder_name: "Windsurf Next",
86+
application_name: "Windsurf Next",
87+
cli_executable_name: "windsurf-next",
88+
},
8289
VSCodeVariant {
8390
bundle_identifier: "co.posit.positron",
8491
config_folder_name: ".positron",

crates/fig_util/src/terminal.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pub const MACOS_TERMINALS: &[Terminal] = &[
2424
Terminal::CursorNightly,
2525
Terminal::Rio,
2626
Terminal::Windsurf,
27+
Terminal::WindsurfNext,
2728
Terminal::Ghostty,
2829
Terminal::Positron,
2930
Terminal::Trae,
@@ -162,6 +163,8 @@ pub enum Terminal {
162163
Zellij,
163164
/// Windsurf
164165
Windsurf,
166+
/// Windsurf Next
167+
WindsurfNext,
165168
/// Ghostty
166169
Ghostty,
167170
/// Positron
@@ -206,6 +209,7 @@ impl fmt::Display for Terminal {
206209
Terminal::CursorNightly => write!(f, "Cursor Nightly"),
207210
Terminal::Rio => write!(f, "Rio"),
208211
Terminal::Windsurf => write!(f, "Windsurf"),
212+
Terminal::WindsurfNext => write!(f, "Windsurf Next"),
209213
Terminal::Guake => write!(f, "Guake"),
210214
Terminal::Ghostty => write!(f, "Ghostty"),
211215
Terminal::Positron => write!(f, "Positron"),
@@ -372,6 +376,7 @@ impl Terminal {
372376
Terminal::CursorNightly => "cursor-nightly".into(),
373377
Terminal::Rio => "rio".into(),
374378
Terminal::Windsurf => "windsurf".into(),
379+
Terminal::WindsurfNext => "windsurf-next".into(),
375380
Terminal::Guake => "guake".into(),
376381
Terminal::Ghostty => "ghostty".into(),
377382
Terminal::Positron => "positron".into(),
@@ -402,6 +407,7 @@ impl Terminal {
402407
Terminal::CursorNightly => Some("com.todesktop.23052492jqa5xjo".into()),
403408
Terminal::Rio => Some("com.raphaelamorim.rio".into()),
404409
Terminal::Windsurf => Some("com.exafunction.windsurf".into()),
410+
Terminal::WindsurfNext => Some("com.exafunction.windsurf-next".into()),
405411
Terminal::Ghostty => Some("com.mitchellh.ghostty".into()),
406412
Terminal::Positron => Some("co.posit.positron".into()),
407413
Terminal::Trae => Some("com.trae.app".into()),
@@ -429,6 +435,7 @@ impl Terminal {
429435
"com.todesktop.23052492jqa5xjo" => Terminal::CursorNightly,
430436
"com.raphaelamorim.rio" => Terminal::Rio,
431437
"com.exafunction.windsurf" => Terminal::Windsurf,
438+
"com.exafunction.windsurf-next" => Terminal::WindsurfNext,
432439
"com.mitchellh.ghostty" => Terminal::Ghostty,
433440
"co.posit.positron" => Terminal::Positron,
434441
"com.trae.app" => Terminal::Trae,
@@ -480,6 +487,7 @@ impl Terminal {
480487
| Terminal::Cursor
481488
| Terminal::CursorNightly
482489
| Terminal::Windsurf
490+
| Terminal::WindsurfNext
483491
| Terminal::Trae
484492
) || self.as_custom().is_some_and(|c| c.macos.xterm)
485493
}
@@ -505,6 +513,7 @@ impl Terminal {
505513
Terminal::CursorNightly => &["Cursor Nightly", "cursor-nightly"],
506514
Terminal::Rio => &["rio"],
507515
Terminal::Windsurf => &["windsurf"],
516+
Terminal::WindsurfNext => &["windsurf-next"],
508517
Terminal::Guake => &["guake"],
509518
Terminal::Ghostty => &["ghostty"],
510519
Terminal::Positron => &["positron"],
@@ -575,6 +584,7 @@ impl Terminal {
575584
| Terminal::Cursor
576585
| Terminal::CursorNightly
577586
| Terminal::Windsurf
587+
| Terminal::WindsurfNext
578588
| Terminal::Trae
579589
)
580590
}

0 commit comments

Comments
 (0)