v0.29.0 55fcc8f

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<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
9<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0c0c0c">
10<meta name="apple-mobile-web-app-title" content="ermite">
11<link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg">
12<link rel="apple-touch-icon" href="/-/static/app/apple-touch-icon.HASH.png">
13<link rel="manifest" href="/-/static/app/manifest.HASH.webmanifest">
14<link rel="preload" href="/-/static/fonts/atkinson-next.HASH.woff2" as="font" type="font/woff2" crossorigin>
15<link rel="stylesheet" href="/-/static/css/ermite.HASH.css">
16<meta name="htmx-config" content='{"history":false,"includeIndicatorCSS":false,"extensions":"sse, hx-live"}'>
17<script src="/-/static/js/htmx.min.HASH.js" defer>
18</script>
19<script src="/-/static/js/hx-live.min.HASH.js" defer>
20</script>
21<script src="/-/static/js/hx-sse.min.HASH.js" defer>
22</script>
23<script src="/-/static/js/store.HASH.js">
24</script>
25<script src="/-/static/js/ermite.HASH.js" defer>
26</script>
27<script src="/-/static/js/files.HASH.js" defer>
28</script>
29<script src="/-/static/js/passkey.HASH.js" defer>
30</script>
31<script src="/-/static/js/log.HASH.js" defer>
32</script>
33<script src="/-/static/js/lazy.HASH.js" defer>
34</script>
35</head>
36<body data-ref="" data-sha="SHA40" data-sel="" data-nav="" data-paths="/diffs/paths/SHA40" data-blob="/diffs/blob/SHA40">
37<a class="skip" href="#main">skip to content</a>
38<header class="hdr">
39<div class="hdr-top">
40<a class="brand" href="/" data-g="h" aria-label="home" title="home (g h)">
41<span class="brand-mark" aria-hidden="true">
42</span>
43</a>
44<nav class="crumbs" aria-label="Path">
45<ol>
46<li>
47<a href="/diffs">diffs</a>
48</li>
49<li>
50<a href="/diffs/commits/main">commit</a>
51</li>
52<li>
53<span aria-current="page">SHA7</span>
54</li>
55</ol>
56</nav>
57<div class="hdr-acts">
58<a class="btn ref" href="/diffs/refs" data-fire="refs" aria-keyshortcuts="b" title="switch branch or tag (b)">
59<span class="ico i-branch" aria-hidden="true">
60</span>
61<span class="ref-name">detached</span>
62<span class="sha">SHA7</span>
63</a>
64<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">
65<span class="ico i-search" aria-hidden="true">
66</span>
67<span class="search-label">Go to…</span>
68<kbd aria-hidden="true">ctrl k</kbd>
69</button>
70</div>
71</div>
72<nav class="tabs" aria-label="Sections">
73<ul>
74<li>
75<a href="/diffs" data-key="s" aria-keyshortcuts="s">Summary <kbd aria-hidden="true">s</kbd>
76</a>
77</li>
78<li>
79<a href="/diffs/tree/main" data-key="t" aria-keyshortcuts="t">Files <kbd aria-hidden="true">t</kbd>
80</a>
81</li>
82<li>
83<a href="/diffs/commits/main" data-key="c" aria-keyshortcuts="c" aria-current="page">Commits <kbd aria-hidden="true">c</kbd>
84</a>
85</li>
86<li>
87<a href="/diffs/refs" data-key="r" aria-keyshortcuts="r">Branches &amp; tags <kbd aria-hidden="true">r</kbd>
88</a>
89</li>
90<li>
91<a href="/diffs/merge-requests" data-key="m" aria-keyshortcuts="m">Merge requests <kbd aria-hidden="true">m</kbd>
92</a>
93</li>
94<li>
95<a href="/diffs/actions" data-key="a" aria-keyshortcuts="a">Actions <kbd aria-hidden="true">a</kbd>
96</a>
97</li>
98</ul>
99</nav>
100</header>
101<div class="work has-rail">
102<main id="main" tabindex="-1">
103<header class="show">
104<h1>add evil.go</h1>
105<pre class="msg">looks &lt;U+202E&gt;fine&lt;U+202C&gt;</pre>
106<dl class="kv show-kv">
107<dt>commit</dt>
108<dd>SHA40</dd>
109<dt>author</dt>
110<dd>T  · <time datetime="STAMP" title="STAMP">AGO</time> · STAMP</dd>
111<dt>parent</dt>
112<dd>
113<a href="/diffs/commit/SHA40">SHA7</a>
114</dd>
115<dt>signature</dt>
116<dd>
117<span class="pill sig sig-none" title="This commit is not signed">unsigned</span>
118</dd>
119</dl>
120</header>
121<div class="diff-tools" role="group" aria-label="Diff view">
122<span class="dim">1 file · <span class="plus">+8</span>
123<span class="minus">-0</span>
124</span>
125<span class="grow">
126</span>
127<details class="menu vmenu">
128<summary class="btn" aria-label="Diff view">
129<span hx-live="this.textContent = q('#diffs').attr['data-mobile'] !== 'true' && q('#diffs').attr['data-diff'] === 'split' ? 'Split' : 'Unified'">Unified</span>
130</summary>
131<div class="menu-pop" role="group" aria-label="Diff view">
132<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-mobile'] === 'true' ? 'unified' : q('#diffs').attr['data-diff']) === this.dataset.view ? 'true' : false">Unified<kbd aria-hidden="true">u</kbd>
133</a>
134<a href="/diffs/commit/SHA40?view=split" class="btn vbtn" data-view="split" aria-keyshortcuts="d" :aria-disabled="q('#diffs').attr['data-mobile'] === 'true' ? 'true' : false" :title="q('#diffs').attr['data-mobile'] === 'true' ? 'Split view requires a wider screen' : 'Split view'" data-fire="split" :aria-current="(q('#diffs').attr['data-mobile'] === 'true' ? 'unified' : q('#diffs').attr['data-diff']) === this.dataset.view ? 'true' : false">Split<kbd aria-hidden="true">d</kbd>
135</a>
136<button type="button" aria-keyshortcuts="x" data-js data-fire="collapse" class="btn">
137<span hx-live="this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'">Collapse all</span>
138<kbd aria-hidden="true">x</kbd>
139</button>
140</div>
141</details>
142</div>
143<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>
144<div id="diffs" data-diff="unified" hx-live="this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff">
145<details class="dfile lnw-2" id="f1" data-file="evil.go" open>
146<summary>
147<span class="st">A</span>
148<span class="p">evil.go</span>
149<span class="plus">+8</span>
150<span class="minus">-0</span>
151</summary>
152<div class="dscroll">
153<table class="dt uni" aria-label="evil.go, unified">
154<tbody>
155<tr class="hunk">
156<td colspan="4">@@ -0,0 +1,8 @@</td>
157</tr>
158<tr class="add">
159<td class="ln">
160</td>
161<td class="ln">1</td>
162<td class="m">+</td>
163<td class="tx chroma">
164<span class="kn">package</span> evil</td>
165</tr>
166<tr class="add">
167<td class="ln">
168</td>
169<td class="ln">2</td>
170<td class="m">+</td>
171<td class="tx chroma">
172</td>
173</tr>
174<tr class="add">
175<td class="ln">
176</td>
177<td class="ln">3</td>
178<td class="m">+</td>
179<td class="tx chroma">
180<span class="kd">func</span> admin(user string) bool {</td>
181</tr>
182<tr class="add">
183<td class="ln">
184</td>
185<td class="ln">4</td>
186<td class="m">+</td>
187<td class="tx chroma">
188<span class="k">if</span> user == <span class="s">&#34;user</span>
189<span class="inv" title="invisible character">&lt;U+202E&gt;</span>
190<span class="s">
191</span>
192<span class="inv" title="invisible character">&lt;U+2066&gt;</span>
193<span class="s">// check</span>
194<span class="inv" title="invisible character">&lt;U+2069&gt;</span>
195<span class="s">
196</span>
197<span class="inv" title="invisible character">&lt;U+2066&gt;</span>
198<span class="s">&#34;</span> {</td>
199</tr>
200<tr class="add">
201<td class="ln">
202</td>
203<td class="ln">5</td>
204<td class="m">+</td>
205<td class="tx chroma">
206<span class="k">return</span>
207<span class="kc">true</span>
208<span class="c1">// z</span>
209<span class="inv" title="invisible character">&lt;U+200B&gt;</span>
210<span class="c1">w</span>
211</td>
212</tr>
213<tr class="add">
214<td class="ln">
215</td>
216<td class="ln">6</td>
217<td class="m">+</td>
218<td class="tx chroma">	}</td>
219</tr>
220<tr class="add">
221<td class="ln">
222</td>
223<td class="ln">7</td>
224<td class="m">+</td>
225<td class="tx chroma">
226<span class="k">return</span>
227<span class="kc">false</span>
228</td>
229</tr>
230<tr class="add">
231<td class="ln">
232</td>
233<td class="ln">8</td>
234<td class="m">+</td>
235<td class="tx chroma">}</td>
236</tr>
237</tbody>
238</table>
239<table class="dt spl" aria-label="evil.go, split">
240<colgroup>
241<col class="c-ln">
242<col class="c-m">
243<col>
244<col class="c-ln">
245<col class="c-m">
246<col>
247</colgroup>
248<tbody>
249<tr class="hunk">
250<td colspan="6">@@ -0,0 +1,8 @@</td>
251</tr>
252<tr>
253<td class="ln none">
254</td>
255<td class="m none">
256</td>
257<td class="tx none">
258</td>
259<td class="ln add">1</td>
260<td class="m add">+</td>
261<td class="tx chroma add">
262<span class="kn">package</span> evil</td>
263</tr>
264<tr>
265<td class="ln none">
266</td>
267<td class="m none">
268</td>
269<td class="tx none">
270</td>
271<td class="ln add">2</td>
272<td class="m add">+</td>
273<td class="tx chroma add">
274</td>
275</tr>
276<tr>
277<td class="ln none">
278</td>
279<td class="m none">
280</td>
281<td class="tx none">
282</td>
283<td class="ln add">3</td>
284<td class="m add">+</td>
285<td class="tx chroma add">
286<span class="kd">func</span> admin(user string) bool {</td>
287</tr>
288<tr>
289<td class="ln none">
290</td>
291<td class="m none">
292</td>
293<td class="tx none">
294</td>
295<td class="ln add">4</td>
296<td class="m add">+</td>
297<td class="tx chroma add">
298<span class="k">if</span> user == <span class="s">&#34;user</span>
299<span class="inv" title="invisible character">&lt;U+202E&gt;</span>
300<span class="s">
301</span>
302<span class="inv" title="invisible character">&lt;U+2066&gt;</span>
303<span class="s">// check</span>
304<span class="inv" title="invisible character">&lt;U+2069&gt;</span>
305<span class="s">
306</span>
307<span class="inv" title="invisible character">&lt;U+2066&gt;</span>
308<span class="s">&#34;</span> {</td>
309</tr>
310<tr>
311<td class="ln none">
312</td>
313<td class="m none">
314</td>
315<td class="tx none">
316</td>
317<td class="ln add">5</td>
318<td class="m add">+</td>
319<td class="tx chroma add">
320<span class="k">return</span>
321<span class="kc">true</span>
322<span class="c1">// z</span>
323<span class="inv" title="invisible character">&lt;U+200B&gt;</span>
324<span class="c1">w</span>
325</td>
326</tr>
327<tr>
328<td class="ln none">
329</td>
330<td class="m none">
331</td>
332<td class="tx none">
333</td>
334<td class="ln add">6</td>
335<td class="m add">+</td>
336<td class="tx chroma add">	}</td>
337</tr>
338<tr>
339<td class="ln none">
340</td>
341<td class="m none">
342</td>
343<td class="tx none">
344</td>
345<td class="ln add">7</td>
346<td class="m add">+</td>
347<td class="tx chroma add">
348<span class="k">return</span>
349<span class="kc">false</span>
350</td>
351</tr>
352<tr>
353<td class="ln none">
354</td>
355<td class="m none">
356</td>
357<td class="tx none">
358</td>
359<td class="ln add">8</td>
360<td class="m add">+</td>
361<td class="tx chroma add">}</td>
362</tr>
363</tbody>
364</table>
365</div>
366</details>
367</div>
368</main>
369<aside class="rail" aria-label="Context">
370<section aria-labelledby="r-files">
371<h2 id="r-files">Files <span class="count">1</span>
372</h2>
373<ol class="files" aria-label="Changed files">
374<li>
375<a href="#f1" title="evil.go" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
376<span class="st" data-st="A" title="added">A</span>
377<span class="nm">
378<span class="p">evil.go</span>
379<span class="d">
380<bdi>
381</bdi>
382</span>
383</span>
384<span class="n">
385<span class="plus">+8</span>
386<span class="minus">-0</span>
387</span>
388</a>
389</li>
390</ol>
391</section>
392</aside>
393</div>
394<footer class="foot">
395<span>ermite devel</span>
396<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
397<button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?">
398<kbd aria-hidden="true">?</kbd> keyboard shortcuts</button>
399</footer>
400<div class="hint" role="status" aria-live="polite">
401<span class="hint-nav" :text="document.body.dataset.nav || ''">
402</span>
403<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
404</span>
405<span class="hint-flash" :text="document.body.dataset.flash || ''">
406</span>
407</div>
408<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()">
409<div class="panel-head">
410<h2>Keyboard shortcuts</h2>
411<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
412<kbd>esc</kbd> close</button>
413</div>
414<div class="keys-pref">
415<label>
416<input type="checkbox" id="keys-off" aria-describedby="keys-note" hx-on:change="ermite.setKeysOff(this.checked)"> Turn off single-key shortcuts</label>
417<p id="keys-note" class="dim">Single-key shortcuts are on. ctrl k and esc work whatever this says.</p>
418</div>
419<dl class="keys">
420<div>
421<dt>
422<kbd>ctrl k</kbd>
423<kbd>:</kbd>
424</dt>
425<dd>go to a section, branch, tag, file or repository</dd>
426</div>
427<div>
428<dt>
429<kbd>?</kbd>
430</dt>
431<dd>this list</dd>
432</div>
433<div>
434<dt>
435<kbd>j</kbd>
436<kbd>k</kbd>
437</dt>
438<dd>move the row cursor down / up</dd>
439</div>
440<div>
441<dt>
442<kbd>enter</kbd>
443</dt>
444<dd>open the row under the cursor; on Files, a directory opens or closes in place</dd>
445</div>
446<div>
447<dt>
448<kbd>↑</kbd>
449<kbd>↓</kbd>
450<kbd>←</kbd>
451<kbd>→</kbd>
452<kbd>home</kbd>
453<kbd>end</kbd>
454</dt>
455<dd>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</dd>
456</div>
457<div>
458<dt>
459<kbd>l</kbd>
460<kbd>h</kbd>
461</dt>
462<dd>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</dd>
463</div>
464<div>
465<dt>
466<kbd>g g</kbd>
467<kbd>G</kbd>
468</dt>
469<dd>first / last row</dd>
470</div>
471<div>
472<dt>
473<kbd>/</kbd>
474</dt>
475<dd>filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)</dd>
476</div>
477<div>
478<dt>
479<kbd>b</kbd>
480</dt>
481<dd>switch branch or tag</dd>
482</div>
483<div>
484<dt>
485<kbd>s</kbd>
486<kbd>t</kbd>
487<kbd>c</kbd>
488<kbd>r</kbd>
489<kbd>m</kbd>
490<kbd>i</kbd>
491</dt>
492<dd>tabs: summary, files, commits, branches &amp; tags, merge requests, issues</dd>
493</div>
494<div>
495<dt>
496<kbd>g h</kbd>
497</dt>
498<dd>home</dd>
499</div>
500<div>
501<dt>
502<kbd>w</kbd>
503</dt>
504<dd>wide mode: use the whole width of the screen, or not (remembered)</dd>
505</div>
506<div>
507<dt>
508<kbd>y</kbd>
509</dt>
510<dd>copy a permalink pinned to the commit</dd>
511</div>
512<div>
513<dt>
514<kbd>d</kbd>
515<kbd>u</kbd>
516<kbd>x</kbd>
517</dt>
518<dd>diff: split / unified / collapse or expand all</dd>
519</div>
520<div>
521<dt>
522<kbd>e</kbd>
523<kbd>E</kbd>
524</dt>
525<dd>diff: the whole file in view / every file, with the lines the hunks hide</dd>
526</div>
527<div>
528<dt>
529<kbd>n</kbd>
530</dt>
531<dd>merge request: next note in the diff</dd>
532</div>
533<div>
534<dt>
535<kbd>esc</kbd>
536</dt>
537<dd>close a dialog, leave a field</dd>
538</div>
539</dl>
540</dialog>
541<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()">
542<div class="panel-head">
543<label for="refs-filter" class="sr">filter branches and tags</label>
544<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
545<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
546<kbd>esc</kbd>
547</button>
548</div>
549<div class="panel-cols" data-picklist>
550<section aria-label="Branches">
551<h2>Branches <span class="count">2</span>
552</h2>
553<ul>
554<li>
555<a href="/diffs/tree/main">
556<span class="mark" aria-hidden="true">&nbsp;</span>main</a>
557</li>
558<li>
559<a href="/diffs/tree/side">
560<span class="mark" aria-hidden="true">&nbsp;</span>side</a>
561</li>
562</ul>
563</section>
564<section aria-label="Tags">
565<h2>Tags <span class="count">1</span>
566</h2>
567<ul>
568<li>
569<a href="/diffs/tree/v1.0.0">
570<span class="mark" aria-hidden="true">&nbsp;</span>v1.0.0</a>
571</li>
572</ul>
573</section>
574</div>
575</dialog>
576<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()">
577<div class="panel-head">
578<label for="cmd-q" class="sr">go to</label>
579<input id="cmd-q" type="search" placeholder="Go to a section, branch, tag, file or repository…" autocomplete="off" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="true" aria-controls="cmd-list" aria-activedescendant="cmd-o0" hx-on:input="ermite.cmdFilter(this); ermiteFinder.palette(this)" hx-on:keydown="ermite.cmdKey(event)">
580<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
581<kbd>esc</kbd>
582</button>
583</div>
584<ul id="cmd-list" class="cmd-list" role="listbox" aria-label="Targets">
585<li id="cmd-o0" role="option" aria-selected="true" data-k="go home" data-cursor>
586<a href="/" tabindex="-1">
587<span class="lbl">home</span>
588<span class="k">go</span>
589</a>
590</li>
591<li id="cmd-o1" role="option" aria-selected="false" data-k="section summary">
592<a href="/diffs" tabindex="-1">
593<span class="lbl">summary</span>
594<span class="k">section</span>
595</a>
596</li>
597<li id="cmd-o2" role="option" aria-selected="false" data-k="section files">
598<a href="/diffs/tree/main" tabindex="-1">
599<span class="lbl">files</span>
600<span class="k">section</span>
601</a>
602</li>
603<li id="cmd-o3" role="option" aria-selected="false" data-k="section commits">
604<a href="/diffs/commits/main" tabindex="-1">
605<span class="lbl">commits</span>
606<span class="k">section</span>
607</a>
608</li>
609<li id="cmd-o4" role="option" aria-selected="false" data-k="section branches &amp; tags">
610<a href="/diffs/refs" tabindex="-1">
611<span class="lbl">branches &amp; tags</span>
612<span class="k">section</span>
613</a>
614</li>
615<li id="cmd-o5" role="option" aria-selected="false" data-k="section merge requests">
616<a href="/diffs/merge-requests" tabindex="-1">
617<span class="lbl">merge requests</span>
618<span class="k">section</span>
619</a>
620</li>
621<li id="cmd-o6" role="option" aria-selected="false" data-k="section actions">
622<a href="/diffs/actions" tabindex="-1">
623<span class="lbl">actions</span>
624<span class="k">section</span>
625</a>
626</li>
627<li id="cmd-o7" role="option" aria-selected="false" data-k="branch main">
628<a href="/diffs/tree/main" tabindex="-1">
629<span class="lbl">main</span>
630<span class="k">branch</span>
631</a>
632</li>
633<li id="cmd-o8" role="option" aria-selected="false" data-k="branch side">
634<a href="/diffs/tree/side" tabindex="-1">
635<span class="lbl">side</span>
636<span class="k">branch</span>
637</a>
638</li>
639<li id="cmd-o9" role="option" aria-selected="false" data-k="tag v1.0.0">
640<a href="/diffs/tree/v1.0.0" tabindex="-1">
641<span class="lbl">v1.0.0</span>
642<span class="k">tag</span>
643</a>
644</li>
645<li id="cmd-o10" role="option" aria-selected="false" data-k="action turn single-key shortcuts on off keyboard">
646<a href="#" data-fire="keys" tabindex="-1">
647<span class="lbl">turn single-key shortcuts off</span>
648<span class="k">action</span>
649</a>
650</li>
651</ul>
652<p class="panel-foot">
653<span>
654<kbd>↑</kbd>
655<kbd>↓</kbd> move</span>
656<span>
657<kbd>enter</kbd> open</span>
658<span>
659<kbd>esc</kbd> close</span>
660</p>
661</dialog>
662<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
663         k-k from:body -> ermite.move(-1);
664         k-top from:body -> ermite.edge(false);
665         k-bottom from:body -> ermite.edge(true);
666         k-open from:body -> ermite.open();
667         k-right from:body -> ermite.rail(true);
668         k-left from:body -> ermite.rail(false);
669         k-esc from:body -> ermite.closeDialogs();
670         k-help from:body -> ermite.dialog('panel-help');
671         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
672         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
673         k-filter from:body -> ermite.focusFilter();
674         k-gh from:body -> ermite.go('.brand');
675         k-s from:body -> ermite.tab('s');
676         k-t from:body -> ermite.tab('t');
677         k-c from:body -> ermite.tab('c');
678         k-r from:body -> ermite.tab('r');
679         k-m from:body -> ermite.tab('m');
680         k-i from:body -> ermite.tab('i');
681         k-next from:body -> ermite.nextNote();
682         k-split from:body -> ermite.layout('split');
683         k-unified from:body -> ermite.layout('unified');
684         k-collapse from:body -> ermite.collapse();
685         k-wide from:body -> window.ermiteWide.toggle();
686         k-expand from:body -> ermite.expandFile();
687         k-expandAll from:body -> ermite.expandAll();
688         k-permalink from:body -> ermite.permalink();
689         k-merge from:body -> window.ermiteMR?.openMerge();
690         k-read from:body -> window.ermiteMR?.markRead();
691         k-gf from:body -> window.ermiteMR?.focusFiles();
692         k-keys from:body -> ermite.toggleKeys()">
693</div>
694</body>
695</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