-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
279 lines (246 loc) · 6.59 KB
/
Copy pathoptions.html
File metadata and controls
279 lines (246 loc) · 6.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Locator Vim - Settings</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", sans-serif;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
color: #e2e8f0;
min-height: 100vh;
padding: 40px;
}
.container {
max-width: 600px;
margin: 0 auto;
}
h1 {
font-size: 28px;
font-weight: 600;
margin-bottom: 8px;
color: #f1f5f9;
}
.subtitle {
color: #94a3b8;
margin-bottom: 32px;
}
.card {
background: rgba(255, 255, 255, 0.05);
border-radius: 16px;
padding: 24px;
margin-bottom: 24px;
}
.card h2 {
font-size: 16px;
font-weight: 600;
margin-bottom: 16px;
color: #10b981;
}
.form-group {
margin-bottom: 20px;
}
.form-group:last-child {
margin-bottom: 0;
}
label {
display: block;
font-size: 14px;
font-weight: 500;
margin-bottom: 8px;
color: #e2e8f0;
}
.help-text {
font-size: 12px;
color: #94a3b8;
margin-top: 6px;
}
input[type="text"] {
width: 100%;
padding: 12px 16px;
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: #f1f5f9;
font-size: 14px;
font-family: "SF Mono", Monaco, monospace;
transition: border-color 0.2s;
}
input[type="text"]:focus {
outline: none;
border-color: #10b981;
}
input[type="text"]::placeholder {
color: #64748b;
}
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 24px;
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
border: none;
border-radius: 8px;
color: white;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition:
transform 0.2s,
box-shadow 0.2s;
}
.btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn:active {
transform: translateY(0);
}
.success-message {
display: none;
padding: 12px 16px;
background: rgba(16, 185, 129, 0.1);
border: 1px solid rgba(16, 185, 129, 0.2);
border-radius: 8px;
color: #10b981;
font-size: 14px;
margin-top: 16px;
}
.success-message.show {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.installation-steps {
list-style: none;
counter-reset: step;
}
.installation-steps li {
position: relative;
padding-left: 36px;
margin-bottom: 16px;
font-size: 14px;
color: #94a3b8;
}
.installation-steps li:before {
counter-increment: step;
content: counter(step);
position: absolute;
left: 0;
top: 0;
width: 24px;
height: 24px;
background: rgba(16, 185, 129, 0.2);
color: #10b981;
border-radius: 50%;
font-size: 12px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
}
code {
display: block;
padding: 12px 16px;
background: rgba(0, 0, 0, 0.3);
border-radius: 6px;
font-family: "SF Mono", Monaco, monospace;
font-size: 13px;
color: #a5f3fc;
margin-top: 8px;
overflow-x: auto;
}
.inline-code {
display: inline;
padding: 2px 6px;
background: rgba(0, 0, 0, 0.3);
border-radius: 4px;
}
</style>
</head>
<body>
<div class="container">
<h1>⚙️ Locator Vim Settings</h1>
<div class="card">
<h2>📁 Project Settings</h2>
<div class="form-group">
<label for="kittyPath">Kitty Path</label>
<input
type="text"
id="kittyPath"
placeholder="/Applications/kitty.app/Contents/MacOS/kitty"
/>
<p class="help-text">Kitty executable file path.</p>
<p class="help-text">
Default is '/Applications/kitty.app/Contents/MacOS/kitty'.
</p>
</div>
<div class="form-group">
<label for="opener">Opener</label>
<input type="text" id="opener" placeholder="nvim" />
<p class="help-text">Open with vim/nvim.</p>
<p class="help-text">Default is nvim.</p>
</div>
<button class="btn" id="saveBtn">💾 Save Settings</button>
<div class="success-message" id="successMessage">
✅ Settings saved successfully!
</div>
</div>
<div class="card">
<h2>🔧 Installation Guide</h2>
<ol class="installation-steps">
<li>
<strong>Enable Kitty Remote Control</strong>
<p>
Add this to your
<code class="inline-code">~/.config/kitty/kitty.conf</code>:
</p>
<code
>allow_remote_control yes listen_on
unix:/tmp/locator_vim_kitty--</code
>
</li>
<li>
<strong>Install the Native Host</strong>
<p>Run the install script from the extension directory:</p>
<code
>cd /path/to/locatorjs-vim chmod +x install_host.sh
./install_host.sh</code
>
</li>
<li>
<strong>Reload Chrome Extensions</strong>
<p>
Go to <code class="inline-code">chrome://extensions</code>, enable
Developer Mode, and reload the extension.
</p>
</li>
<li>
<strong>Restart Kitty</strong>
<p>
Restart your Kitty terminal to apply the remote control settings.
</p>
</li>
</ol>
</div>
</div>
<script src="options.js"></script>
</body>
</html>