v0.9.0 636c44c

generated.ts RawHistoryFolder

1// GENERATED FROM GO FILES: SEE THE GENERATOR SCRIPT
2// Auto-generated TypeScript types from Go structs
3// Generated on: 2025-09-22T12:41:57.478Z
4// Generator script: scripts/generate-types.js
5// Source files: internal/db/models.go, internal/parser/types.go
6// Do not edit manually - run 'node scripts/generate-types.js' to regenerate
7
8export interface CertificateValidation {
9  id: number;
10  hostname: string;
11  certificate_hash: string;
12  user_decision: string;
13  created_at: string | null;
14  expires_at: string | null;
15}
16
17export interface History {
18  id: number;
19  url: string;
20  title: string | null;
21  visit_count: number | null;
22  last_visited: string | null;
23  created_at: string | null;
24  favicon_url: string | null;
25}
26
27export interface Shortcut {
28  id: number;
29  shortcut: string;
30  url_template: string;
31  description: string | null;
32  created_at: string | null;
33}
34
35export interface ZoomLevel {
36  domain: string;
37  zoom_factor: number;
38  updated_at: string | null;
39}
40
41export interface ParseResult {
42  type: InputType;
43  url: string;
44  query: string;
45  confidence: number;
46  fuzzy_matches?: FuzzyMatch[];
47  shortcut?: DetectedShortcut;
48  processing_time: number;
49}
50
51export interface DetectedShortcut {
52  key: string;
53  query: string;
54  url: string;
55  description: string;
56}
57
58export interface FuzzyMatch {
59  history_entry?: History;
60  score: number;
61  url_score: number;
62  title_score: number;
63  recency_score: number;
64  visit_score: number;
65  matched_field: string;
66}
67
68export interface FuzzyConfig {
69  min_similarity_threshold: number;
70  max_results: number;
71  url_weight: number;
72  title_weight: number;
73  recency_weight: number;
74  visit_weight: number;
75  recency_decay_days: number;
76}
77
78// Manual types and enums
79export enum InputType {
80  InputTypeDirectURL = 0,
81  InputTypeSearchShortcut = 1,
82  InputTypeHistorySearch = 2,
83  InputTypeFallbackSearch = 3,
84}
85
86// Type aliases for frontend usage
87export type HistoryEntry = History;
88export type SearchShortcut = Shortcut;
89export type ZoomEntry = ZoomSetting;

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