v0.31.0 bf0756b

session_states.sql RawHistoryFolder

1-- name: UpsertSessionState :exec
2INSERT INTO session_states (session_id, state_json, version, tab_count, pane_count, updated_at)
3VALUES (?, ?, ?, ?, ?, ?)
4ON CONFLICT(session_id) DO UPDATE SET
5    state_json = excluded.state_json,
6    version = excluded.version,
7    tab_count = excluded.tab_count,
8    pane_count = excluded.pane_count,
9    updated_at = excluded.updated_at;
10
11-- name: GetSessionState :one
12SELECT session_id, state_json, version, tab_count, pane_count, updated_at
13FROM session_states
14WHERE session_id = ?;
15
16-- name: GetAllSessionStates :many
17SELECT session_id, state_json, version, tab_count, pane_count, updated_at
18FROM session_states
19ORDER BY updated_at DESC;
20
21-- name: DeleteSessionState :exec
22DELETE FROM session_states WHERE session_id = ?;
23
24-- name: GetSessionsWithState :many
25SELECT 
26    s.id, s.type, s.started_at, s.ended_at,
27    ss.state_json, ss.tab_count, ss.pane_count, ss.updated_at as state_updated_at
28FROM sessions s
29LEFT JOIN session_states ss ON s.id = ss.session_id
30WHERE s.type = 'browser'
31ORDER BY s.started_at DESC
32LIMIT ?;
33
34-- name: GetTotalSessionStatesSize :one
35SELECT COALESCE(SUM(LENGTH(state_json)), 0) as total_size
36FROM session_states;

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 8

Tags 42

↑↓ moveenter openesc close