v0.21.0 ef38ad0

tree-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>tree · files · 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="main" data-sha="SHA40" data-sel="" data-nav="" data-paths="/files/paths/SHA40" data-blob="/files/blob/main">
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="/files">files</a>
44</li>
45<li>
46<a href="/files/tree/main">tree</a>
47</li>
48<li>
49<a href="/files/tree/main" aria-current="page">main</a>
50</li>
51</ol>
52</nav>
53<div class="hdr-acts">
54<a class="btn ref" href="/files/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">main</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="/files" data-key="s" aria-keyshortcuts="s">Summary <kbd aria-hidden="true">s</kbd>
76</a>
77</li>
78<li>
79<a href="/files/tree/main" data-key="t" aria-keyshortcuts="t" aria-current="page">Files <kbd aria-hidden="true">t</kbd>
80</a>
81</li>
82<li>
83<a href="/files/commits/main" data-key="c" aria-keyshortcuts="c">Commits <kbd aria-hidden="true">c</kbd>
84</a>
85</li>
86<li>
87<a href="/files/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="/files/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="/files/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">
102<main id="main" tabindex="-1">
103<div class="tree-find">
104<div class="filter wide">
105<label for="finder-q" class="sr">find a file</label>
106<input id="finder-q" type="search" data-filter role="combobox" aria-autocomplete="list" aria-controls="finder-list" aria-expanded="false" placeholder="Find a file in this repository…" autocomplete="off" spellcheck="false" hx-on:focus="ermiteFinder.load()" hx-on:input="ermiteFinder.input(this)" hx-on:keydown="ermiteFinder.key(this, event)">
107</div>
108<p class="tree-keys" data-js aria-hidden="true">
109<kbd>j</kbd>
110<kbd>k</kbd> move · <kbd>l</kbd> open · <kbd>h</kbd> back</p>
111</div>
112<div id="finder" class="tree-card" hidden>
113<p id="finder-status" class="dim" aria-live="polite">
114</p>
115<ul id="finder-list" class="cmd-list" role="listbox" aria-label="Files">
116</ul>
117</div>
118<div id="tree-view" class="tree-card">
119<div class="tree-head">
120<span class="tree-path">/</span>
121<span class="tree-count">15 entries</span>
122</div>
123<ul id="tree-rows" class="tree" role="tree" aria-label="Entries" data-rows data-tree hx-on:click="ermiteTree.click(event)">
124<li role="treeitem" aria-level="1" aria-posinset="1" aria-setsize="15" data-kind="dir" data-depth="0" data-cursor data-expand="/files/tree/main/docs?rows" aria-expanded="false">
125<span class="t-main">
126<span class="t-twig" aria-hidden="true">
127</span>
128<span class="t-node" aria-hidden="true">
129</span>
130<a class="t-name" href="/files/tree/main/docs" title="directory">docs/</a>
131<span class="sr"> (directory)</span>
132</span>
133<span class="t-size">
134</span>
135<span class="t-sub">
136<a class="t-commit" href="/files/commit/SHA40" title="T">add docs/guide.md</a>
137</span>
138<span class="t-when">
139<time datetime="STAMP" title="STAMP">AGO</time>
140</span>
141</li>
142<li role="treeitem" aria-level="1" aria-posinset="2" aria-setsize="15" data-kind="dir" data-depth="0" data-expand="/files/tree/main/src?rows" aria-expanded="false">
143<span class="t-main">
144<span class="t-twig" aria-hidden="true">
145</span>
146<span class="t-node" aria-hidden="true">
147</span>
148<a class="t-name" href="/files/tree/main/src" title="directory">src/</a>
149<span class="sr"> (directory)</span>
150</span>
151<span class="t-size">
152</span>
153<span class="t-sub">
154<a class="t-commit" href="/files/commit/SHA40" title="T">add src/lib/util.go</a>
155</span>
156<span class="t-when">
157<time datetime="STAMP" title="STAMP">AGO</time>
158</span>
159</li>
160<li role="treeitem" aria-level="1" aria-posinset="3" aria-setsize="15" data-kind="file" data-depth="0">
161<span class="t-main">
162<span class="t-twig" aria-hidden="true">
163</span>
164<span class="t-node" aria-hidden="true">
165</span>
166<a class="t-name" href="/files/blob/main/README.md">README.md</a>
167</span>
168<span class="t-size">41 B</span>
169<span class="t-sub">
170<a class="t-commit" href="/files/commit/SHA40" title="T">add README.md</a>
171</span>
172<span class="t-when">
173<time datetime="STAMP" title="STAMP">AGO</time>
174</span>
175</li>
176<li role="treeitem" aria-level="1" aria-posinset="4" aria-setsize="15" data-kind="file" data-depth="0">
177<span class="t-main">
178<span class="t-twig" aria-hidden="true">
179</span>
180<span class="t-node" aria-hidden="true">
181</span>
182<a class="t-name" href="/files/blob/main/big.txt">big.txt</a>
183</span>
184<span class="t-size">1.1 MiB</span>
185<span class="t-sub">
186<a class="t-commit" href="/files/commit/SHA40" title="T">add big.txt</a>
187</span>
188<span class="t-when">
189<time datetime="STAMP" title="STAMP">AGO</time>
190</span>
191</li>
192<li role="treeitem" aria-level="1" aria-posinset="5" aria-setsize="15" data-kind="file" data-depth="0">
193<span class="t-main">
194<span class="t-twig" aria-hidden="true">
195</span>
196<span class="t-node" aria-hidden="true">
197</span>
198<a class="t-name" href="/files/blob/main/data.bin">data.bin</a>
199</span>
200<span class="t-size">10 B</span>
201<span class="t-sub">
202<a class="t-commit" href="/files/commit/SHA40" title="T">add data.bin</a>
203</span>
204<span class="t-when">
205<time datetime="STAMP" title="STAMP">AGO</time>
206</span>
207</li>
208<li role="treeitem" aria-level="1" aria-posinset="6" aria-setsize="15" data-kind="file" data-depth="0">
209<span class="t-main">
210<span class="t-twig" aria-hidden="true">
211</span>
212<span class="t-node" aria-hidden="true">
213</span>
214<a class="t-name" href="/files/blob/main/empty.txt">empty.txt</a>
215</span>
216<span class="t-size">0 B</span>
217<span class="t-sub">
218<a class="t-commit" href="/files/commit/SHA40" title="T">add empty.txt</a>
219</span>
220<span class="t-when">
221<time datetime="STAMP" title="STAMP">AGO</time>
222</span>
223</li>
224<li role="treeitem" aria-level="1" aria-posinset="7" aria-setsize="15" data-kind="file" data-depth="0">
225<span class="t-main">
226<span class="t-twig" aria-hidden="true">
227</span>
228<span class="t-node" aria-hidden="true">
229</span>
230<a class="t-name" href="/files/blob/main/evil.go">evil.go</a>
231</span>
232<span class="t-size">87 B</span>
233<span class="t-sub">
234<a class="t-commit" href="/files/commit/SHA40" title="T">add evil.go</a>
235</span>
236<span class="t-when">
237<time datetime="STAMP" title="STAMP">AGO</time>
238</span>
239</li>
240<li role="treeitem" aria-level="1" aria-posinset="8" aria-setsize="15" data-kind="file" data-depth="0">
241<span class="t-main">
242<span class="t-twig" aria-hidden="true">
243</span>
244<span class="t-node" aria-hidden="true">
245</span>
246<a class="t-name" href="/files/blob/main/fake.jpg">fake.jpg</a>
247</span>
248<span class="t-size">15 B</span>
249<span class="t-sub">
250<a class="t-commit" href="/files/commit/SHA40" title="T">add fake.jpg</a>
251</span>
252<span class="t-when">
253<time datetime="STAMP" title="STAMP">AGO</time>
254</span>
255</li>
256<li role="treeitem" aria-level="1" aria-posinset="9" aria-setsize="15" data-kind="file" data-depth="0">
257<span class="t-main">
258<span class="t-twig" aria-hidden="true">
259</span>
260<span class="t-node" aria-hidden="true">
261</span>
262<a class="t-name" href="/files/blob/main/fake.png">fake.png</a>
263</span>
264<span class="t-size">39 B</span>
265<span class="t-sub">
266<a class="t-commit" href="/files/commit/SHA40" title="T">add fake.png</a>
267</span>
268<span class="t-when">
269<time datetime="STAMP" title="STAMP">AGO</time>
270</span>
271</li>
272<li role="treeitem" aria-level="1" aria-posinset="10" aria-setsize="15" data-kind="file" data-depth="0">
273<span class="t-main">
274<span class="t-twig" aria-hidden="true">
275</span>
276<span class="t-node" aria-hidden="true">
277</span>
278<a class="t-name" href="/files/blob/main/lines.txt">lines.txt</a>
279</span>
280<span class="t-size">39.1 KiB</span>
281<span class="t-sub">
282<a class="t-commit" href="/files/commit/SHA40" title="T">add lines.txt</a>
283</span>
284<span class="t-when">
285<time datetime="STAMP" title="STAMP">AGO</time>
286</span>
287</li>
288<li role="treeitem" aria-level="1" aria-posinset="11" aria-setsize="15" data-kind="file" data-depth="0">
289<span class="t-main">
290<span class="t-twig" aria-hidden="true">
291</span>
292<span class="t-node" aria-hidden="true">
293</span>
294<a class="t-name" href="/files/blob/main/logo.svg">logo.svg</a>
295</span>
296<span class="t-size">89 B</span>
297<span class="t-sub">
298<a class="t-commit" href="/files/commit/SHA40" title="T">add logo.svg</a>
299</span>
300<span class="t-when">
301<time datetime="STAMP" title="STAMP">AGO</time>
302</span>
303</li>
304<li role="treeitem" aria-level="1" aria-posinset="12" aria-setsize="15" data-kind="file" data-depth="0">
305<span class="t-main">
306<span class="t-twig" aria-hidden="true">
307</span>
308<span class="t-node" aria-hidden="true">
309</span>
310<a class="t-name" href="/files/blob/main/main.go">main.go</a>
311</span>
312<span class="t-size">87 B</span>
313<span class="t-sub">
314<a class="t-commit" href="/files/commit/SHA40" title="T">add main.go</a>
315</span>
316<span class="t-when">
317<time datetime="STAMP" title="STAMP">AGO</time>
318</span>
319</li>
320<li role="treeitem" aria-level="1" aria-posinset="13" aria-setsize="15" data-kind="file" data-depth="0">
321<span class="t-main">
322<span class="t-twig" aria-hidden="true">
323</span>
324<span class="t-node" aria-hidden="true">
325</span>
326<a class="t-name" href="/files/blob/main/notes.txt">notes.txt</a>
327</span>
328<span class="t-size">24 B</span>
329<span class="t-sub">
330<a class="t-commit" href="/files/commit/SHA40" title="T">add notes.txt</a>
331</span>
332<span class="t-when">
333<time datetime="STAMP" title="STAMP">AGO</time>
334</span>
335</li>
336<li role="treeitem" aria-level="1" aria-posinset="14" aria-setsize="15" data-kind="file" data-depth="0">
337<span class="t-main">
338<span class="t-twig" aria-hidden="true">
339</span>
340<span class="t-node" aria-hidden="true">
341</span>
342<a class="t-name" href="/files/blob/main/page.html">page.html</a>
343</span>
344<span class="t-size">26 B</span>
345<span class="t-sub">
346<a class="t-commit" href="/files/commit/SHA40" title="T">add page.html</a>
347</span>
348<span class="t-when">
349<time datetime="STAMP" title="STAMP">AGO</time>
350</span>
351</li>
352<li role="treeitem" aria-level="1" aria-posinset="15" aria-setsize="15" data-kind="file" data-depth="0">
353<span class="t-main">
354<span class="t-twig" aria-hidden="true">
355</span>
356<span class="t-node" aria-hidden="true">
357</span>
358<a class="t-name" href="/files/blob/main/pic.png">pic.png</a>
359</span>
360<span class="t-size">88 B</span>
361<span class="t-sub">
362<a class="t-commit" href="/files/commit/SHA40" title="T">add pic.png</a>
363</span>
364<span class="t-when">
365<time datetime="STAMP" title="STAMP">AGO</time>
366</span>
367</li>
368</ul>
369</div>
370</main>
371</div>
372<footer class="foot">
373<span>ermite devel</span>
374<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
375<button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?">
376<kbd aria-hidden="true">?</kbd> keyboard shortcuts</button>
377</footer>
378<div class="hint" role="status" aria-live="polite">
379<span class="hint-nav" :text="document.body.dataset.nav || ''">
380</span>
381<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
382</span>
383<span class="hint-flash" :text="document.body.dataset.flash || ''">
384</span>
385</div>
386<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()">
387<div class="panel-head">
388<h2>Keyboard shortcuts</h2>
389<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
390<kbd>esc</kbd> close</button>
391</div>
392<div class="keys-pref">
393<label>
394<input type="checkbox" id="keys-off" aria-describedby="keys-note" hx-on:change="ermite.setKeysOff(this.checked)"> Turn off single-key shortcuts</label>
395<p id="keys-note" class="dim">Single-key shortcuts are on. ctrl k and esc work whatever this says.</p>
396</div>
397<dl class="keys">
398<div>
399<dt>
400<kbd>ctrl k</kbd>
401<kbd>:</kbd>
402</dt>
403<dd>go to a section, branch, tag, file or repository</dd>
404</div>
405<div>
406<dt>
407<kbd>?</kbd>
408</dt>
409<dd>this list</dd>
410</div>
411<div>
412<dt>
413<kbd>j</kbd>
414<kbd>k</kbd>
415</dt>
416<dd>move the row cursor down / up</dd>
417</div>
418<div>
419<dt>
420<kbd>enter</kbd>
421</dt>
422<dd>open the row under the cursor; on Files, a directory opens or closes in place</dd>
423</div>
424<div>
425<dt>
426<kbd>↑</kbd>
427<kbd>↓</kbd>
428<kbd>←</kbd>
429<kbd>→</kbd>
430<kbd>home</kbd>
431<kbd>end</kbd>
432</dt>
433<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>
434</div>
435<div>
436<dt>
437<kbd>l</kbd>
438<kbd>h</kbd>
439</dt>
440<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>
441</div>
442<div>
443<dt>
444<kbd>g g</kbd>
445<kbd>G</kbd>
446</dt>
447<dd>first / last row</dd>
448</div>
449<div>
450<dt>
451<kbd>/</kbd>
452</dt>
453<dd>filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)</dd>
454</div>
455<div>
456<dt>
457<kbd>b</kbd>
458</dt>
459<dd>switch branch or tag</dd>
460</div>
461<div>
462<dt>
463<kbd>s</kbd>
464<kbd>t</kbd>
465<kbd>c</kbd>
466<kbd>r</kbd>
467<kbd>m</kbd>
468</dt>
469<dd>tabs: summary, files, commits, branches &amp; tags, merge requests</dd>
470</div>
471<div>
472<dt>
473<kbd>g h</kbd>
474</dt>
475<dd>home</dd>
476</div>
477<div>
478<dt>
479<kbd>y</kbd>
480</dt>
481<dd>copy a permalink pinned to the commit</dd>
482</div>
483<div>
484<dt>
485<kbd>d</kbd>
486<kbd>u</kbd>
487<kbd>x</kbd>
488</dt>
489<dd>diff: split / unified / collapse or expand all</dd>
490</div>
491<div>
492<dt>
493<kbd>e</kbd>
494<kbd>E</kbd>
495</dt>
496<dd>diff: the whole file in view / every file, with the lines the hunks hide</dd>
497</div>
498<div>
499<dt>
500<kbd>n</kbd>
501</dt>
502<dd>merge request: next note in the diff</dd>
503</div>
504<div>
505<dt>
506<kbd>esc</kbd>
507</dt>
508<dd>close a dialog, leave a field</dd>
509</div>
510</dl>
511</dialog>
512<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()">
513<div class="panel-head">
514<label for="refs-filter" class="sr">filter branches and tags</label>
515<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
516<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
517<kbd>esc</kbd>
518</button>
519</div>
520<div class="panel-cols" data-picklist>
521<section aria-label="Branches">
522<h2>Branches <span class="count">2</span>
523</h2>
524<ul>
525<li>
526<a href="/files/tree/feature/x">
527<span class="mark" aria-hidden="true">&nbsp;</span>feature/x</a>
528</li>
529<li>
530<a href="/files/tree/main" aria-current="true">
531<span class="mark" aria-hidden="true">●</span>main</a>
532</li>
533</ul>
534</section>
535<section aria-label="Tags">
536<h2>Tags <span class="count">1</span>
537</h2>
538<ul>
539<li>
540<a href="/files/tree/v1.0">
541<span class="mark" aria-hidden="true">&nbsp;</span>v1.0</a>
542</li>
543</ul>
544</section>
545</div>
546</dialog>
547<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()">
548<div class="panel-head">
549<label for="cmd-q" class="sr">go to</label>
550<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)">
551<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
552<kbd>esc</kbd>
553</button>
554</div>
555<ul id="cmd-list" class="cmd-list" role="listbox" aria-label="Targets">
556<li id="cmd-o0" role="option" aria-selected="true" data-k="go home" data-cursor>
557<a href="/" tabindex="-1">
558<span class="lbl">home</span>
559<span class="k">go</span>
560</a>
561</li>
562<li id="cmd-o1" role="option" aria-selected="false" data-k="section summary">
563<a href="/files" tabindex="-1">
564<span class="lbl">summary</span>
565<span class="k">section</span>
566</a>
567</li>
568<li id="cmd-o2" role="option" aria-selected="false" data-k="section files">
569<a href="/files/tree/main" tabindex="-1">
570<span class="lbl">files</span>
571<span class="k">section</span>
572</a>
573</li>
574<li id="cmd-o3" role="option" aria-selected="false" data-k="section commits">
575<a href="/files/commits/main" tabindex="-1">
576<span class="lbl">commits</span>
577<span class="k">section</span>
578</a>
579</li>
580<li id="cmd-o4" role="option" aria-selected="false" data-k="section branches &amp; tags">
581<a href="/files/refs" tabindex="-1">
582<span class="lbl">branches &amp; tags</span>
583<span class="k">section</span>
584</a>
585</li>
586<li id="cmd-o5" role="option" aria-selected="false" data-k="section merge requests">
587<a href="/files/merge-requests" tabindex="-1">
588<span class="lbl">merge requests</span>
589<span class="k">section</span>
590</a>
591</li>
592<li id="cmd-o6" role="option" aria-selected="false" data-k="section actions">
593<a href="/files/actions" tabindex="-1">
594<span class="lbl">actions</span>
595<span class="k">section</span>
596</a>
597</li>
598<li id="cmd-o7" role="option" aria-selected="false" data-k="branch feature/x">
599<a href="/files/tree/feature/x" tabindex="-1">
600<span class="lbl">feature/x</span>
601<span class="k">branch</span>
602</a>
603</li>
604<li id="cmd-o8" role="option" aria-selected="false" data-k="branch main">
605<a href="/files/tree/main" tabindex="-1">
606<span class="lbl">main</span>
607<span class="k">branch</span>
608</a>
609</li>
610<li id="cmd-o9" role="option" aria-selected="false" data-k="tag v1.0">
611<a href="/files/tree/v1.0" tabindex="-1">
612<span class="lbl">v1.0</span>
613<span class="k">tag</span>
614</a>
615</li>
616<li id="cmd-o10" role="option" aria-selected="false" data-k="action turn single-key shortcuts on off keyboard">
617<a href="#" data-fire="keys" tabindex="-1">
618<span class="lbl">turn single-key shortcuts off</span>
619<span class="k">action</span>
620</a>
621</li>
622</ul>
623<p class="panel-foot">
624<span>
625<kbd>↑</kbd>
626<kbd>↓</kbd> move</span>
627<span>
628<kbd>enter</kbd> open</span>
629<span>
630<kbd>esc</kbd> close</span>
631</p>
632</dialog>
633<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
634         k-k from:body -> ermite.move(-1);
635         k-top from:body -> ermite.edge(false);
636         k-bottom from:body -> ermite.edge(true);
637         k-open from:body -> ermite.open();
638         k-right from:body -> ermite.rail(true);
639         k-left from:body -> ermite.rail(false);
640         k-esc from:body -> ermite.closeDialogs();
641         k-help from:body -> ermite.dialog('panel-help');
642         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
643         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
644         k-filter from:body -> ermite.focusFilter();
645         k-gh from:body -> ermite.go('.brand');
646         k-s from:body -> ermite.tab('s');
647         k-t from:body -> ermite.tab('t');
648         k-c from:body -> ermite.tab('c');
649         k-r from:body -> ermite.tab('r');
650         k-m from:body -> ermite.tab('m');
651         k-next from:body -> ermite.nextNote();
652         k-split from:body -> ermite.layout('split');
653         k-unified from:body -> ermite.layout('unified');
654         k-collapse from:body -> ermite.collapse();
655         k-expand from:body -> ermite.expandFile();
656         k-expandAll from:body -> ermite.expandAll();
657         k-permalink from:body -> ermite.permalink();
658         k-merge from:body -> window.ermiteMR?.openMerge();
659         k-read from:body -> window.ermiteMR?.markRead();
660         k-gf from:body -> window.ermiteMR?.focusFiles();
661         k-keys from:body -> ermite.toggleKeys()">
662</div>
663</body>
664</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