v0.18.0 0cea275

commit-modify-split.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 modify a file and make a script executable · 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</div>
67</div>
68<nav class="tabs" aria-label="Sections">
69<ul>
70<li>
71<a href="/diffs" data-key="s" aria-keyshortcuts="s">Summary <kbd aria-hidden="true">s</kbd>
72</a>
73</li>
74<li>
75<a href="/diffs/tree/main" data-key="t" aria-keyshortcuts="t">Files <kbd aria-hidden="true">t</kbd>
76</a>
77</li>
78<li>
79<a href="/diffs/commits/main" data-key="c" aria-keyshortcuts="c" aria-current="page">Commits <kbd aria-hidden="true">c</kbd>
80</a>
81</li>
82<li>
83<a href="/diffs/refs" data-key="r" aria-keyshortcuts="r">Branches &amp; tags <kbd aria-hidden="true">r</kbd>
84</a>
85</li>
86<li>
87<a href="/diffs/merge-requests" data-key="m" aria-keyshortcuts="m">Merge requests <kbd aria-hidden="true">m</kbd>
88</a>
89</li>
90<li>
91<a href="/diffs/actions" data-key="a" aria-keyshortcuts="a">Actions <kbd aria-hidden="true">a</kbd>
92</a>
93</li>
94</ul>
95</nav>
96</header>
97<div class="work has-rail">
98<main id="main" tabindex="-1">
99<header class="show">
100<h1>modify a file and make a script executable</h1>
101<pre class="msg">The body has a second paragraph.
102And &lt;b&gt;html&lt;/b&gt; &amp; &#34;quotes&#34;.</pre>
103<dl class="kv show-kv">
104<dt>commit</dt>
105<dd>SHA40</dd>
106<dt>author</dt>
107<dd>T  · <time datetime="STAMP" title="STAMP">AGO</time> · STAMP</dd>
108<dt>parent</dt>
109<dd>
110<a href="/diffs/commit/SHA40">SHA7</a>
111</dd>
112<dt>refs</dt>
113<dd>
114<span class="pill">tag: v1.0.0</span>
115</dd>
116</dl>
117</header>
118<div class="diff-tools" role="toolbar" aria-label="Diff view">
119<span class="dim">2 files · <span class="plus">+2</span>
120<span class="minus">-1</span>
121</span>
122<span class="grow">
123</span>
124<a href="/diffs/commit/SHA40?view=unified" class="btn vbtn" data-view="unified" aria-keyshortcuts="u" data-fire="unified" :aria-current="q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false">Unified<kbd aria-hidden="true">u</kbd>
125</a>
126<a href="/diffs/commit/SHA40?view=split" class="btn vbtn" data-view="split" aria-keyshortcuts="d" aria-current="true" data-fire="split" :aria-current="q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false">Split<kbd aria-hidden="true">d</kbd>
127</a>
128<button type="button" aria-keyshortcuts="x" data-js data-fire="collapse" class="btn">
129<span hx-live="this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'">Collapse all</span>
130<kbd aria-hidden="true">x</kbd>
131</button>
132</div>
133<div id="diffs" data-diff="split">
134<details class="dfile" id="f1" data-file open>
135<summary>
136<span class="st">M</span>
137<span class="p">a.txt</span>
138<span class="plus">+2</span>
139<span class="minus">-1</span>
140</summary>
141<div class="dscroll">
142<table class="dt uni" aria-label="a.txt, unified">
143<tbody>
144<tr class="hunk">
145<td colspan="4">@@ -1,5 +1,6 @@</td>
146</tr>
147<tr class="ctx">
148<td class="ln">1</td>
149<td class="ln">1</td>
150<td class="m">
151</td>
152<td class="tx">one</td>
153</tr>
154<tr class="del">
155<td class="ln">2</td>
156<td class="ln">
157</td>
158<td class="m">-</td>
159<td class="tx">two</td>
160</tr>
161<tr class="add">
162<td class="ln">
163</td>
164<td class="ln">2</td>
165<td class="m">+</td>
166<td class="tx">2</td>
167</tr>
168<tr class="ctx">
169<td class="ln">3</td>
170<td class="ln">3</td>
171<td class="m">
172</td>
173<td class="tx">three</td>
174</tr>
175<tr class="ctx">
176<td class="ln">4</td>
177<td class="ln">4</td>
178<td class="m">
179</td>
180<td class="tx">four</td>
181</tr>
182<tr class="ctx">
183<td class="ln">5</td>
184<td class="ln">5</td>
185<td class="m">
186</td>
187<td class="tx">five</td>
188</tr>
189<tr class="add">
190<td class="ln">
191</td>
192<td class="ln">6</td>
193<td class="m">+</td>
194<td class="tx">six</td>
195</tr>
196</tbody>
197</table>
198<table class="dt spl" aria-label="a.txt, split">
199<colgroup>
200<col class="c-ln">
201<col class="c-m">
202<col>
203<col class="c-ln">
204<col class="c-m">
205<col>
206</colgroup>
207<tbody>
208<tr class="hunk">
209<td colspan="6">@@ -1,5 +1,6 @@</td>
210</tr>
211<tr>
212<td class="ln ctx">1</td>
213<td class="m ctx">
214</td>
215<td class="tx ctx">one</td>
216<td class="ln ctx">1</td>
217<td class="m ctx">
218</td>
219<td class="tx ctx">one</td>
220</tr>
221<tr>
222<td class="ln del">2</td>
223<td class="m del">-</td>
224<td class="tx del">two</td>
225<td class="ln add">2</td>
226<td class="m add">+</td>
227<td class="tx add">2</td>
228</tr>
229<tr>
230<td class="ln ctx">3</td>
231<td class="m ctx">
232</td>
233<td class="tx ctx">three</td>
234<td class="ln ctx">3</td>
235<td class="m ctx">
236</td>
237<td class="tx ctx">three</td>
238</tr>
239<tr>
240<td class="ln ctx">4</td>
241<td class="m ctx">
242</td>
243<td class="tx ctx">four</td>
244<td class="ln ctx">4</td>
245<td class="m ctx">
246</td>
247<td class="tx ctx">four</td>
248</tr>
249<tr>
250<td class="ln ctx">5</td>
251<td class="m ctx">
252</td>
253<td class="tx ctx">five</td>
254<td class="ln ctx">5</td>
255<td class="m ctx">
256</td>
257<td class="tx ctx">five</td>
258</tr>
259<tr>
260<td class="ln none">
261</td>
262<td class="m none">
263</td>
264<td class="tx none">
265</td>
266<td class="ln add">6</td>
267<td class="m add">+</td>
268<td class="tx add">six</td>
269</tr>
270</tbody>
271</table>
272</div>
273</details>
274<details class="dfile" id="f2" data-file>
275<summary>
276<span class="st">M</span>
277<span class="p">run.sh</span>
278<span class="plus">+0</span>
279<span class="minus">-0</span>
280<span class="note">mode 100644 → 100755</span>
281</summary>
282<p class="note pad">mode 100644 → 100755</p>
283</details>
284</div>
285</main>
286<aside class="rail" aria-label="Context">
287<section aria-labelledby="r-files">
288<h2 id="r-files">Files <span class="count">2</span>
289</h2>
290<ol class="files" aria-label="Changed files">
291<li>
292<a href="#f1" hx-on:click="document.getElementById(this.hash.slice(1)).open = true">
293<span class="st" title="M">M</span>
294<span class="p" title="a.txt">a.txt</span>
295<span class="n">
296<span class="plus">+2</span>
297<span class="minus">-1</span>
298</span>
299<span class="b" aria-hidden="true">
300<span class="plus">+++++++</span>
301<span class="minus">---</span>
302</span>
303</a>
304</li>
305<li>
306<a href="#f2" hx-on:click="document.getElementById(this.hash.slice(1)).open = true">
307<span class="st" title="M">M</span>
308<span class="p" title="run.sh">run.sh</span>
309<span class="n">
310<span class="plus">+0</span>
311<span class="minus">-0</span>
312</span>
313<span class="b" aria-hidden="true">
314<span class="plus">
315</span>
316<span class="minus">
317</span>··········</span>
318</a>
319</li>
320</ol>
321</section>
322</aside>
323</div>
324<footer class="foot">
325<span>ermite devel</span>
326<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
327<button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?">
328<kbd aria-hidden="true">?</kbd> keyboard shortcuts</button>
329</footer>
330<div class="hint" role="status" aria-live="polite">
331<span class="hint-nav" :text="document.body.dataset.nav || ''">
332</span>
333<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
334</span>
335<span class="hint-flash" :text="document.body.dataset.flash || ''">
336</span>
337</div>
338<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()">
339<div class="panel-head">
340<h2>Keyboard shortcuts</h2>
341<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
342<kbd>esc</kbd> close</button>
343</div>
344<dl class="keys">
345<div>
346<dt>
347<kbd>ctrl k</kbd>
348<kbd>:</kbd>
349</dt>
350<dd>go to a section, branch, tag, file or repository</dd>
351</div>
352<div>
353<dt>
354<kbd>?</kbd>
355</dt>
356<dd>this list</dd>
357</div>
358<div>
359<dt>
360<kbd>j</kbd>
361<kbd>k</kbd>
362</dt>
363<dd>move the row cursor down / up</dd>
364</div>
365<div>
366<dt>
367<kbd>enter</kbd>
368</dt>
369<dd>open the row under the cursor</dd>
370</div>
371<div>
372<dt>
373<kbd>g g</kbd>
374<kbd>G</kbd>
375</dt>
376<dd>first / last row</dd>
377</div>
378<div>
379<dt>
380<kbd>/</kbd>
381</dt>
382<dd>filter the list; on Files, find a file in the repository</dd>
383</div>
384<div>
385<dt>
386<kbd>b</kbd>
387</dt>
388<dd>switch branch or tag</dd>
389</div>
390<div>
391<dt>
392<kbd>s</kbd>
393<kbd>t</kbd>
394<kbd>c</kbd>
395<kbd>r</kbd>
396<kbd>m</kbd>
397</dt>
398<dd>tabs: summary, files, commits, branches &amp; tags, merge requests</dd>
399</div>
400<div>
401<dt>
402<kbd>g h</kbd>
403</dt>
404<dd>home</dd>
405</div>
406<div>
407<dt>
408<kbd>y</kbd>
409</dt>
410<dd>copy a permalink pinned to the commit</dd>
411</div>
412<div>
413<dt>
414<kbd>d</kbd>
415<kbd>u</kbd>
416<kbd>x</kbd>
417</dt>
418<dd>diff: split / unified / collapse or expand all</dd>
419</div>
420<div>
421<dt>
422<kbd>n</kbd>
423</dt>
424<dd>merge request: next note in the diff</dd>
425</div>
426<div>
427<dt>
428<kbd>esc</kbd>
429</dt>
430<dd>close a dialog, leave a field</dd>
431</div>
432</dl>
433</dialog>
434<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()">
435<div class="panel-head">
436<label for="refs-filter" class="sr">filter branches and tags</label>
437<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
438<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
439<kbd>esc</kbd>
440</button>
441</div>
442<div class="panel-cols" data-picklist>
443<section aria-label="Branches">
444<h2>Branches <span class="count">2</span>
445</h2>
446<ul>
447<li>
448<a href="/diffs/tree/main">
449<span class="mark" aria-hidden="true">&nbsp;</span>main</a>
450</li>
451<li>
452<a href="/diffs/tree/side">
453<span class="mark" aria-hidden="true">&nbsp;</span>side</a>
454</li>
455</ul>
456</section>
457<section aria-label="Tags">
458<h2>Tags <span class="count">1</span>
459</h2>
460<ul>
461<li>
462<a href="/diffs/tree/v1.0.0">
463<span class="mark" aria-hidden="true">&nbsp;</span>v1.0.0</a>
464</li>
465</ul>
466</section>
467</div>
468</dialog>
469<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()">
470<div class="panel-head">
471<label for="cmd-q" class="sr">go to</label>
472<input id="cmd-q" type="search" placeholder="Go to a section, branch, tag, file or repository…" autocomplete="off" spellcheck="false" aria-controls="cmd-list" hx-on:input="ermite.cmdFilter(this); ermiteFinder.palette(this)" hx-on:keydown="ermite.cmdKey(event)">
473<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
474<kbd>esc</kbd>
475</button>
476</div>
477<ul id="cmd-list" class="cmd-list" aria-label="Targets">
478<li data-k="go home" data-cursor>
479<a href="/" tabindex="-1">
480<span class="lbl">home</span>
481<span class="k">go</span>
482</a>
483</li>
484<li data-k="section summary">
485<a href="/diffs" tabindex="-1">
486<span class="lbl">summary</span>
487<span class="k">section</span>
488</a>
489</li>
490<li data-k="section files">
491<a href="/diffs/tree/main" tabindex="-1">
492<span class="lbl">files</span>
493<span class="k">section</span>
494</a>
495</li>
496<li data-k="section commits">
497<a href="/diffs/commits/main" tabindex="-1">
498<span class="lbl">commits</span>
499<span class="k">section</span>
500</a>
501</li>
502<li data-k="section branches &amp; tags">
503<a href="/diffs/refs" tabindex="-1">
504<span class="lbl">branches &amp; tags</span>
505<span class="k">section</span>
506</a>
507</li>
508<li data-k="section merge requests">
509<a href="/diffs/merge-requests" tabindex="-1">
510<span class="lbl">merge requests</span>
511<span class="k">section</span>
512</a>
513</li>
514<li data-k="section actions">
515<a href="/diffs/actions" tabindex="-1">
516<span class="lbl">actions</span>
517<span class="k">section</span>
518</a>
519</li>
520<li data-k="branch main">
521<a href="/diffs/tree/main" tabindex="-1">
522<span class="lbl">main</span>
523<span class="k">branch</span>
524</a>
525</li>
526<li data-k="branch side">
527<a href="/diffs/tree/side" tabindex="-1">
528<span class="lbl">side</span>
529<span class="k">branch</span>
530</a>
531</li>
532<li data-k="tag v1.0.0">
533<a href="/diffs/tree/v1.0.0" tabindex="-1">
534<span class="lbl">v1.0.0</span>
535<span class="k">tag</span>
536</a>
537</li>
538</ul>
539<p class="panel-foot">
540<span>
541<kbd>↑</kbd>
542<kbd>↓</kbd> move</span>
543<span>
544<kbd>enter</kbd> open</span>
545<span>
546<kbd>esc</kbd> close</span>
547</p>
548</dialog>
549<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
550         k-k from:body -> ermite.move(-1);
551         k-top from:body -> ermite.edge(false);
552         k-bottom from:body -> ermite.edge(true);
553         k-open from:body -> ermite.open();
554         k-esc from:body -> ermite.closeDialogs();
555         k-help from:body -> ermite.dialog('panel-help');
556         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
557         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
558         k-filter from:body -> ermite.focusFilter();
559         k-gh from:body -> ermite.go('.brand');
560         k-s from:body -> ermite.tab('s');
561         k-t from:body -> ermite.tab('t');
562         k-c from:body -> ermite.tab('c');
563         k-r from:body -> ermite.tab('r');
564         k-m from:body -> ermite.tab('m');
565         k-next from:body -> ermite.nextNote();
566         k-split from:body -> ermite.layout('split');
567         k-unified from:body -> ermite.layout('unified');
568         k-collapse from:body -> ermite.collapse();
569         k-permalink from:body -> ermite.permalink()">
570</div>
571</body>
572</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