v0.28.0 fca9155

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