Skip to content

Commit 2890a6e

Browse files
authored
Add cloneInWindsurfNext option
1 parent 64f6303 commit 2890a6e

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

src/html/options.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ <h2 class="Subhead-heading">Enabled IDE list</h2>
182182
Clone in Windsurf
183183
</label>
184184
</div>
185+
<div class="form-checkbox">
186+
<label>
187+
<input type="checkbox" id="cloneInWindsurfNext" />
188+
Clone in Windsurf Next
189+
</label>
190+
</div>
185191

186192
<div class="Subhead mt-6">
187193
<h2 class="Subhead-heading">Opening options</h2>

src/js/main.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,14 @@ const ideWebsitesList = [
146146
platforms: ['github'],
147147
icon: '<svg width="16" height="16" viewBox="0 0 512 297" fill="none"><path fill="currentColor" d="M507.28 0.142623H502.4C476.721 0.10263 455.882 20.899 455.882 46.5745V150.416C455.882 171.153 438.743 187.95 418.344 187.95C406.224 187.95 394.125 181.851 386.945 171.613L280.889 20.1391C272.089 7.56133 257.77 0.0626373 242.271 0.0626373C218.091 0.0626373 196.332 20.6191 196.332 45.9946V150.436C196.332 171.173 179.333 187.97 158.794 187.97C146.634 187.97 134.555 181.871 127.375 171.633L8.69966 2.12228C6.01976 -1.71705 0 0.182617 0 4.8618V95.426C0 100.005 1.39995 104.444 4.01984 108.204L120.815 274.995C127.715 284.853 137.895 292.172 149.634 294.831C179.013 301.51 206.052 278.894 206.052 250.079V145.697C206.052 124.961 222.851 108.164 243.59 108.164H243.65C256.15 108.164 267.87 114.263 275.049 124.501L381.125 275.955C389.945 288.552 403.524 296.031 419.724 296.031C444.443 296.031 465.622 275.455 465.622 250.099V145.677C465.622 124.941 482.421 108.144 503.16 108.144H507.3C509.9 108.144 512 106.044 512 103.445V4.8418C512 2.24226 509.9 0.142623 507.3 0.142623H507.28Z"/></svg>',
148148
class: 'd-none d-md-block'
149+
},
150+
{
151+
title: 'Clone in Windsurf Next',
152+
name: 'cloneInWindsurfNext',
153+
baseurl: `windsurf-next://vscode.git/clone?url=https://${platform}.com/`,
154+
platforms: ['github'],
155+
icon: '<svg width="16" height="16" viewBox="0 0 512 297" fill="none"><path fill="currentColor" d="M507.28 0.142623H502.4C476.721 0.10263 455.882 20.899 455.882 46.5745V150.416C455.882 171.153 438.743 187.95 418.344 187.95C406.224 187.95 394.125 181.851 386.945 171.613L280.889 20.1391C272.089 7.56133 257.77 0.0626373 242.271 0.0626373C218.091 0.0626373 196.332 20.6191 196.332 45.9946V150.436C196.332 171.173 179.333 187.97 158.794 187.97C146.634 187.97 134.555 181.871 127.375 171.633L8.69966 2.12228C6.01976 -1.71705 0 0.182617 0 4.8618V95.426C0 100.005 1.39995 104.444 4.01984 108.204L120.815 274.995C127.715 284.853 137.895 292.172 149.634 294.831C179.013 301.51 206.052 278.894 206.052 250.079V145.697C206.052 124.961 222.851 108.164 243.59 108.164H243.65C256.15 108.164 267.87 114.263 275.049 124.501L381.125 275.955C389.945 288.552 403.524 296.031 419.724 296.031C444.443 296.031 465.622 275.455 465.622 250.099V145.677C465.622 124.941 482.421 108.144 503.16 108.144H507.3C509.9 108.144 512 106.044 512 103.445V4.8418C512 2.24226 509.9 0.142623 507.3 0.142623H507.28Z"/></svg>',
156+
class: 'd-none d-md-block'
149157
}
150158
];
151159
const defaultOptions = {
@@ -169,6 +177,7 @@ const defaultOptions = {
169177
cloneInVSCodeInsiders: false,
170178
cloneInCursor: false,
171179
cloneInWindsurf: false,
180+
cloneInWindsurfNext: false,
172181
openInNewTab: true
173182
};
174183
const gitHubStyle = `

src/js/options.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const defaultOptions = {
2121
cloneInVSCodeInsiders: false,
2222
cloneInCursor: false,
2323
cloneInWindsurf: false,
24+
cloneInWindsurfNext: false,
2425
openInNewTab: true
2526
};
2627
let options = { ...defaultOptions };

0 commit comments

Comments
 (0)