diff options
Diffstat (limited to 'docs/posts')
-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 |
15 files changed, 183 insertions, 26 deletions
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 |