diff options
-rw-r--r-- | docs/art/index.html | 58 | ||||
-rw-r--r-- | docs/index.html | 24 | ||||
-rw-r--r-- | docs/index.xml | 77 | ||||
-rw-r--r-- | docs/posts/auto-currying_rust_functions/index.html | 2 | ||||
-rw-r--r-- | docs/posts/bash_harder_with_vim/index.html | 2 | ||||
-rw-r--r-- | docs/posts/call_to_ARMs/index.html | 2 | ||||
-rw-r--r-- | docs/posts/color_conundrum/index.html | 2 | ||||
-rw-r--r-- | docs/posts/font_size_fallacies/index.html | 2 | ||||
-rw-r--r-- | docs/posts/index.html | 41 | ||||
-rw-r--r-- | docs/posts/lightweight_linting/index.html | 4 | ||||
-rw-r--r-- | docs/posts/my_setup/index.html | 2 | ||||
-rw-r--r-- | docs/posts/pixel_art_in_GIMP/index.html | 2 | ||||
-rw-r--r-- | docs/posts/plain_text_journaling/index.html | 2 | ||||
-rw-r--r-- | docs/posts/rapid_refactoring_with_vim/index.html | 2 | ||||
-rw-r--r-- | docs/posts/snip_snap/index.html | 140 | ||||
-rw-r--r-- | docs/posts/static_sites_with_bash/index.html | 2 | ||||
-rw-r--r-- | docs/posts/termux_tandem/index.html | 2 | ||||
-rw-r--r-- | docs/posts/turing_complete_type_systems/index.html | 2 | ||||
-rw-r--r-- | posts/snip_snap.md | 102 |
19 files changed, 401 insertions, 69 deletions
diff --git a/docs/art/index.html b/docs/art/index.html index 22f7b3f..ce7e64f 100644 --- a/docs/art/index.html +++ b/docs/art/index.html | |||
@@ -38,7 +38,7 @@ | |||
38 | <div class="photo-overlay"> | 38 | <div class="photo-overlay"> |
39 | <div class="photo-text"> | 39 | <div class="photo-text"> |
40 | <div class="photo-title">Wane</div> | 40 | <div class="photo-title">Wane</div> |
41 | <div class="photo-date">02/07 — 2023</div> | 41 | <div class="photo-date">01/07 — 2023</div> |
42 | </div> | 42 | </div> |
43 | </div> | 43 | </div> |
44 | </div> | 44 | </div> |
@@ -82,7 +82,7 @@ | |||
82 | <div class="photo-overlay"> | 82 | <div class="photo-overlay"> |
83 | <div class="photo-text"> | 83 | <div class="photo-text"> |
84 | <div class="photo-title">Ferris</div> | 84 | <div class="photo-title">Ferris</div> |
85 | <div class="photo-date">29/08 — 2022</div> | 85 | <div class="photo-date">28/08 — 2022</div> |
86 | </div> | 86 | </div> |
87 | </div> | 87 | </div> |
88 | </div> | 88 | </div> |
@@ -93,7 +93,7 @@ | |||
93 | <div class="photo-overlay"> | 93 | <div class="photo-overlay"> |
94 | <div class="photo-text"> | 94 | <div class="photo-text"> |
95 | <div class="photo-title">Locus</div> | 95 | <div class="photo-title">Locus</div> |
96 | <div class="photo-date">09/06 — 2022</div> | 96 | <div class="photo-date">08/06 — 2022</div> |
97 | </div> | 97 | </div> |
98 | </div> | 98 | </div> |
99 | </div> | 99 | </div> |
@@ -104,7 +104,7 @@ | |||
104 | <div class="photo-overlay"> | 104 | <div class="photo-overlay"> |
105 | <div class="photo-text"> | 105 | <div class="photo-text"> |
106 | <div class="photo-title">Ivory Tower</div> | 106 | <div class="photo-title">Ivory Tower</div> |
107 | <div class="photo-date">03/06 — 2022</div> | 107 | <div class="photo-date">02/06 — 2022</div> |
108 | </div> | 108 | </div> |
109 | </div> | 109 | </div> |
110 | </div> | 110 | </div> |
@@ -115,7 +115,7 @@ | |||
115 | <div class="photo-overlay"> | 115 | <div class="photo-overlay"> |
116 | <div class="photo-text"> | 116 | <div class="photo-text"> |
117 | <div class="photo-title">The Sect</div> | 117 | <div class="photo-title">The Sect</div> |
118 | <div class="photo-date">03/06 — 2022</div> | 118 | <div class="photo-date">02/06 — 2022</div> |
119 | </div> | 119 | </div> |
120 | </div> | 120 | </div> |
121 | </div> | 121 | </div> |
@@ -126,7 +126,7 @@ | |||
126 | <div class="photo-overlay"> | 126 | <div class="photo-overlay"> |
127 | <div class="photo-text"> | 127 | <div class="photo-text"> |
128 | <div class="photo-title">Elephant</div> | 128 | <div class="photo-title">Elephant</div> |
129 | <div class="photo-date">21/05 — 2022</div> | 129 | <div class="photo-date">20/05 — 2022</div> |
130 | </div> | 130 | </div> |
131 | </div> | 131 | </div> |
132 | </div> | 132 | </div> |
@@ -137,7 +137,7 @@ | |||
137 | <div class="photo-overlay"> | 137 | <div class="photo-overlay"> |
138 | <div class="photo-text"> | 138 | <div class="photo-text"> |
139 | <div class="photo-title">2022</div> | 139 | <div class="photo-title">2022</div> |
140 | <div class="photo-date">13/03 — 2022</div> | 140 | <div class="photo-date">12/03 — 2022</div> |
141 | </div> | 141 | </div> |
142 | </div> | 142 | </div> |
143 | </div> | 143 | </div> |
@@ -148,7 +148,7 @@ | |||
148 | <div class="photo-overlay"> | 148 | <div class="photo-overlay"> |
149 | <div class="photo-text"> | 149 | <div class="photo-text"> |
150 | <div class="photo-title">Scenes From A Memory</div> | 150 | <div class="photo-title">Scenes From A Memory</div> |
151 | <div class="photo-date">21/12 — 2021</div> | 151 | <div class="photo-date">20/12 — 2021</div> |
152 | </div> | 152 | </div> |
153 | </div> | 153 | </div> |
154 | </div> | 154 | </div> |
@@ -159,7 +159,7 @@ | |||
159 | <div class="photo-overlay"> | 159 | <div class="photo-overlay"> |
160 | <div class="photo-text"> | 160 | <div class="photo-text"> |
161 | <div class="photo-title">B8</div> | 161 | <div class="photo-title">B8</div> |
162 | <div class="photo-date">04/10 — 2021</div> | 162 | <div class="photo-date">03/10 — 2021</div> |
163 | </div> | 163 | </div> |
164 | </div> | 164 | </div> |
165 | </div> | 165 | </div> |
@@ -170,7 +170,7 @@ | |||
170 | <div class="photo-overlay"> | 170 | <div class="photo-overlay"> |
171 | <div class="photo-text"> | 171 | <div class="photo-text"> |
172 | <div class="photo-title">Goat</div> | 172 | <div class="photo-title">Goat</div> |
173 | <div class="photo-date">23/08 — 2021</div> | 173 | <div class="photo-date">22/08 — 2021</div> |
174 | </div> | 174 | </div> |
175 | </div> | 175 | </div> |
176 | </div> | 176 | </div> |
@@ -181,7 +181,7 @@ | |||
181 | <div class="photo-overlay"> | 181 | <div class="photo-overlay"> |
182 | <div class="photo-text"> | 182 | <div class="photo-text"> |
183 | <div class="photo-title">B6</div> | 183 | <div class="photo-title">B6</div> |
184 | <div class="photo-date">10/07 — 2021</div> | 184 | <div class="photo-date">09/07 — 2021</div> |
185 | </div> | 185 | </div> |
186 | </div> | 186 | </div> |
187 | </div> | 187 | </div> |
@@ -192,7 +192,7 @@ | |||
192 | <div class="photo-overlay"> | 192 | <div class="photo-overlay"> |
193 | <div class="photo-text"> | 193 | <div class="photo-text"> |
194 | <div class="photo-title">PV-3</div> | 194 | <div class="photo-title">PV-3</div> |
195 | <div class="photo-date">27/06 — 2021</div> | 195 | <div class="photo-date">26/06 — 2021</div> |
196 | </div> | 196 | </div> |
197 | </div> | 197 | </div> |
198 | </div> | 198 | </div> |
@@ -203,7 +203,7 @@ | |||
203 | <div class="photo-overlay"> | 203 | <div class="photo-overlay"> |
204 | <div class="photo-text"> | 204 | <div class="photo-text"> |
205 | <div class="photo-title">Rekindled</div> | 205 | <div class="photo-title">Rekindled</div> |
206 | <div class="photo-date">11/06 — 2021</div> | 206 | <div class="photo-date">10/06 — 2021</div> |
207 | </div> | 207 | </div> |
208 | </div> | 208 | </div> |
209 | </div> | 209 | </div> |
@@ -214,7 +214,7 @@ | |||
214 | <div class="photo-overlay"> | 214 | <div class="photo-overlay"> |
215 | <div class="photo-text"> | 215 | <div class="photo-text"> |
216 | <div class="photo-title">Bison</div> | 216 | <div class="photo-title">Bison</div> |
217 | <div class="photo-date">05/06 — 2021</div> | 217 | <div class="photo-date">04/06 — 2021</div> |
218 | </div> | 218 | </div> |
219 | </div> | 219 | </div> |
220 | </div> | 220 | </div> |
@@ -225,7 +225,7 @@ | |||
225 | <div class="photo-overlay"> | 225 | <div class="photo-overlay"> |
226 | <div class="photo-text"> | 226 | <div class="photo-text"> |
227 | <div class="photo-title">Notre-Dame</div> | 227 | <div class="photo-title">Notre-Dame</div> |
228 | <div class="photo-date">30/05 — 2021</div> | 228 | <div class="photo-date">29/05 — 2021</div> |
229 | </div> | 229 | </div> |
230 | </div> | 230 | </div> |
231 | </div> | 231 | </div> |
@@ -236,7 +236,7 @@ | |||
236 | <div class="photo-overlay"> | 236 | <div class="photo-overlay"> |
237 | <div class="photo-text"> | 237 | <div class="photo-text"> |
238 | <div class="photo-title">Pineapple</div> | 238 | <div class="photo-title">Pineapple</div> |
239 | <div class="photo-date">29/05 — 2021</div> | 239 | <div class="photo-date">28/05 — 2021</div> |
240 | </div> | 240 | </div> |
241 | </div> | 241 | </div> |
242 | </div> | 242 | </div> |
@@ -247,7 +247,7 @@ | |||
247 | <div class="photo-overlay"> | 247 | <div class="photo-overlay"> |
248 | <div class="photo-text"> | 248 | <div class="photo-text"> |
249 | <div class="photo-title">B4</div> | 249 | <div class="photo-title">B4</div> |
250 | <div class="photo-date">22/05 — 2021</div> | 250 | <div class="photo-date">21/05 — 2021</div> |
251 | </div> | 251 | </div> |
252 | </div> | 252 | </div> |
253 | </div> | 253 | </div> |
@@ -258,7 +258,7 @@ | |||
258 | <div class="photo-overlay"> | 258 | <div class="photo-overlay"> |
259 | <div class="photo-text"> | 259 | <div class="photo-text"> |
260 | <div class="photo-title">Isopod</div> | 260 | <div class="photo-title">Isopod</div> |
261 | <div class="photo-date">22/05 — 2021</div> | 261 | <div class="photo-date">21/05 — 2021</div> |
262 | </div> | 262 | </div> |
263 | </div> | 263 | </div> |
264 | </div> | 264 | </div> |
@@ -269,7 +269,7 @@ | |||
269 | <div class="photo-overlay"> | 269 | <div class="photo-overlay"> |
270 | <div class="photo-text"> | 270 | <div class="photo-text"> |
271 | <div class="photo-title">Wraith</div> | 271 | <div class="photo-title">Wraith</div> |
272 | <div class="photo-date">14/05 — 2021</div> | 272 | <div class="photo-date">13/05 — 2021</div> |
273 | </div> | 273 | </div> |
274 | </div> | 274 | </div> |
275 | </div> | 275 | </div> |
@@ -280,7 +280,7 @@ | |||
280 | <div class="photo-overlay"> | 280 | <div class="photo-overlay"> |
281 | <div class="photo-text"> | 281 | <div class="photo-text"> |
282 | <div class="photo-title">Antique</div> | 282 | <div class="photo-title">Antique</div> |
283 | <div class="photo-date">08/05 — 2021</div> | 283 | <div class="photo-date">07/05 — 2021</div> |
284 | </div> | 284 | </div> |
285 | </div> | 285 | </div> |
286 | </div> | 286 | </div> |
@@ -291,7 +291,7 @@ | |||
291 | <div class="photo-overlay"> | 291 | <div class="photo-overlay"> |
292 | <div class="photo-text"> | 292 | <div class="photo-text"> |
293 | <div class="photo-title">Grimoire</div> | 293 | <div class="photo-title">Grimoire</div> |
294 | <div class="photo-date">06/05 — 2021</div> | 294 | <div class="photo-date">05/05 — 2021</div> |
295 | </div> | 295 | </div> |
296 | </div> | 296 | </div> |
297 | </div> | 297 | </div> |
@@ -302,7 +302,7 @@ | |||
302 | <div class="photo-overlay"> | 302 | <div class="photo-overlay"> |
303 | <div class="photo-text"> | 303 | <div class="photo-text"> |
304 | <div class="photo-title">Aviator Owl</div> | 304 | <div class="photo-title">Aviator Owl</div> |
305 | <div class="photo-date">01/05 — 2021</div> | 305 | <div class="photo-date">30/04 — 2021</div> |
306 | </div> | 306 | </div> |
307 | </div> | 307 | </div> |
308 | </div> | 308 | </div> |
@@ -313,7 +313,7 @@ | |||
313 | <div class="photo-overlay"> | 313 | <div class="photo-overlay"> |
314 | <div class="photo-text"> | 314 | <div class="photo-text"> |
315 | <div class="photo-title">Beret Beaver</div> | 315 | <div class="photo-title">Beret Beaver</div> |
316 | <div class="photo-date">01/05 — 2021</div> | 316 | <div class="photo-date">30/04 — 2021</div> |
317 | </div> | 317 | </div> |
318 | </div> | 318 | </div> |
319 | </div> | 319 | </div> |
@@ -324,7 +324,7 @@ | |||
324 | <div class="photo-overlay"> | 324 | <div class="photo-overlay"> |
325 | <div class="photo-text"> | 325 | <div class="photo-text"> |
326 | <div class="photo-title">Monocle Rabbit</div> | 326 | <div class="photo-title">Monocle Rabbit</div> |
327 | <div class="photo-date">01/05 — 2021</div> | 327 | <div class="photo-date">30/04 — 2021</div> |
328 | </div> | 328 | </div> |
329 | </div> | 329 | </div> |
330 | </div> | 330 | </div> |
@@ -335,7 +335,7 @@ | |||
335 | <div class="photo-overlay"> | 335 | <div class="photo-overlay"> |
336 | <div class="photo-text"> | 336 | <div class="photo-text"> |
337 | <div class="photo-title">Ramen Noodles</div> | 337 | <div class="photo-title">Ramen Noodles</div> |
338 | <div class="photo-date">26/03 — 2021</div> | 338 | <div class="photo-date">25/03 — 2021</div> |
339 | </div> | 339 | </div> |
340 | </div> | 340 | </div> |
341 | </div> | 341 | </div> |
@@ -346,7 +346,7 @@ | |||
346 | <div class="photo-overlay"> | 346 | <div class="photo-overlay"> |
347 | <div class="photo-text"> | 347 | <div class="photo-text"> |
348 | <div class="photo-title">Shark</div> | 348 | <div class="photo-title">Shark</div> |
349 | <div class="photo-date">22/02 — 2021</div> | 349 | <div class="photo-date">21/02 — 2021</div> |
350 | </div> | 350 | </div> |
351 | </div> | 351 | </div> |
352 | </div> | 352 | </div> |
@@ -357,7 +357,7 @@ | |||
357 | <div class="photo-overlay"> | 357 | <div class="photo-overlay"> |
358 | <div class="photo-text"> | 358 | <div class="photo-text"> |
359 | <div class="photo-title">Moonshine</div> | 359 | <div class="photo-title">Moonshine</div> |
360 | <div class="photo-date">25/04 — 2020</div> | 360 | <div class="photo-date">24/04 — 2020</div> |
361 | </div> | 361 | </div> |
362 | </div> | 362 | </div> |
363 | </div> | 363 | </div> |
@@ -368,7 +368,7 @@ | |||
368 | <div class="photo-overlay"> | 368 | <div class="photo-overlay"> |
369 | <div class="photo-text"> | 369 | <div class="photo-text"> |
370 | <div class="photo-title">Onigiri</div> | 370 | <div class="photo-title">Onigiri</div> |
371 | <div class="photo-date">09/04 — 2020</div> | 371 | <div class="photo-date">08/04 — 2020</div> |
372 | </div> | 372 | </div> |
373 | </div> | 373 | </div> |
374 | </div> | 374 | </div> |
@@ -379,7 +379,7 @@ | |||
379 | <div class="photo-overlay"> | 379 | <div class="photo-overlay"> |
380 | <div class="photo-text"> | 380 | <div class="photo-text"> |
381 | <div class="photo-title">The Observer</div> | 381 | <div class="photo-title">The Observer</div> |
382 | <div class="photo-date">17/01 — 2020</div> | 382 | <div class="photo-date">16/01 — 2020</div> |
383 | </div> | 383 | </div> |
384 | </div> | 384 | </div> |
385 | </div> | 385 | </div> |
diff --git a/docs/index.html b/docs/index.html index e1230ed..ba79b10 100644 --- a/docs/index.html +++ b/docs/index.html | |||
@@ -40,15 +40,15 @@ | |||
40 | <tr> | 40 | <tr> |
41 | <td class=table-post> | 41 | <td class=table-post> |
42 | <div class="date"> | 42 | <div class="date"> |
43 | 19/06 — 2023 | 43 | 08/05 — 2024 |
44 | </div> | 44 | </div> |
45 | <a href="/posts/plain_text_journaling" class="post-link"> | 45 | <a href="/posts/snip_snap" class="post-link"> |
46 | <span class="post-link">Plain Text Journaling</span> | 46 | <span class="post-link">Snip Snap</span> |
47 | </a> | 47 | </a> |
48 | </td> | 48 | </td> |
49 | <td class=table-stats> | 49 | <td class=table-stats> |
50 | <span class="stats-number"> | 50 | <span class="stats-number"> |
51 | 8.9 | 51 | 2.1 |
52 | </span> | 52 | </span> |
53 | <span class=stats-unit>min</span> | 53 | <span class=stats-unit>min</span> |
54 | </td> | 54 | </td> |
@@ -57,15 +57,15 @@ | |||
57 | <tr> | 57 | <tr> |
58 | <td class=table-post> | 58 | <td class=table-post> |
59 | <div class="date"> | 59 | <div class="date"> |
60 | 03/09 — 2022 | 60 | 18/06 — 2023 |
61 | </div> | 61 | </div> |
62 | <a href="/posts/curing_a_case_of_git-UX" class="post-link"> | 62 | <a href="/posts/plain_text_journaling" class="post-link"> |
63 | <span class="post-link">Curing A Case Of Git-UX</span> | 63 | <span class="post-link">Plain Text Journaling</span> |
64 | </a> | 64 | </a> |
65 | </td> | 65 | </td> |
66 | <td class=table-stats> | 66 | <td class=table-stats> |
67 | <span class="stats-number"> | 67 | <span class="stats-number"> |
68 | 9.6 | 68 | 8.9 |
69 | </span> | 69 | </span> |
70 | <span class=stats-unit>min</span> | 70 | <span class=stats-unit>min</span> |
71 | </td> | 71 | </td> |
@@ -74,15 +74,15 @@ | |||
74 | <tr> | 74 | <tr> |
75 | <td class=table-post> | 75 | <td class=table-post> |
76 | <div class="date"> | 76 | <div class="date"> |
77 | 28/08 — 2022 | 77 | 03/09 — 2022 |
78 | </div> | 78 | </div> |
79 | <a href="/posts/programming_on_34_keys" class="post-link"> | 79 | <a href="/posts/curing_a_case_of_git-UX" class="post-link"> |
80 | <span class="post-link">Programming On 34 Keys</span> | 80 | <span class="post-link">Curing A Case Of Git-UX</span> |
81 | </a> | 81 | </a> |
82 | </td> | 82 | </td> |
83 | <td class=table-stats> | 83 | <td class=table-stats> |
84 | <span class="stats-number"> | 84 | <span class="stats-number"> |
85 | 6.2 | 85 | 9.6 |
86 | </span> | 86 | </span> |
87 | <span class=stats-unit>min</span> | 87 | <span class=stats-unit>min</span> |
88 | </td> | 88 | </td> |
diff --git a/docs/index.xml b/docs/index.xml index eb43379..046b4d2 100644 --- a/docs/index.xml +++ b/docs/index.xml | |||
@@ -12,6 +12,79 @@ | |||
12 | <language>en-us</language> | 12 | <language>en-us</language> |
13 | <copyright>Creative Commons BY-NC-SA 4.0</copyright> | 13 | <copyright>Creative Commons BY-NC-SA 4.0</copyright> |
14 | <item> | 14 | <item> |
15 | <title>Snip Snap</title> | ||
16 | <description><p>I regularly switch between exactly two things while working, a | ||
17 | “current” and an “alternate” item; a lot of tools I use seem to support | ||
18 | this flow.</p> | ||
19 | <h4 id="git">git</h4> | ||
20 | <p>Pass <code>-</code> to <code>git-checkout</code> to switch to the | ||
21 | previously active branch:</p> | ||
22 | <div class="sourceCode" id="cb1"><pre | ||
23 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> git branch</span> | ||
24 | <span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="ex">*</span> foo</span> | ||
25 | <span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="ex">bar</span></span> | ||
26 | <span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a></span> | ||
27 | <span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> git checkout bar</span> | ||
28 | <span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> git branch</span> | ||
29 | <span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a> <span class="ex">foo</span></span> | ||
30 | <span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a><span class="ex">*</span> bar</span> | ||
31 | <span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a></span> | ||
32 | <span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> git checkout <span class="at">-</span></span> | ||
33 | <span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> git branch</span> | ||
34 | <span id="cb1-12"><a href="#cb1-12" aria-hidden="true" tabindex="-1"></a><span class="ex">*</span> foo</span> | ||
35 | <span id="cb1-13"><a href="#cb1-13" aria-hidden="true" tabindex="-1"></a> <span class="ex">bar</span></span></code></pre></div> | ||
36 | <h4 id="bash---cd">bash - cd</h4> | ||
37 | <p>This may not be exclusive to <code>bash</code>:</p> | ||
38 | <div class="sourceCode" id="cb2"><pre | ||
39 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">~/foo</span> $ cd ~/bar</span> | ||
40 | <span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="ex">~/bar</span> $ cd <span class="at">-</span></span> | ||
41 | <span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="ex">~/foo</span> $</span></code></pre></div> | ||
42 | <p>This is especially handy in combination with my <a | ||
43 | href="../curing_a_case_of_git-UX/">git-worktree flow</a>:</p> | ||
44 | <div class="sourceCode" id="cb3"><pre | ||
45 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">~/main-branch</span> $ gwj feature</span> | ||
46 | <span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="ex">~/feat-branch</span> $ cd <span class="at">-</span></span> | ||
47 | <span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="ex">~/main-branch</span> $</span></code></pre></div> | ||
48 | <h4 id="bash---jobs">bash - jobs</h4> | ||
49 | <p>I often suspend multiple <code>vim</code> sessions with | ||
50 | <code>Ctrl-Z</code>:</p> | ||
51 | <div class="sourceCode" id="cb4"><pre | ||
52 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> jobs</span> | ||
53 | <span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="ex">[1]+</span> Stopped vim transpiler/src/transform.rs</span> | ||
54 | <span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="ex">[2]-</span> Stopped git commit <span class="at">--verbose</span></span></code></pre></div> | ||
55 | <p>In the above example: I suspended <code>vim</code> when working on | ||
56 | <code>transform.rs</code>, and then began working on a commit by running | ||
57 | <code>git commit</code> without a message flag (lets you craft a message | ||
58 | in <code>$EDITOR</code>). To bring the current job to the foreground, | ||
59 | you can use <code>fg</code>:</p> | ||
60 | <div class="sourceCode" id="cb5"><pre | ||
61 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> fg</span></code></pre></div> | ||
62 | <p>With a job identifier:</p> | ||
63 | <div class="sourceCode" id="cb6"><pre | ||
64 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> fg %2 <span class="co"># resumes interactive git commit</span></span></code></pre></div> | ||
65 | <p>Or switch to “last” job, or the second-most-recently-resumed job:</p> | ||
66 | <div class="sourceCode" id="cb7"><pre | ||
67 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> fg %-</span> | ||
68 | <span id="cb7-2"><a href="#cb7-2" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> %- <span class="co"># shorthand</span></span></code></pre></div> | ||
69 | <h4 id="vim">vim</h4> | ||
70 | <p>Switch to the last active buffer with <code>Ctrl+^</code>. In | ||
71 | command-mode, <code>#</code> refers to the last active buffer, you can | ||
72 | use this as an argument to a few commands:</p> | ||
73 | <pre class="vimscript"><code>:b# &quot; switch to alternate buffer (same as Ctrl+^) | ||
74 | :vsp# &quot; create a vertical split with the alternate buffer | ||
75 | :read# &quot; read contents of alternate buffer into current buffer | ||
76 | :!wc # &quot; pass file name of alternate buffer to the command `wc`</code></pre> | ||
77 | <p>See <code>:help c_#</code> for more.</p> | ||
78 | <h4 id="tmux">tmux</h4> | ||
79 | <p>Switch to the last active tmux session with | ||
80 | <code>&lt;prefix&gt;+shift+L</code>.</p> | ||
81 | <h4 id="qutebrowser">qutebrowser</h4> | ||
82 | <p>Switch to the last active tab with <code>g$</code>.</p></description> | ||
83 | <link>https://peppe.rs/posts/snip_snap/</link> | ||
84 | <pubDate>Wed, 08 May 2024 10:38:00 +0000</pubDate> | ||
85 | <guid>https://peppe.rs/posts/snip_snap/</guid> | ||
86 | </item> | ||
87 | <item> | ||
15 | <title>Plain Text Journaling</title> | 88 | <title>Plain Text Journaling</title> |
16 | <description><p>I cobbled together a journaling system with {neo,}vim, coreutils and | 89 | <description><p>I cobbled together a journaling system with {neo,}vim, coreutils and |
17 | <a href="http://www.fresse.org/dateutils">dateutils</a>. This system is | 90 | <a href="http://www.fresse.org/dateutils">dateutils</a>. This system is |
@@ -1014,10 +1087,10 @@ class="sourceCode bash"><code class="sourceCode bash"><span id="cb20 | |||
1014 | your dependencies:</p> | 1087 | your dependencies:</p> |
1015 | <div class="sourceCode" id="cb21"><pre | 1088 | <div class="sourceCode" id="cb21"><pre |
1016 | class="sourceCode toml"><code class="sourceCode toml"><span id="cb21-1"><a href="#cb21-1" aria-hidden="true" tabindex="-1"></a><span class="co"># within Cargo.toml</span></span> | 1089 | class="sourceCode toml"><code class="sourceCode toml"><span id="cb21-1"><a href="#cb21-1" aria-hidden="true" tabindex="-1"></a><span class="co"># within Cargo.toml</span></span> |
1017 | <span id="cb21-2"><a href="#cb21-2" aria-hidden="true" tabindex="-1"></a><span class="kw">[</span><span class="dt">dependencies</span><span class="kw">]</span></span> | 1090 | <span id="cb21-2"><a href="#cb21-2" aria-hidden="true" tabindex="-1"></a><span class="kw">[dependencies]</span></span> |
1018 | <span id="cb21-3"><a href="#cb21-3" aria-hidden="true" tabindex="-1"></a><span class="dt">tree-sitter</span> <span class="op">=</span> <span class="st">&quot;0.20&quot;</span></span> | 1091 | <span id="cb21-3"><a href="#cb21-3" aria-hidden="true" tabindex="-1"></a><span class="dt">tree-sitter</span> <span class="op">=</span> <span class="st">&quot;0.20&quot;</span></span> |
1019 | <span id="cb21-4"><a href="#cb21-4" aria-hidden="true" tabindex="-1"></a></span> | 1092 | <span id="cb21-4"><a href="#cb21-4" aria-hidden="true" tabindex="-1"></a></span> |
1020 | <span id="cb21-5"><a href="#cb21-5" aria-hidden="true" tabindex="-1"></a><span class="kw">[</span><span class="dt">dependencies</span><span class="kw">.</span><span class="dt">tree-sitter-rust</span><span class="kw">]</span></span> | 1093 | <span id="cb21-5"><a href="#cb21-5" aria-hidden="true" tabindex="-1"></a><span class="kw">[dependencies.tree-sitter-rust]</span></span> |
1021 | <span id="cb21-6"><a href="#cb21-6" aria-hidden="true" tabindex="-1"></a><span class="dt">git</span> <span class="op">=</span> <span class="st">&quot;https://github.com/tree-sitter/tree-sitter-rust&quot;</span></span></code></pre></div> | 1094 | <span id="cb21-6"><a href="#cb21-6" aria-hidden="true" tabindex="-1"></a><span class="dt">git</span> <span class="op">=</span> <span class="st">&quot;https://github.com/tree-sitter/tree-sitter-rust&quot;</span></span></code></pre></div> |
1022 | <p>Let’s load in some Rust code to work with. As <a | 1095 | <p>Let’s load in some Rust code to work with. As <a |
1023 | href="https://en.wikipedia.org/wiki/Self-reference">an ode to Gödel</a> | 1096 | href="https://en.wikipedia.org/wiki/Self-reference">an ode to Gödel</a> |
diff --git a/docs/posts/auto-currying_rust_functions/index.html b/docs/posts/auto-currying_rust_functions/index.html index 83e5c86..49b4c79 100644 --- a/docs/posts/auto-currying_rust_functions/index.html +++ b/docs/posts/auto-currying_rust_functions/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 09/05 — 2020 | 28 | 08/05 — 2020 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 356.44 | 31 | 356.44 |
diff --git a/docs/posts/bash_harder_with_vim/index.html b/docs/posts/bash_harder_with_vim/index.html index e62f1aa..db81097 100644 --- a/docs/posts/bash_harder_with_vim/index.html +++ b/docs/posts/bash_harder_with_vim/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 31/07 — 2019 | 28 | 30/07 — 2019 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 24.38 | 31 | 24.38 |
diff --git a/docs/posts/call_to_ARMs/index.html b/docs/posts/call_to_ARMs/index.html index 3b5e780..6aae1d8 100644 --- a/docs/posts/call_to_ARMs/index.html +++ b/docs/posts/call_to_ARMs/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 08/02 — 2020 | 28 | 07/02 — 2020 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 33.57 | 31 | 33.57 |
diff --git a/docs/posts/color_conundrum/index.html b/docs/posts/color_conundrum/index.html index 3178da8..aef6081 100644 --- a/docs/posts/color_conundrum/index.html +++ b/docs/posts/color_conundrum/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 31/12 — 2019 | 28 | 30/12 — 2019 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 14.39 | 31 | 14.39 |
diff --git a/docs/posts/font_size_fallacies/index.html b/docs/posts/font_size_fallacies/index.html index bebec46..513b1ef 100644 --- a/docs/posts/font_size_fallacies/index.html +++ b/docs/posts/font_size_fallacies/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 17/03 — 2020 | 28 | 16/03 — 2020 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 32.37 | 31 | 32.37 |
diff --git a/docs/posts/index.html b/docs/posts/index.html index 2a7c1a3..f048493 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html | |||
@@ -27,7 +27,24 @@ | |||
27 | <tr> | 27 | <tr> |
28 | <td class=table-post> | 28 | <td class=table-post> |
29 | <div class="date"> | 29 | <div class="date"> |
30 | 19/06 — 2023 | 30 | 08/05 — 2024 |
31 | </div> | ||
32 | <a href="/posts/snip_snap" class="post-link"> | ||
33 | <span class="post-link">Snip Snap</span> | ||
34 | </a> | ||
35 | </td> | ||
36 | <td class=table-stats> | ||
37 | <span class="stats-number"> | ||
38 | 2.1 | ||
39 | </span> | ||
40 | <span class=stats-unit>min</span> | ||
41 | </td> | ||
42 | </tr> | ||
43 | |||
44 | <tr> | ||
45 | <td class=table-post> | ||
46 | <div class="date"> | ||
47 | 18/06 — 2023 | ||
31 | </div> | 48 | </div> |
32 | <a href="/posts/plain_text_journaling" class="post-link"> | 49 | <a href="/posts/plain_text_journaling" class="post-link"> |
33 | <span class="post-link">Plain Text Journaling</span> | 50 | <span class="post-link">Plain Text Journaling</span> |
@@ -214,7 +231,7 @@ | |||
214 | <tr> | 231 | <tr> |
215 | <td class=table-post> | 232 | <td class=table-post> |
216 | <div class="date"> | 233 | <div class="date"> |
217 | 18/06 — 2020 | 234 | 17/06 — 2020 |
218 | </div> | 235 | </div> |
219 | <a href="/posts/turing_complete_type_systems" class="post-link"> | 236 | <a href="/posts/turing_complete_type_systems" class="post-link"> |
220 | <span class="post-link">Turing Complete Type Systems</span> | 237 | <span class="post-link">Turing Complete Type Systems</span> |
@@ -231,7 +248,7 @@ | |||
231 | <tr> | 248 | <tr> |
232 | <td class=table-post> | 249 | <td class=table-post> |
233 | <div class="date"> | 250 | <div class="date"> |
234 | 09/05 — 2020 | 251 | 08/05 — 2020 |
235 | </div> | 252 | </div> |
236 | <a href="/posts/auto-currying_rust_functions" class="post-link"> | 253 | <a href="/posts/auto-currying_rust_functions" class="post-link"> |
237 | <span class="post-link">Auto-currying Rust Functions</span> | 254 | <span class="post-link">Auto-currying Rust Functions</span> |
@@ -248,7 +265,7 @@ | |||
248 | <tr> | 265 | <tr> |
249 | <td class=table-post> | 266 | <td class=table-post> |
250 | <div class="date"> | 267 | <div class="date"> |
251 | 09/04 — 2020 | 268 | 08/04 — 2020 |
252 | </div> | 269 | </div> |
253 | <a href="/posts/pixel_art_in_GIMP" class="post-link"> | 270 | <a href="/posts/pixel_art_in_GIMP" class="post-link"> |
254 | <span class="post-link">Pixel Art In GIMP</span> | 271 | <span class="post-link">Pixel Art In GIMP</span> |
@@ -265,7 +282,7 @@ | |||
265 | <tr> | 282 | <tr> |
266 | <td class=table-post> | 283 | <td class=table-post> |
267 | <div class="date"> | 284 | <div class="date"> |
268 | 01/04 — 2020 | 285 | 31/03 — 2020 |
269 | </div> | 286 | </div> |
270 | <a href="/posts/rapid_refactoring_with_vim" class="post-link"> | 287 | <a href="/posts/rapid_refactoring_with_vim" class="post-link"> |
271 | <span class="post-link">Rapid Refactoring With Vim</span> | 288 | <span class="post-link">Rapid Refactoring With Vim</span> |
@@ -282,7 +299,7 @@ | |||
282 | <tr> | 299 | <tr> |
283 | <td class=table-post> | 300 | <td class=table-post> |
284 | <div class="date"> | 301 | <div class="date"> |
285 | 17/03 — 2020 | 302 | 16/03 — 2020 |
286 | </div> | 303 | </div> |
287 | <a href="/posts/font_size_fallacies" class="post-link"> | 304 | <a href="/posts/font_size_fallacies" class="post-link"> |
288 | <span class="post-link">Font Size Fallacies</span> | 305 | <span class="post-link">Font Size Fallacies</span> |
@@ -299,7 +316,7 @@ | |||
299 | <tr> | 316 | <tr> |
300 | <td class=table-post> | 317 | <td class=table-post> |
301 | <div class="date"> | 318 | <div class="date"> |
302 | 08/03 — 2020 | 319 | 07/03 — 2020 |
303 | </div> | 320 | </div> |
304 | <a href="/posts/termux_tandem" class="post-link"> | 321 | <a href="/posts/termux_tandem" class="post-link"> |
305 | <span class="post-link">Termux Tandem</span> | 322 | <span class="post-link">Termux Tandem</span> |
@@ -316,7 +333,7 @@ | |||
316 | <tr> | 333 | <tr> |
317 | <td class=table-post> | 334 | <td class=table-post> |
318 | <div class="date"> | 335 | <div class="date"> |
319 | 08/02 — 2020 | 336 | 07/02 — 2020 |
320 | </div> | 337 | </div> |
321 | <a href="/posts/call_to_ARMs" class="post-link"> | 338 | <a href="/posts/call_to_ARMs" class="post-link"> |
322 | <span class="post-link">Call To ARMs</span> | 339 | <span class="post-link">Call To ARMs</span> |
@@ -333,7 +350,7 @@ | |||
333 | <tr> | 350 | <tr> |
334 | <td class=table-post> | 351 | <td class=table-post> |
335 | <div class="date"> | 352 | <div class="date"> |
336 | 31/12 — 2019 | 353 | 30/12 — 2019 |
337 | </div> | 354 | </div> |
338 | <a href="/posts/color_conundrum" class="post-link"> | 355 | <a href="/posts/color_conundrum" class="post-link"> |
339 | <span class="post-link">Color Conundrum</span> | 356 | <span class="post-link">Color Conundrum</span> |
@@ -350,7 +367,7 @@ | |||
350 | <tr> | 367 | <tr> |
351 | <td class=table-post> | 368 | <td class=table-post> |
352 | <div class="date"> | 369 | <div class="date"> |
353 | 23/11 — 2019 | 370 | 22/11 — 2019 |
354 | </div> | 371 | </div> |
355 | <a href="/posts/static_sites_with_bash" class="post-link"> | 372 | <a href="/posts/static_sites_with_bash" class="post-link"> |
356 | <span class="post-link">Static Sites With Bash</span> | 373 | <span class="post-link">Static Sites With Bash</span> |
@@ -367,7 +384,7 @@ | |||
367 | <tr> | 384 | <tr> |
368 | <td class=table-post> | 385 | <td class=table-post> |
369 | <div class="date"> | 386 | <div class="date"> |
370 | 07/11 — 2019 | 387 | 06/11 — 2019 |
371 | </div> | 388 | </div> |
372 | <a href="/posts/my_setup" class="post-link"> | 389 | <a href="/posts/my_setup" class="post-link"> |
373 | <span class="post-link">My Setup</span> | 390 | <span class="post-link">My Setup</span> |
@@ -435,7 +452,7 @@ | |||
435 | <tr> | 452 | <tr> |
436 | <td class=table-post> | 453 | <td class=table-post> |
437 | <div class="date"> | 454 | <div class="date"> |
438 | 31/07 — 2019 | 455 | 30/07 — 2019 |
439 | </div> | 456 | </div> |
440 | <a href="/posts/bash_harder_with_vim" class="post-link"> | 457 | <a href="/posts/bash_harder_with_vim" class="post-link"> |
441 | <span class="post-link">Bash Harder With Vim</span> | 458 | <span class="post-link">Bash Harder With Vim</span> |
diff --git a/docs/posts/lightweight_linting/index.html b/docs/posts/lightweight_linting/index.html index 3f9bed6..9982385 100644 --- a/docs/posts/lightweight_linting/index.html +++ b/docs/posts/lightweight_linting/index.html | |||
@@ -217,10 +217,10 @@ class="sourceCode bash"><code class="sourceCode bash"><span id="cb20-1"><a href= | |||
217 | your dependencies:</p> | 217 | your dependencies:</p> |
218 | <div class="sourceCode" id="cb21"><pre | 218 | <div class="sourceCode" id="cb21"><pre |
219 | class="sourceCode toml"><code class="sourceCode toml"><span id="cb21-1"><a href="#cb21-1" aria-hidden="true" tabindex="-1"></a><span class="co"># within Cargo.toml</span></span> | 219 | class="sourceCode toml"><code class="sourceCode toml"><span id="cb21-1"><a href="#cb21-1" aria-hidden="true" tabindex="-1"></a><span class="co"># within Cargo.toml</span></span> |
220 | <span id="cb21-2"><a href="#cb21-2" aria-hidden="true" tabindex="-1"></a><span class="kw">[</span><span class="dt">dependencies</span><span class="kw">]</span></span> | 220 | <span id="cb21-2"><a href="#cb21-2" aria-hidden="true" tabindex="-1"></a><span class="kw">[dependencies]</span></span> |
221 | <span id="cb21-3"><a href="#cb21-3" aria-hidden="true" tabindex="-1"></a><span class="dt">tree-sitter</span> <span class="op">=</span> <span class="st">"0.20"</span></span> | 221 | <span id="cb21-3"><a href="#cb21-3" aria-hidden="true" tabindex="-1"></a><span class="dt">tree-sitter</span> <span class="op">=</span> <span class="st">"0.20"</span></span> |
222 | <span id="cb21-4"><a href="#cb21-4" aria-hidden="true" tabindex="-1"></a></span> | 222 | <span id="cb21-4"><a href="#cb21-4" aria-hidden="true" tabindex="-1"></a></span> |
223 | <span id="cb21-5"><a href="#cb21-5" aria-hidden="true" tabindex="-1"></a><span class="kw">[</span><span class="dt">dependencies</span><span class="kw">.</span><span class="dt">tree-sitter-rust</span><span class="kw">]</span></span> | 223 | <span id="cb21-5"><a href="#cb21-5" aria-hidden="true" tabindex="-1"></a><span class="kw">[dependencies.tree-sitter-rust]</span></span> |
224 | <span id="cb21-6"><a href="#cb21-6" aria-hidden="true" tabindex="-1"></a><span class="dt">git</span> <span class="op">=</span> <span class="st">"https://github.com/tree-sitter/tree-sitter-rust"</span></span></code></pre></div> | 224 | <span id="cb21-6"><a href="#cb21-6" aria-hidden="true" tabindex="-1"></a><span class="dt">git</span> <span class="op">=</span> <span class="st">"https://github.com/tree-sitter/tree-sitter-rust"</span></span></code></pre></div> |
225 | <p>Let’s load in some Rust code to work with. As <a | 225 | <p>Let’s load in some Rust code to work with. As <a |
226 | href="https://en.wikipedia.org/wiki/Self-reference">an ode to Gödel</a> | 226 | href="https://en.wikipedia.org/wiki/Self-reference">an ode to Gödel</a> |
diff --git a/docs/posts/my_setup/index.html b/docs/posts/my_setup/index.html index 8df18f6..09843b3 100644 --- a/docs/posts/my_setup/index.html +++ b/docs/posts/my_setup/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 07/11 — 2019 | 28 | 06/11 — 2019 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 10.39 | 31 | 10.39 |
diff --git a/docs/posts/pixel_art_in_GIMP/index.html b/docs/posts/pixel_art_in_GIMP/index.html index e5be70c..d68ff60 100644 --- a/docs/posts/pixel_art_in_GIMP/index.html +++ b/docs/posts/pixel_art_in_GIMP/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 09/04 — 2020 | 28 | 08/04 — 2020 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 55.54 | 31 | 55.54 |
diff --git a/docs/posts/plain_text_journaling/index.html b/docs/posts/plain_text_journaling/index.html index 74faf0c..b96821a 100644 --- a/docs/posts/plain_text_journaling/index.html +++ b/docs/posts/plain_text_journaling/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 19/06 — 2023 | 28 | 18/06 — 2023 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 138.66 | 31 | 138.66 |
diff --git a/docs/posts/rapid_refactoring_with_vim/index.html b/docs/posts/rapid_refactoring_with_vim/index.html index 2303878..ac375b3 100644 --- a/docs/posts/rapid_refactoring_with_vim/index.html +++ b/docs/posts/rapid_refactoring_with_vim/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 01/04 — 2020 | 28 | 31/03 — 2020 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 79.12 | 31 | 79.12 |
diff --git a/docs/posts/snip_snap/index.html b/docs/posts/snip_snap/index.html new file mode 100644 index 0000000..02fa674 --- /dev/null +++ b/docs/posts/snip_snap/index.html | |||
@@ -0,0 +1,140 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <link rel="stylesheet" href="/style.css"> | ||
5 | <link rel="stylesheet" href="/syntax.css"> | ||
6 | <meta charset="UTF-8"> | ||
7 | <meta name="viewport" content="initial-scale=1"> | ||
8 | <meta content="#ffffff" name="theme-color"> | ||
9 | <meta name="HandheldFriendly" content="true"> | ||
10 | <meta property="og:title" content="Snip Snap"> | ||
11 | <meta property="og:type" content="website"> | ||
12 | <meta property="og:description" content="a static site {for, by, about} me "> | ||
13 | <meta property="og:url" content="https://peppe.rs"> | ||
14 | <link rel="icon" type="image/x-icon" href="/favicon.png"> | ||
15 | <title>Snip Snap · peppe.rs</title> | ||
16 | <body> | ||
17 | <div class="posts"> | ||
18 | <div class="post"> | ||
19 | <a href="/" class="post-end-link">Home</a> | ||
20 | <span>/</span> | ||
21 | <a href="/posts" class="post-end-link">Posts</a> | ||
22 | <span>/</span> | ||
23 | <a class="post-end-link">Snip Snap</a> | ||
24 | <a class="stats post-end-link" href="https://git.peppe.rs/web/site/plain/posts/snip_snap.md | ||
25 | ">View Raw</a> | ||
26 | <div class="separator"></div> | ||
27 | <div class="date"> | ||
28 | 08/05 — 2024 | ||
29 | <div class="stats"> | ||
30 | <span class="stats-number"> | ||
31 | 40.76 | ||
32 | </span> | ||
33 | <span class="stats-unit">cm</span> | ||
34 |   | ||
35 | <span class="stats-number"> | ||
36 | 2.1 | ||
37 | </span> | ||
38 | <span class="stats-unit">min</span> | ||
39 | </div> | ||
40 | </div> | ||
41 | <h1> | ||
42 | Snip Snap | ||
43 | </h1> | ||
44 | <div class="post-text"> | ||
45 | <p>I regularly switch between exactly two things while working, a | ||
46 | “current” and an “alternate” item; a lot of tools I use seem to support | ||
47 | this flow.</p> | ||
48 | <h4 id="git">git</h4> | ||
49 | <p>Pass <code>-</code> to <code>git-checkout</code> to switch to the | ||
50 | previously active branch:</p> | ||
51 | <div class="sourceCode" id="cb1"><pre | ||
52 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> git branch</span> | ||
53 | <span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="ex">*</span> foo</span> | ||
54 | <span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="ex">bar</span></span> | ||
55 | <span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a></span> | ||
56 | <span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> git checkout bar</span> | ||
57 | <span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> git branch</span> | ||
58 | <span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a> <span class="ex">foo</span></span> | ||
59 | <span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a><span class="ex">*</span> bar</span> | ||
60 | <span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a></span> | ||
61 | <span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> git checkout <span class="at">-</span></span> | ||
62 | <span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> git branch</span> | ||
63 | <span id="cb1-12"><a href="#cb1-12" aria-hidden="true" tabindex="-1"></a><span class="ex">*</span> foo</span> | ||
64 | <span id="cb1-13"><a href="#cb1-13" aria-hidden="true" tabindex="-1"></a> <span class="ex">bar</span></span></code></pre></div> | ||
65 | <h4 id="bash---cd">bash - cd</h4> | ||
66 | <p>This may not be exclusive to <code>bash</code>:</p> | ||
67 | <div class="sourceCode" id="cb2"><pre | ||
68 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">~/foo</span> $ cd ~/bar</span> | ||
69 | <span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="ex">~/bar</span> $ cd <span class="at">-</span></span> | ||
70 | <span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="ex">~/foo</span> $</span></code></pre></div> | ||
71 | <p>This is especially handy in combination with my <a | ||
72 | href="../curing_a_case_of_git-UX/">git-worktree flow</a>:</p> | ||
73 | <div class="sourceCode" id="cb3"><pre | ||
74 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">~/main-branch</span> $ gwj feature</span> | ||
75 | <span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="ex">~/feat-branch</span> $ cd <span class="at">-</span></span> | ||
76 | <span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="ex">~/main-branch</span> $</span></code></pre></div> | ||
77 | <h4 id="bash---jobs">bash - jobs</h4> | ||
78 | <p>I often suspend multiple <code>vim</code> sessions with | ||
79 | <code>Ctrl-Z</code>:</p> | ||
80 | <div class="sourceCode" id="cb4"><pre | ||
81 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> jobs</span> | ||
82 | <span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="ex">[1]+</span> Stopped vim transpiler/src/transform.rs</span> | ||
83 | <span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="ex">[2]-</span> Stopped git commit <span class="at">--verbose</span></span></code></pre></div> | ||
84 | <p>In the above example: I suspended <code>vim</code> when working on | ||
85 | <code>transform.rs</code>, and then began working on a commit by running | ||
86 | <code>git commit</code> without a message flag (lets you craft a message | ||
87 | in <code>$EDITOR</code>). To bring the current job to the foreground, | ||
88 | you can use <code>fg</code>:</p> | ||
89 | <div class="sourceCode" id="cb5"><pre | ||
90 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> fg</span></code></pre></div> | ||
91 | <p>With a job identifier:</p> | ||
92 | <div class="sourceCode" id="cb6"><pre | ||
93 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> fg %2 <span class="co"># resumes interactive git commit</span></span></code></pre></div> | ||
94 | <p>Or switch to “last” job, or the second-most-recently-resumed job:</p> | ||
95 | <div class="sourceCode" id="cb7"><pre | ||
96 | class="sourceCode bash"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> fg %-</span> | ||
97 | <span id="cb7-2"><a href="#cb7-2" aria-hidden="true" tabindex="-1"></a><span class="ex">$</span> %- <span class="co"># shorthand</span></span></code></pre></div> | ||
98 | <h4 id="vim">vim</h4> | ||
99 | <p>Switch to the last active buffer with <code>Ctrl+^</code>. In | ||
100 | command-mode, <code>#</code> refers to the last active buffer, you can | ||
101 | use this as an argument to a few commands:</p> | ||
102 | <pre class="vimscript"><code>:b# " switch to alternate buffer (same as Ctrl+^) | ||
103 | :vsp# " create a vertical split with the alternate buffer | ||
104 | :read# " read contents of alternate buffer into current buffer | ||
105 | :!wc # " pass file name of alternate buffer to the command `wc`</code></pre> | ||
106 | <p>See <code>:help c_#</code> for more.</p> | ||
107 | <h4 id="tmux">tmux</h4> | ||
108 | <p>Switch to the last active tmux session with | ||
109 | <code><prefix>+shift+L</code>.</p> | ||
110 | <h4 id="qutebrowser">qutebrowser</h4> | ||
111 | <p>Switch to the last active tab with <code>g$</code>.</p> | ||
112 | |||
113 | </div> | ||
114 | |||
115 | <div class="intro"> | ||
116 | Hi. | ||
117 | <div class="hot-links"> | ||
118 | <a href="https://peppe.rs/index.xml" class="feed-button">Subscribe</a> | ||
119 | </div> | ||
120 | <p>I'm Akshay, programmer and pixel-artist.</p> | ||
121 | <p> | ||
122 | I write <a href="https://git.peppe.rs">open-source stuff</a> to pass time. | ||
123 | I also design fonts: | ||
124 | <a href="https://git.peppe.rs/fonts/scientifica/about">scientifica</a>, | ||
125 | <a href="https://git.peppe.rs/fonts/curie/about">curie</a>. | ||
126 | </p> | ||
127 | <p>Send me a mail at [email protected] or a message at [email protected].</p> | ||
128 | </div> | ||
129 | |||
130 | <a href="/" class="post-end-link">Home</a> | ||
131 | <span>/</span> | ||
132 | <a href="/posts" class="post-end-link">Posts</a> | ||
133 | <span>/</span> | ||
134 | <a class="post-end-link">Snip Snap</a> | ||
135 | <a class="stats post-end-link" href="https://git.peppe.rs/web/site/plain/posts/snip_snap.md | ||
136 | ">View Raw</a> | ||
137 | </div> | ||
138 | </div> | ||
139 | </body> | ||
140 | </html> | ||
diff --git a/docs/posts/static_sites_with_bash/index.html b/docs/posts/static_sites_with_bash/index.html index c58a324..3123847 100644 --- a/docs/posts/static_sites_with_bash/index.html +++ b/docs/posts/static_sites_with_bash/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 23/11 — 2019 | 28 | 22/11 — 2019 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 21.18 | 31 | 21.18 |
diff --git a/docs/posts/termux_tandem/index.html b/docs/posts/termux_tandem/index.html index a5b15ef..5c6a8c6 100644 --- a/docs/posts/termux_tandem/index.html +++ b/docs/posts/termux_tandem/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 08/03 — 2020 | 28 | 07/03 — 2020 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 19.18 | 31 | 19.18 |
diff --git a/docs/posts/turing_complete_type_systems/index.html b/docs/posts/turing_complete_type_systems/index.html index 5f2ac60..06e44e6 100644 --- a/docs/posts/turing_complete_type_systems/index.html +++ b/docs/posts/turing_complete_type_systems/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | ">View Raw</a> | 25 | ">View Raw</a> |
26 | <div class="separator"></div> | 26 | <div class="separator"></div> |
27 | <div class="date"> | 27 | <div class="date"> |
28 | 18/06 — 2020 | 28 | 17/06 — 2020 |
29 | <div class="stats"> | 29 | <div class="stats"> |
30 | <span class="stats-number"> | 30 | <span class="stats-number"> |
31 | 9.19 | 31 | 9.19 |
diff --git a/posts/snip_snap.md b/posts/snip_snap.md new file mode 100644 index 0000000..fa61fe2 --- /dev/null +++ b/posts/snip_snap.md | |||
@@ -0,0 +1,102 @@ | |||
1 | I regularly switch between exactly two things while working, | ||
2 | a "current" and an "alternate" item; a lot of tools I use | ||
3 | seem to support this flow. | ||
4 | |||
5 | #### git | ||
6 | |||
7 | Pass `-` to `git-checkout` to switch to the previously | ||
8 | active branch: | ||
9 | |||
10 | ```bash | ||
11 | $ git branch | ||
12 | * foo | ||
13 | bar | ||
14 | |||
15 | $ git checkout bar | ||
16 | $ git branch | ||
17 | foo | ||
18 | * bar | ||
19 | |||
20 | $ git checkout - | ||
21 | $ git branch | ||
22 | * foo | ||
23 | bar | ||
24 | ``` | ||
25 | |||
26 | #### bash - cd | ||
27 | |||
28 | This may not be exclusive to `bash`: | ||
29 | |||
30 | ```bash | ||
31 | ~/foo $ cd ~/bar | ||
32 | ~/bar $ cd - | ||
33 | ~/foo $ | ||
34 | ``` | ||
35 | |||
36 | This is especially handy in combination with my [git-worktree | ||
37 | flow](../curing_a_case_of_git-UX/): | ||
38 | |||
39 | ```bash | ||
40 | ~/main-branch $ gwj feature | ||
41 | ~/feat-branch $ cd - | ||
42 | ~/main-branch $ | ||
43 | ``` | ||
44 | |||
45 | #### bash - jobs | ||
46 | |||
47 | I often suspend multiple `vim` sessions with `Ctrl-Z`: | ||
48 | |||
49 | ```bash | ||
50 | $ jobs | ||
51 | [1]+ Stopped vim transpiler/src/transform.rs | ||
52 | [2]- Stopped git commit --verbose | ||
53 | ``` | ||
54 | |||
55 | In the above example: I suspended `vim` when working on | ||
56 | `transform.rs`, and then began working on a commit by | ||
57 | running `git commit` without a message flag (lets you craft | ||
58 | a message in `$EDITOR`). To bring the current job to the | ||
59 | foreground, you can use `fg`: | ||
60 | |||
61 | ```bash | ||
62 | $ fg | ||
63 | ``` | ||
64 | |||
65 | With a job identifier: | ||
66 | |||
67 | ```bash | ||
68 | $ fg %2 # resumes interactive git commit | ||
69 | ``` | ||
70 | |||
71 | Or switch to "last" job, or the second-most-recently-resumed | ||
72 | job: | ||
73 | |||
74 | ```bash | ||
75 | $ fg %- | ||
76 | $ %- # shorthand | ||
77 | |||
78 | ``` | ||
79 | |||
80 | #### vim | ||
81 | |||
82 | Switch to the last active buffer with `Ctrl+^`. In | ||
83 | command-mode, `#` refers to the last active buffer, you can | ||
84 | use this as an argument to a few commands: | ||
85 | |||
86 | ```vimscript | ||
87 | :b# " switch to alternate buffer (same as Ctrl+^) | ||
88 | :vsp# " create a vertical split with the alternate buffer | ||
89 | :read# " read contents of alternate buffer into current buffer | ||
90 | :!wc # " pass file name of alternate buffer to the command `wc` | ||
91 | ``` | ||
92 | |||
93 | See `:help c_#` for more. | ||
94 | |||
95 | #### tmux | ||
96 | |||
97 | Switch to the last active tmux session with | ||
98 | `<prefix>+shift+L`. | ||
99 | |||
100 | #### qutebrowser | ||
101 | |||
102 | Switch to the last active tab with `g$`. | ||