v0.32.0 53e25a3

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