v0.32.0 53e25a3

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