v0.1.0 28f9d6e

fromJSON.json RawHistoryFolder

1{
2  "basics": [
3    { "expr": "fromJSON('null')",                "result": { "kind": "Null",     "value": null } },
4    { "expr": "fromJSON('true')",                "result": { "kind": "Boolean",  "value": true } },
5    { "expr": "fromJSON('false')",               "result": { "kind": "Boolean",  "value": false } },
6    { "expr": "fromJSON('0')",                   "result": { "kind": "Number",   "value": 0 } },
7    { "expr": "fromJSON('-0')",                  "result": { "kind": "Number",   "value": -0 } },
8    { "expr": "fromJSON('123456789')",           "result": { "kind": "Number",   "value": 123456789 } },
9    { "expr": "fromJSON('-123456789')",          "result": { "kind": "Number",   "value": -123456789 } },
10    { "expr": "fromJSON('1234.5')",              "result": { "kind": "Number",   "value": 1234.5 } },
11    { "expr": "fromJSON('-1234.5')",             "result": { "kind": "Number",   "value": -1234.5 } },
12    { "expr": "fromJSON('\"\"')",                "result": { "kind": "String",   "value": "" } },
13    { "expr": "fromJSON('\"abc\"')",             "result": { "kind": "String",   "value": "abc" } },
14    { "expr": "fromJSON('\"abc''def\"')",        "result": { "kind": "String",   "value": "abc'def" } },
15    { "expr": "fromJSON('\"abc\\\\\\\"def\"')",  "result": { "kind": "String",   "value": "abc\\\"def" } }
16  ],
17  "array": [
18    { "expr": "fromJSON('[]')",         "result": { "kind": "Array",  "value": [] } },
19    { "expr": "fromJSON('[1, 2, 3]')",  "result": { "kind": "Array",  "value": [1, 2, 3] } },
20    {
21      "expr": "fromJSON('[[1, 2, 3], [\"abc\",\"def\",\"ghi\"], [true, false, null, [], {}]]')",
22      "result": {
23        "kind": "Array",
24        "value": [[1, 2, 3], ["abc", "def", "ghi"], [true, false, null, [], {}]]
25      }
26    }
27  ],
28  "object": [
29    { "expr": "fromJSON('{}')",  "result": { "kind": "Object",  "value": {} } },
30    {
31      "expr": "fromJSON('{\"one\": \"value one\", \"two\": \"value two\", \"three\": \"value three\"}')", 
32      "result": { 
33        "kind": "Object",
34        "value": {
35          "one": "value one",
36          "two": "value two",
37          "three": "value three"
38        }
39      }
40    },
41    {
42      "expr": "fromJSON('{\"nested-one\": {\"one\": 1,\"two\": 2,\"three\": 3},\"nested-two\": {\"string one\": \"value one\",\"string two\": \"value two\",\"string three\": \"value three\"},\"nested-three\": {\"true\": true,\"false\": false,\"null\": null,\"array\": [],\"object\": {}}\n}')", 
43      "result": {
44        "kind": "Object",
45        "value": {
46          "nested-one": {
47            "one": 1,
48            "two": 2,
49            "three": 3
50          },
51          "nested-two": {
52            "string one": "value one",
53            "string two": "value two",
54            "string three": "value three"
55          },
56          "nested-three": {
57            "true": true,
58            "false": false,
59            "null": null,
60            "array": [],
61            "object": {}
62          }
63        }
64      }
65    }
66  ]
67}

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 1

Tags 3

↑↓ moveenter openesc close