v0.21.0 ef38ad0

commit-root.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 root: the first files · 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/ermite.HASH.js" defer>
24</script>
25<script src="/-/static/js/files.HASH.js" defer>
26</script>
27<script src="/-/static/js/passkey.HASH.js" defer>
28</script>
29<script src="/-/static/js/log.HASH.js" defer>
30</script>
31</head>
32<body data-ref="" data-sha="SHA40" data-sel="" data-nav="" data-paths="/diffs/paths/SHA40" data-blob="/diffs/blob/SHA40">
33<a class="skip" href="#main">skip to content</a>
34<header class="hdr">
35<div class="hdr-top">
36<a class="brand" href="/" data-g="h" aria-label="home" title="home (g h)">
37<span class="brand-mark" aria-hidden="true">
38</span>
39</a>
40<nav class="crumbs" aria-label="Path">
41<ol>
42<li>
43<a href="/diffs">diffs</a>
44</li>
45<li>
46<a href="/diffs/commits/main">commit</a>
47</li>
48<li>
49<span aria-current="page">SHA7</span>
50</li>
51</ol>
52</nav>
53<div class="hdr-acts">
54<a class="btn ref" href="/diffs/refs" data-fire="refs" aria-keyshortcuts="b" title="switch branch or tag (b)">
55<span class="ico i-branch" aria-hidden="true">
56</span>
57<span class="ref-name">detached</span>
58<span class="sha">SHA7</span>
59</a>
60<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">
61<span class="ico i-search" aria-hidden="true">
62</span>
63<span class="search-label">Go to…</span>
64<kbd aria-hidden="true">ctrl k</kbd>
65</button>
66<button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app">
67<span class="ico i-download" aria-hidden="true">
68</span>
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>root: the first files</h1>
105<dl class="kv show-kv">
106<dt>commit</dt>
107<dd>SHA40</dd>
108<dt>author</dt>
109<dd>T  · <time datetime="STAMP" title="STAMP">AGO</time> · STAMP</dd>
110<dt>parent</dt>
111<dd>none (root commit) </dd>
112</dl>
113</header>
114<div class="diff-tools" role="group" aria-label="Diff view">
115<span class="dim">5 files · <span class="plus">+11</span>
116<span class="minus">-0</span>
117</span>
118<span class="grow">
119</span>
120<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>
121</a>
122<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>
123</a>
124<button type="button" aria-keyshortcuts="x" data-js data-fire="collapse" class="btn">
125<span hx-live="this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'">Collapse all</span>
126<kbd aria-hidden="true">x</kbd>
127</button>
128</div>
129<div id="diffs" data-diff="unified" hx-live="this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff">
130<details class="dfile lnw-2" id="f1" data-file open>
131<summary>
132<span class="st">A</span>
133<span class="p">a.txt</span>
134<span class="plus">+5</span>
135<span class="minus">-0</span>
136</summary>
137<div class="dscroll">
138<table class="dt uni" aria-label="a.txt, unified">
139<tbody>
140<tr class="hunk">
141<td colspan="4">@@ -0,0 +1,5 @@</td>
142</tr>
143<tr class="add">
144<td class="ln">
145</td>
146<td class="ln">1</td>
147<td class="m">+</td>
148<td class="tx">one</td>
149</tr>
150<tr class="add">
151<td class="ln">
152</td>
153<td class="ln">2</td>
154<td class="m">+</td>
155<td class="tx">two</td>
156</tr>
157<tr class="add">
158<td class="ln">
159</td>
160<td class="ln">3</td>
161<td class="m">+</td>
162<td class="tx">three</td>
163</tr>
164<tr class="add">
165<td class="ln">
166</td>
167<td class="ln">4</td>
168<td class="m">+</td>
169<td class="tx">four</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">five</td>
177</tr>
178</tbody>
179</table>
180<table class="dt spl" aria-label="a.txt, split">
181<colgroup>
182<col class="c-ln">
183<col class="c-m">
184<col>
185<col class="c-ln">
186<col class="c-m">
187<col>
188</colgroup>
189<tbody>
190<tr class="hunk">
191<td colspan="6">@@ -0,0 +1,5 @@</td>
192</tr>
193<tr>
194<td class="ln none">
195</td>
196<td class="m none">
197</td>
198<td class="tx none">
199</td>
200<td class="ln add">1</td>
201<td class="m add">+</td>
202<td class="tx add">one</td>
203</tr>
204<tr>
205<td class="ln none">
206</td>
207<td class="m none">
208</td>
209<td class="tx none">
210</td>
211<td class="ln add">2</td>
212<td class="m add">+</td>
213<td class="tx add">two</td>
214</tr>
215<tr>
216<td class="ln none">
217</td>
218<td class="m none">
219</td>
220<td class="tx none">
221</td>
222<td class="ln add">3</td>
223<td class="m add">+</td>
224<td class="tx add">three</td>
225</tr>
226<tr>
227<td class="ln none">
228</td>
229<td class="m none">
230</td>
231<td class="tx none">
232</td>
233<td class="ln add">4</td>
234<td class="m add">+</td>
235<td class="tx add">four</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">5</td>
245<td class="m add">+</td>
246<td class="tx add">five</td>
247</tr>
248</tbody>
249</table>
250</div>
251</details>
252<details class="dfile lnw-2" id="f2" data-file open>
253<summary>
254<span class="st">A</span>
255<span class="p">gone.txt</span>
256<span class="plus">+1</span>
257<span class="minus">-0</span>
258</summary>
259<div class="dscroll">
260<table class="dt uni" aria-label="gone.txt, unified">
261<tbody>
262<tr class="hunk">
263<td colspan="4">@@ -0,0 +1,1 @@</td>
264</tr>
265<tr class="add">
266<td class="ln">
267</td>
268<td class="ln">1</td>
269<td class="m">+</td>
270<td class="tx">bye</td>
271</tr>
272</tbody>
273</table>
274<table class="dt spl" aria-label="gone.txt, split">
275<colgroup>
276<col class="c-ln">
277<col class="c-m">
278<col>
279<col class="c-ln">
280<col class="c-m">
281<col>
282</colgroup>
283<tbody>
284<tr class="hunk">
285<td colspan="6">@@ -0,0 +1,1 @@</td>
286</tr>
287<tr>
288<td class="ln none">
289</td>
290<td class="m none">
291</td>
292<td class="tx none">
293</td>
294<td class="ln add">1</td>
295<td class="m add">+</td>
296<td class="tx add">bye</td>
297</tr>
298</tbody>
299</table>
300</div>
301</details>
302<details class="dfile lnw-2" id="f3" data-file>
303<summary>
304<span class="st">A</span>
305<span class="p">logo.bin</span>
306<span class="plus">+0</span>
307<span class="minus">-0</span>
308<span class="note">binary file: no text diff</span>
309</summary>
310<p class="note pad">binary file: no text diff</p>
311</details>
312<details class="dfile lnw-2" id="f4" data-file open>
313<summary>
314<span class="st">A</span>
315<span class="p">old.txt</span>
316<span class="plus">+3</span>
317<span class="minus">-0</span>
318</summary>
319<div class="dscroll">
320<table class="dt uni" aria-label="old.txt, unified">
321<tbody>
322<tr class="hunk">
323<td colspan="4">@@ -0,0 +1,3 @@</td>
324</tr>
325<tr class="add">
326<td class="ln">
327</td>
328<td class="ln">1</td>
329<td class="m">+</td>
330<td class="tx">keep me</td>
331</tr>
332<tr class="add">
333<td class="ln">
334</td>
335<td class="ln">2</td>
336<td class="m">+</td>
337<td class="tx">keep me too</td>
338</tr>
339<tr class="add">
340<td class="ln">
341</td>
342<td class="ln">3</td>
343<td class="m">+</td>
344<td class="tx">and me</td>
345</tr>
346</tbody>
347</table>
348<table class="dt spl" aria-label="old.txt, split">
349<colgroup>
350<col class="c-ln">
351<col class="c-m">
352<col>
353<col class="c-ln">
354<col class="c-m">
355<col>
356</colgroup>
357<tbody>
358<tr class="hunk">
359<td colspan="6">@@ -0,0 +1,3 @@</td>
360</tr>
361<tr>
362<td class="ln none">
363</td>
364<td class="m none">
365</td>
366<td class="tx none">
367</td>
368<td class="ln add">1</td>
369<td class="m add">+</td>
370<td class="tx add">keep me</td>
371</tr>
372<tr>
373<td class="ln none">
374</td>
375<td class="m none">
376</td>
377<td class="tx none">
378</td>
379<td class="ln add">2</td>
380<td class="m add">+</td>
381<td class="tx add">keep me too</td>
382</tr>
383<tr>
384<td class="ln none">
385</td>
386<td class="m none">
387</td>
388<td class="tx none">
389</td>
390<td class="ln add">3</td>
391<td class="m add">+</td>
392<td class="tx add">and me</td>
393</tr>
394</tbody>
395</table>
396</div>
397</details>
398<details class="dfile lnw-2" id="f5" data-file open>
399<summary>
400<span class="st">A</span>
401<span class="p">run.sh</span>
402<span class="plus">+2</span>
403<span class="minus">-0</span>
404</summary>
405<div class="dscroll">
406<table class="dt uni" aria-label="run.sh, unified">
407<tbody>
408<tr class="hunk">
409<td colspan="4">@@ -0,0 +1,2 @@</td>
410</tr>
411<tr class="add">
412<td class="ln">
413</td>
414<td class="ln">1</td>
415<td class="m">+</td>
416<td class="tx">#!/bin/sh</td>
417</tr>
418<tr class="add">
419<td class="ln">
420</td>
421<td class="ln">2</td>
422<td class="m">+</td>
423<td class="tx">echo hi</td>
424</tr>
425</tbody>
426</table>
427<table class="dt spl" aria-label="run.sh, split">
428<colgroup>
429<col class="c-ln">
430<col class="c-m">
431<col>
432<col class="c-ln">
433<col class="c-m">
434<col>
435</colgroup>
436<tbody>
437<tr class="hunk">
438<td colspan="6">@@ -0,0 +1,2 @@</td>
439</tr>
440<tr>
441<td class="ln none">
442</td>
443<td class="m none">
444</td>
445<td class="tx none">
446</td>
447<td class="ln add">1</td>
448<td class="m add">+</td>
449<td class="tx add">#!/bin/sh</td>
450</tr>
451<tr>
452<td class="ln none">
453</td>
454<td class="m none">
455</td>
456<td class="tx none">
457</td>
458<td class="ln add">2</td>
459<td class="m add">+</td>
460<td class="tx add">echo hi</td>
461</tr>
462</tbody>
463</table>
464</div>
465</details>
466</div>
467</main>
468<aside class="rail" aria-label="Context">
469<section aria-labelledby="r-files">
470<h2 id="r-files">Files <span class="count">5</span>
471</h2>
472<ol class="files" aria-label="Changed files">
473<li>
474<a href="#f1" title="a.txt" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
475<span class="st" data-st="A" title="added">A</span>
476<span class="nm">
477<span class="p">a.txt</span>
478<span class="d">
479<bdi>
480</bdi>
481</span>
482</span>
483<span class="n">
484<span class="plus">+5</span>
485<span class="minus">-0</span>
486</span>
487</a>
488</li>
489<li>
490<a href="#f2" title="gone.txt" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
491<span class="st" data-st="A" title="added">A</span>
492<span class="nm">
493<span class="p">gone.txt</span>
494<span class="d">
495<bdi>
496</bdi>
497</span>
498</span>
499<span class="n">
500<span class="plus">+1</span>
501<span class="minus">-0</span>
502</span>
503</a>
504</li>
505<li>
506<a href="#f3" title="logo.bin" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
507<span class="st" data-st="A" title="added">A</span>
508<span class="nm">
509<span class="p">logo.bin</span>
510<span class="d">
511<bdi>
512</bdi>
513</span>
514</span>
515<span class="n mute">bin</span>
516</a>
517</li>
518<li>
519<a href="#f4" title="old.txt" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
520<span class="st" data-st="A" title="added">A</span>
521<span class="nm">
522<span class="p">old.txt</span>
523<span class="d">
524<bdi>
525</bdi>
526</span>
527</span>
528<span class="n">
529<span class="plus">+3</span>
530<span class="minus">-0</span>
531</span>
532</a>
533</li>
534<li>
535<a href="#f5" title="run.sh" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
536<span class="st" data-st="A" title="added">A</span>
537<span class="nm">
538<span class="p">run.sh</span>
539<span class="d">
540<bdi>
541</bdi>
542</span>
543</span>
544<span class="n">
545<span class="plus">+2</span>
546<span class="minus">-0</span>
547</span>
548</a>
549</li>
550</ol>
551</section>
552</aside>
553</div>
554<footer class="foot">
555<span>ermite devel</span>
556<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
557<button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?">
558<kbd aria-hidden="true">?</kbd> keyboard shortcuts</button>
559</footer>
560<div class="hint" role="status" aria-live="polite">
561<span class="hint-nav" :text="document.body.dataset.nav || ''">
562</span>
563<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
564</span>
565<span class="hint-flash" :text="document.body.dataset.flash || ''">
566</span>
567</div>
568<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()">
569<div class="panel-head">
570<h2>Keyboard shortcuts</h2>
571<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
572<kbd>esc</kbd> close</button>
573</div>
574<div class="keys-pref">
575<label>
576<input type="checkbox" id="keys-off" aria-describedby="keys-note" hx-on:change="ermite.setKeysOff(this.checked)"> Turn off single-key shortcuts</label>
577<p id="keys-note" class="dim">Single-key shortcuts are on. ctrl k and esc work whatever this says.</p>
578</div>
579<dl class="keys">
580<div>
581<dt>
582<kbd>ctrl k</kbd>
583<kbd>:</kbd>
584</dt>
585<dd>go to a section, branch, tag, file or repository</dd>
586</div>
587<div>
588<dt>
589<kbd>?</kbd>
590</dt>
591<dd>this list</dd>
592</div>
593<div>
594<dt>
595<kbd>j</kbd>
596<kbd>k</kbd>
597</dt>
598<dd>move the row cursor down / up</dd>
599</div>
600<div>
601<dt>
602<kbd>enter</kbd>
603</dt>
604<dd>open the row under the cursor; on Files, a directory opens or closes in place</dd>
605</div>
606<div>
607<dt>
608<kbd>↑</kbd>
609<kbd>↓</kbd>
610<kbd>←</kbd>
611<kbd>→</kbd>
612<kbd>home</kbd>
613<kbd>end</kbd>
614</dt>
615<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>
616</div>
617<div>
618<dt>
619<kbd>l</kbd>
620<kbd>h</kbd>
621</dt>
622<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>
623</div>
624<div>
625<dt>
626<kbd>g g</kbd>
627<kbd>G</kbd>
628</dt>
629<dd>first / last row</dd>
630</div>
631<div>
632<dt>
633<kbd>/</kbd>
634</dt>
635<dd>filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)</dd>
636</div>
637<div>
638<dt>
639<kbd>b</kbd>
640</dt>
641<dd>switch branch or tag</dd>
642</div>
643<div>
644<dt>
645<kbd>s</kbd>
646<kbd>t</kbd>
647<kbd>c</kbd>
648<kbd>r</kbd>
649<kbd>m</kbd>
650</dt>
651<dd>tabs: summary, files, commits, branches &amp; tags, merge requests</dd>
652</div>
653<div>
654<dt>
655<kbd>g h</kbd>
656</dt>
657<dd>home</dd>
658</div>
659<div>
660<dt>
661<kbd>y</kbd>
662</dt>
663<dd>copy a permalink pinned to the commit</dd>
664</div>
665<div>
666<dt>
667<kbd>d</kbd>
668<kbd>u</kbd>
669<kbd>x</kbd>
670</dt>
671<dd>diff: split / unified / collapse or expand all</dd>
672</div>
673<div>
674<dt>
675<kbd>e</kbd>
676<kbd>E</kbd>
677</dt>
678<dd>diff: the whole file in view / every file, with the lines the hunks hide</dd>
679</div>
680<div>
681<dt>
682<kbd>n</kbd>
683</dt>
684<dd>merge request: next note in the diff</dd>
685</div>
686<div>
687<dt>
688<kbd>esc</kbd>
689</dt>
690<dd>close a dialog, leave a field</dd>
691</div>
692</dl>
693</dialog>
694<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()">
695<div class="panel-head">
696<label for="refs-filter" class="sr">filter branches and tags</label>
697<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
698<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
699<kbd>esc</kbd>
700</button>
701</div>
702<div class="panel-cols" data-picklist>
703<section aria-label="Branches">
704<h2>Branches <span class="count">2</span>
705</h2>
706<ul>
707<li>
708<a href="/diffs/tree/main">
709<span class="mark" aria-hidden="true">&nbsp;</span>main</a>
710</li>
711<li>
712<a href="/diffs/tree/side">
713<span class="mark" aria-hidden="true">&nbsp;</span>side</a>
714</li>
715</ul>
716</section>
717<section aria-label="Tags">
718<h2>Tags <span class="count">1</span>
719</h2>
720<ul>
721<li>
722<a href="/diffs/tree/v1.0.0">
723<span class="mark" aria-hidden="true">&nbsp;</span>v1.0.0</a>
724</li>
725</ul>
726</section>
727</div>
728</dialog>
729<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()">
730<div class="panel-head">
731<label for="cmd-q" class="sr">go to</label>
732<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)">
733<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
734<kbd>esc</kbd>
735</button>
736</div>
737<ul id="cmd-list" class="cmd-list" role="listbox" aria-label="Targets">
738<li id="cmd-o0" role="option" aria-selected="true" data-k="go home" data-cursor>
739<a href="/" tabindex="-1">
740<span class="lbl">home</span>
741<span class="k">go</span>
742</a>
743</li>
744<li id="cmd-o1" role="option" aria-selected="false" data-k="section summary">
745<a href="/diffs" tabindex="-1">
746<span class="lbl">summary</span>
747<span class="k">section</span>
748</a>
749</li>
750<li id="cmd-o2" role="option" aria-selected="false" data-k="section files">
751<a href="/diffs/tree/main" tabindex="-1">
752<span class="lbl">files</span>
753<span class="k">section</span>
754</a>
755</li>
756<li id="cmd-o3" role="option" aria-selected="false" data-k="section commits">
757<a href="/diffs/commits/main" tabindex="-1">
758<span class="lbl">commits</span>
759<span class="k">section</span>
760</a>
761</li>
762<li id="cmd-o4" role="option" aria-selected="false" data-k="section branches &amp; tags">
763<a href="/diffs/refs" tabindex="-1">
764<span class="lbl">branches &amp; tags</span>
765<span class="k">section</span>
766</a>
767</li>
768<li id="cmd-o5" role="option" aria-selected="false" data-k="section merge requests">
769<a href="/diffs/merge-requests" tabindex="-1">
770<span class="lbl">merge requests</span>
771<span class="k">section</span>
772</a>
773</li>
774<li id="cmd-o6" role="option" aria-selected="false" data-k="section actions">
775<a href="/diffs/actions" tabindex="-1">
776<span class="lbl">actions</span>
777<span class="k">section</span>
778</a>
779</li>
780<li id="cmd-o7" role="option" aria-selected="false" data-k="branch main">
781<a href="/diffs/tree/main" tabindex="-1">
782<span class="lbl">main</span>
783<span class="k">branch</span>
784</a>
785</li>
786<li id="cmd-o8" role="option" aria-selected="false" data-k="branch side">
787<a href="/diffs/tree/side" tabindex="-1">
788<span class="lbl">side</span>
789<span class="k">branch</span>
790</a>
791</li>
792<li id="cmd-o9" role="option" aria-selected="false" data-k="tag v1.0.0">
793<a href="/diffs/tree/v1.0.0" tabindex="-1">
794<span class="lbl">v1.0.0</span>
795<span class="k">tag</span>
796</a>
797</li>
798<li id="cmd-o10" role="option" aria-selected="false" data-k="action turn single-key shortcuts on off keyboard">
799<a href="#" data-fire="keys" tabindex="-1">
800<span class="lbl">turn single-key shortcuts off</span>
801<span class="k">action</span>
802</a>
803</li>
804</ul>
805<p class="panel-foot">
806<span>
807<kbd>↑</kbd>
808<kbd>↓</kbd> move</span>
809<span>
810<kbd>enter</kbd> open</span>
811<span>
812<kbd>esc</kbd> close</span>
813</p>
814</dialog>
815<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
816         k-k from:body -> ermite.move(-1);
817         k-top from:body -> ermite.edge(false);
818         k-bottom from:body -> ermite.edge(true);
819         k-open from:body -> ermite.open();
820         k-right from:body -> ermite.rail(true);
821         k-left from:body -> ermite.rail(false);
822         k-esc from:body -> ermite.closeDialogs();
823         k-help from:body -> ermite.dialog('panel-help');
824         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
825         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
826         k-filter from:body -> ermite.focusFilter();
827         k-gh from:body -> ermite.go('.brand');
828         k-s from:body -> ermite.tab('s');
829         k-t from:body -> ermite.tab('t');
830         k-c from:body -> ermite.tab('c');
831         k-r from:body -> ermite.tab('r');
832         k-m from:body -> ermite.tab('m');
833         k-next from:body -> ermite.nextNote();
834         k-split from:body -> ermite.layout('split');
835         k-unified from:body -> ermite.layout('unified');
836         k-collapse from:body -> ermite.collapse();
837         k-expand from:body -> ermite.expandFile();
838         k-expandAll from:body -> ermite.expandAll();
839         k-permalink from:body -> ermite.permalink();
840         k-merge from:body -> window.ermiteMR?.openMerge();
841         k-read from:body -> window.ermiteMR?.markRead();
842         k-gf from:body -> window.ermiteMR?.focusFiles();
843         k-keys from:body -> ermite.toggleKeys()">
844</div>
845</body>
846</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