v0.9.0 dd8597a

commit-trojan.html RawHistoryFolder

1<!doctype html>
2<html lang="en">
3<head>
4<meta charset="utf-8">
5<meta name="viewport" content="width=device-width, initial-scale=1">
6<meta name="color-scheme" content="light dark">
7<title>SHA7 add evil.go · diffs · example.test</title>
8<link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg">
9<link rel="preload" href="/-/static/fonts/atkinson-next.HASH.woff2" as="font" type="font/woff2" crossorigin>
10<link rel="stylesheet" href="/-/static/css/ermite.HASH.css">
11<meta name="htmx-config" content='{"history":false,"includeIndicatorCSS":false,"extensions":"sse, hx-live"}'>
12<script src="/-/static/js/htmx.min.HASH.js" defer>
13</script>
14<script src="/-/static/js/hx-live.min.HASH.js" defer>
15</script>
16<script src="/-/static/js/hx-sse.min.HASH.js" defer>
17</script>
18<script src="/-/static/js/ermite.HASH.js" defer>
19</script>
20<script src="/-/static/js/files.HASH.js" defer>
21</script>
22<script src="/-/static/js/passkey.HASH.js" defer>
23</script>
24<script src="/-/static/js/log.HASH.js" defer>
25</script>
26</head>
27<body data-ref="" data-sha="SHA40" data-sel="" data-nav="" data-paths="/diffs/paths/SHA40" data-blob="/diffs/blob/SHA40">
28<a class="skip" href="#main">skip to content</a>
29<header class="hdr">
30<div class="hdr-top">
31<a class="brand" href="/" data-g="h" title="home (g h)">
32<span class="brand-mark" aria-hidden="true">
33</span>
34<span class="brand-name">example.test</span>
35</a>
36<nav class="crumbs" aria-label="Path">
37<ol>
38<li>
39<a href="/diffs">diffs</a>
40</li>
41<li>
42<a href="/diffs/commits/main">commit</a>
43</li>
44<li>
45<span aria-current="page">SHA7</span>
46</li>
47</ol>
48</nav>
49<div class="hdr-acts">
50<a class="btn ref" href="/diffs/refs" data-fire="refs" aria-keyshortcuts="b" title="switch branch or tag (b)">
51<span class="ico i-branch" aria-hidden="true">
52</span>
53<span class="ref-name">detached</span>
54<span class="sha">SHA7</span>
55</a>
56<button type="button" class="btn search" data-js aria-haspopup="dialog" aria-controls="panel-cmd" aria-keyshortcuts="Control+K :" title="go to a section, ref, file or repo (ctrl k or :)" data-fire="cmd">
57<span class="ico i-search" aria-hidden="true">
58</span>
59<span class="search-label">Go to…</span>
60<kbd aria-hidden="true">ctrl k</kbd>
61</button>
62<button type="button" class="btn icon" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?" aria-label="Keyboard shortcuts" title="keyboard shortcuts (?)">?</button>
63</div>
64</div>
65<nav class="tabs" aria-label="Sections">
66<ul>
67<li>
68<a href="/diffs" data-key="s" aria-keyshortcuts="s">Summary<kbd aria-hidden="true">s</kbd>
69</a>
70</li>
71<li>
72<a href="/diffs/tree/main" data-key="t" aria-keyshortcuts="t">Files<kbd aria-hidden="true">t</kbd>
73</a>
74</li>
75<li>
76<a href="/diffs/commits/main" data-key="c" aria-keyshortcuts="c" aria-current="page">Commits<kbd aria-hidden="true">c</kbd>
77</a>
78</li>
79<li>
80<a href="/diffs/refs" data-key="r" aria-keyshortcuts="r">Branches &amp; tags<kbd aria-hidden="true">r</kbd>
81</a>
82</li>
83<li>
84<a href="/diffs/merge-requests" data-key="m" aria-keyshortcuts="m">Merge requests<kbd aria-hidden="true">m</kbd>
85</a>
86</li>
87<li>
88<a href="/diffs/actions" data-key="a" aria-keyshortcuts="a">Actions<kbd aria-hidden="true">a</kbd>
89</a>
90</li>
91</ul>
92</nav>
93</header>
94<div class="work has-rail">
95<main id="main" tabindex="-1">
96<header class="show">
97<h1>add evil.go</h1>
98<pre class="msg">looks &lt;U+202E&gt;fine&lt;U+202C&gt;</pre>
99<dl class="kv show-kv">
100<dt>commit</dt>
101<dd>SHA40</dd>
102<dt>author</dt>
103<dd>T  · <time datetime="STAMP" title="STAMP">AGO</time> · STAMP</dd>
104<dt>parent</dt>
105<dd>
106<a href="/diffs/commit/SHA40">SHA7</a>
107</dd>
108</dl>
109</header>
110<div class="diff-tools" role="toolbar" aria-label="Diff view">
111<span class="dim">1 file · <span class="plus">+8</span>
112<span class="minus">-0</span>
113</span>
114<span class="grow">
115</span>
116<a href="/diffs/commit/SHA40?view=unified" class="btn vbtn" data-view="unified" aria-keyshortcuts="u" aria-current="true" data-fire="unified" :aria-current="q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false">Unified<kbd aria-hidden="true">u</kbd>
117</a>
118<a href="/diffs/commit/SHA40?view=split" class="btn vbtn" data-view="split" aria-keyshortcuts="d" data-fire="split" :aria-current="q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false">Split<kbd aria-hidden="true">d</kbd>
119</a>
120<button type="button" aria-keyshortcuts="x" data-js data-fire="collapse" class="btn">
121<span hx-live="this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'">Collapse all</span>
122<kbd aria-hidden="true">x</kbd>
123</button>
124</div>
125<p class="notice">this diff holds invisible characters (direction controls, zero-width characters). They are shown as <span class="inv">&lt;U+XXXX&gt;</span> markers, never applied.</p>
126<div id="diffs" data-diff="unified" hx-live="this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff">
127<details class="dfile" id="f1" data-file open>
128<summary>
129<span class="st">A</span>
130<span class="p">evil.go</span>
131<span class="plus">+8</span>
132<span class="minus">-0</span>
133</summary>
134<div class="dscroll">
135<table class="dt uni" aria-label="evil.go, unified">
136<tbody>
137<tr class="hunk">
138<td colspan="4">@@ -0,0 +1,8 @@</td>
139</tr>
140<tr class="add">
141<td class="ln">
142</td>
143<td class="ln">1</td>
144<td class="m">+</td>
145<td class="tx">package evil</td>
146</tr>
147<tr class="add">
148<td class="ln">
149</td>
150<td class="ln">2</td>
151<td class="m">+</td>
152<td class="tx">
153</td>
154</tr>
155<tr class="add">
156<td class="ln">
157</td>
158<td class="ln">3</td>
159<td class="m">+</td>
160<td class="tx">func admin(user string) bool {</td>
161</tr>
162<tr class="add">
163<td class="ln">
164</td>
165<td class="ln">4</td>
166<td class="m">+</td>
167<td class="tx">	if user == &#34;user<span class="inv" title="invisible character">&lt;U+202E&gt;</span>
168<span class="inv" title="invisible character">&lt;U+2066&gt;</span>// check<span class="inv" title="invisible character">&lt;U+2069&gt;</span>
169<span class="inv" title="invisible character">&lt;U+2066&gt;</span>&#34; {</td>
170</tr>
171<tr class="add">
172<td class="ln">
173</td>
174<td class="ln">5</td>
175<td class="m">+</td>
176<td class="tx">		return true // z<span class="inv" title="invisible character">&lt;U+200B&gt;</span>w</td>
177</tr>
178<tr class="add">
179<td class="ln">
180</td>
181<td class="ln">6</td>
182<td class="m">+</td>
183<td class="tx">	}</td>
184</tr>
185<tr class="add">
186<td class="ln">
187</td>
188<td class="ln">7</td>
189<td class="m">+</td>
190<td class="tx">	return false</td>
191</tr>
192<tr class="add">
193<td class="ln">
194</td>
195<td class="ln">8</td>
196<td class="m">+</td>
197<td class="tx">}</td>
198</tr>
199</tbody>
200</table>
201<table class="dt spl" aria-label="evil.go, split">
202<colgroup>
203<col class="c-ln">
204<col class="c-m">
205<col>
206<col class="c-ln">
207<col class="c-m">
208<col>
209</colgroup>
210<tbody>
211<tr class="hunk">
212<td colspan="6">@@ -0,0 +1,8 @@</td>
213</tr>
214<tr>
215<td class="ln none">
216</td>
217<td class="m none">
218</td>
219<td class="tx none">
220</td>
221<td class="ln add">1</td>
222<td class="m add">+</td>
223<td class="tx add">package evil</td>
224</tr>
225<tr>
226<td class="ln none">
227</td>
228<td class="m none">
229</td>
230<td class="tx none">
231</td>
232<td class="ln add">2</td>
233<td class="m add">+</td>
234<td class="tx add">
235</td>
236</tr>
237<tr>
238<td class="ln none">
239</td>
240<td class="m none">
241</td>
242<td class="tx none">
243</td>
244<td class="ln add">3</td>
245<td class="m add">+</td>
246<td class="tx add">func admin(user string) bool {</td>
247</tr>
248<tr>
249<td class="ln none">
250</td>
251<td class="m none">
252</td>
253<td class="tx none">
254</td>
255<td class="ln add">4</td>
256<td class="m add">+</td>
257<td class="tx add">	if user == &#34;user<span class="inv" title="invisible character">&lt;U+202E&gt;</span>
258<span class="inv" title="invisible character">&lt;U+2066&gt;</span>// check<span class="inv" title="invisible character">&lt;U+2069&gt;</span>
259<span class="inv" title="invisible character">&lt;U+2066&gt;</span>&#34; {</td>
260</tr>
261<tr>
262<td class="ln none">
263</td>
264<td class="m none">
265</td>
266<td class="tx none">
267</td>
268<td class="ln add">5</td>
269<td class="m add">+</td>
270<td class="tx add">		return true // z<span class="inv" title="invisible character">&lt;U+200B&gt;</span>w</td>
271</tr>
272<tr>
273<td class="ln none">
274</td>
275<td class="m none">
276</td>
277<td class="tx none">
278</td>
279<td class="ln add">6</td>
280<td class="m add">+</td>
281<td class="tx add">	}</td>
282</tr>
283<tr>
284<td class="ln none">
285</td>
286<td class="m none">
287</td>
288<td class="tx none">
289</td>
290<td class="ln add">7</td>
291<td class="m add">+</td>
292<td class="tx add">	return false</td>
293</tr>
294<tr>
295<td class="ln none">
296</td>
297<td class="m none">
298</td>
299<td class="tx none">
300</td>
301<td class="ln add">8</td>
302<td class="m add">+</td>
303<td class="tx add">}</td>
304</tr>
305</tbody>
306</table>
307</div>
308</details>
309</div>
310</main>
311<aside class="rail" aria-label="Context">
312<section aria-labelledby="r-files">
313<h2 id="r-files">Files <span class="count">1</span>
314</h2>
315<ol class="files" aria-label="Changed files">
316<li>
317<a href="#f1" hx-on:click="document.getElementById(this.hash.slice(1)).open = true">
318<span class="st" title="A">A</span>
319<span class="p" title="evil.go">evil.go</span>
320<span class="n">
321<span class="plus">+8</span>
322<span class="minus">-0</span>
323</span>
324<span class="b" aria-hidden="true">
325<span class="plus">++++++++++</span>
326<span class="minus">
327</span>
328</span>
329</a>
330</li>
331</ol>
332</section>
333</aside>
334</div>
335<footer class="foot">
336<span>ermite devel</span>
337<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
338<span class="foot-keys">
339<kbd>?</kbd> keyboard shortcuts</span>
340</footer>
341<div class="hint" role="status" aria-live="polite">
342<span class="hint-nav" :text="document.body.dataset.nav || ''">
343</span>
344<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
345</span>
346<span class="hint-flash" :text="document.body.dataset.flash || ''">
347</span>
348</div>
349<dialog id="panel-help" class="panel modal" aria-label="Keyboard shortcuts" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
350<div class="panel-head">
351<h2>Keyboard shortcuts</h2>
352<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
353<kbd>esc</kbd> close</button>
354</div>
355<dl class="keys">
356<div>
357<dt>
358<kbd>ctrl k</kbd>
359<kbd>:</kbd>
360</dt>
361<dd>go to a section, branch, tag, file or repository</dd>
362</div>
363<div>
364<dt>
365<kbd>?</kbd>
366</dt>
367<dd>this list</dd>
368</div>
369<div>
370<dt>
371<kbd>j</kbd>
372<kbd>k</kbd>
373</dt>
374<dd>move the row cursor down / up</dd>
375</div>
376<div>
377<dt>
378<kbd>enter</kbd>
379</dt>
380<dd>open the row under the cursor</dd>
381</div>
382<div>
383<dt>
384<kbd>g g</kbd>
385<kbd>G</kbd>
386</dt>
387<dd>first / last row</dd>
388</div>
389<div>
390<dt>
391<kbd>/</kbd>
392</dt>
393<dd>filter the list; on Files, find a file in the repository</dd>
394</div>
395<div>
396<dt>
397<kbd>b</kbd>
398</dt>
399<dd>switch branch or tag</dd>
400</div>
401<div>
402<dt>
403<kbd>s</kbd>
404<kbd>t</kbd>
405<kbd>c</kbd>
406<kbd>r</kbd>
407<kbd>m</kbd>
408</dt>
409<dd>tabs: summary, files, commits, branches &amp; tags, merge requests</dd>
410</div>
411<div>
412<dt>
413<kbd>g h</kbd>
414</dt>
415<dd>home</dd>
416</div>
417<div>
418<dt>
419<kbd>y</kbd>
420</dt>
421<dd>copy a permalink pinned to the commit</dd>
422</div>
423<div>
424<dt>
425<kbd>d</kbd>
426<kbd>u</kbd>
427<kbd>x</kbd>
428</dt>
429<dd>diff: split / unified / collapse or expand all</dd>
430</div>
431<div>
432<dt>
433<kbd>n</kbd>
434</dt>
435<dd>merge request: next note in the diff</dd>
436</div>
437<div>
438<dt>
439<kbd>esc</kbd>
440</dt>
441<dd>close a dialog, leave a field</dd>
442</div>
443</dl>
444</dialog>
445<dialog id="panel-refs" class="panel modal" aria-label="Switch ref" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
446<div class="panel-head">
447<label for="refs-filter" class="sr">filter branches and tags</label>
448<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
449<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
450<kbd>esc</kbd>
451</button>
452</div>
453<div class="panel-cols" data-picklist>
454<section aria-label="Branches">
455<h2>Branches <span class="count">2</span>
456</h2>
457<ul>
458<li>
459<a href="/diffs/tree/main">
460<span class="mark" aria-hidden="true">&nbsp;</span>main</a>
461</li>
462<li>
463<a href="/diffs/tree/side">
464<span class="mark" aria-hidden="true">&nbsp;</span>side</a>
465</li>
466</ul>
467</section>
468<section aria-label="Tags">
469<h2>Tags <span class="count">1</span>
470</h2>
471<ul>
472<li>
473<a href="/diffs/tree/v1.0.0">
474<span class="mark" aria-hidden="true">&nbsp;</span>v1.0.0</a>
475</li>
476</ul>
477</section>
478</div>
479</dialog>
480<dialog id="panel-cmd" class="panel modal" aria-label="Go to" hx-on:close="ermiteFinder.paletteClose()" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
481<div class="panel-head">
482<label for="cmd-q" class="sr">go to</label>
483<input id="cmd-q" type="search" placeholder="Go to a section, branch, tag, file or repository…" autocomplete="off" spellcheck="false" aria-controls="cmd-list" hx-on:input="ermite.cmdFilter(this); ermiteFinder.palette(this)" hx-on:keydown="ermite.cmdKey(event)">
484<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
485<kbd>esc</kbd>
486</button>
487</div>
488<ul id="cmd-list" class="cmd-list" aria-label="Targets">
489<li data-k="go home" data-cursor>
490<a href="/" tabindex="-1">
491<span class="lbl">home</span>
492<span class="k">go</span>
493</a>
494</li>
495<li data-k="section summary">
496<a href="/diffs" tabindex="-1">
497<span class="lbl">summary</span>
498<span class="k">section</span>
499</a>
500</li>
501<li data-k="section files">
502<a href="/diffs/tree/main" tabindex="-1">
503<span class="lbl">files</span>
504<span class="k">section</span>
505</a>
506</li>
507<li data-k="section commits">
508<a href="/diffs/commits/main" tabindex="-1">
509<span class="lbl">commits</span>
510<span class="k">section</span>
511</a>
512</li>
513<li data-k="section branches &amp; tags">
514<a href="/diffs/refs" tabindex="-1">
515<span class="lbl">branches &amp; tags</span>
516<span class="k">section</span>
517</a>
518</li>
519<li data-k="section merge requests">
520<a href="/diffs/merge-requests" tabindex="-1">
521<span class="lbl">merge requests</span>
522<span class="k">section</span>
523</a>
524</li>
525<li data-k="section actions">
526<a href="/diffs/actions" tabindex="-1">
527<span class="lbl">actions</span>
528<span class="k">section</span>
529</a>
530</li>
531<li data-k="branch main">
532<a href="/diffs/tree/main" tabindex="-1">
533<span class="lbl">main</span>
534<span class="k">branch</span>
535</a>
536</li>
537<li data-k="branch side">
538<a href="/diffs/tree/side" tabindex="-1">
539<span class="lbl">side</span>
540<span class="k">branch</span>
541</a>
542</li>
543<li data-k="tag v1.0.0">
544<a href="/diffs/tree/v1.0.0" tabindex="-1">
545<span class="lbl">v1.0.0</span>
546<span class="k">tag</span>
547</a>
548</li>
549</ul>
550<p class="panel-foot">
551<span>
552<kbd>↑</kbd>
553<kbd>↓</kbd> move</span>
554<span>
555<kbd>enter</kbd> open</span>
556<span>
557<kbd>esc</kbd> close</span>
558</p>
559</dialog>
560<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
561         k-k from:body -> ermite.move(-1);
562         k-top from:body -> ermite.edge(false);
563         k-bottom from:body -> ermite.edge(true);
564         k-open from:body -> ermite.open();
565         k-esc from:body -> ermite.closeDialogs();
566         k-help from:body -> ermite.dialog('panel-help');
567         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
568         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
569         k-filter from:body -> ermite.focusFilter();
570         k-gh from:body -> ermite.go('.brand');
571         k-s from:body -> ermite.tab('s');
572         k-t from:body -> ermite.tab('t');
573         k-c from:body -> ermite.tab('c');
574         k-r from:body -> ermite.tab('r');
575         k-m from:body -> ermite.tab('m');
576         k-next from:body -> ermite.nextNote();
577         k-split from:body -> ermite.layout('split');
578         k-unified from:body -> ermite.layout('unified');
579         k-collapse from:body -> ermite.collapse();
580         k-permalink from:body -> ermite.permalink()">
581</div>
582</body>
583</html>

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 2

Tags 45

↑↓ moveenter openesc close