v0.8.0 0fa6785

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-09T09:57:41.059Z
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 History {
9  id: number;
10  url: string;
11  title: string | null;
12  visit_count: number | null;
13  last_visited: string | null;
14  created_at: string | null;
15}
16
17export interface Shortcut {
18  id: number;
19  shortcut: string;
20  url_template: string;
21  description: string | null;
22  created_at: string | null;
23}
24
25export interface ZoomSetting {
26  id: number;
27  url: string;
28  zoom_level: number;
29  last_updated: string | null;
30}
31
32export interface ParseResult {
33  type: InputType;
34  url: string;
35  query: string;
36  confidence: number;
37  fuzzy_matches?: FuzzyMatch[];
38  shortcut?: DetectedShortcut;
39  processing_time: number;
40}
41
42export interface DetectedShortcut {
43  key: string;
44  query: string;
45  url: string;
46  description: string;
47}
48
49export interface FuzzyMatch {
50  history_entry?: History;
51  score: number;
52  url_score: number;
53  title_score: number;
54  recency_score: number;
55  visit_score: number;
56  matched_field: string;
57}
58
59export interface FuzzyConfig {
60  min_similarity_threshold: number;
61  max_results: number;
62  url_weight: number;
63  title_weight: number;
64  recency_weight: number;
65  visit_weight: number;
66  recency_decay_days: number;
67}
68
69// Manual types and enums
70export enum InputType {
71  InputTypeDirectURL = 0,
72  InputTypeSearchShortcut = 1,
73  InputTypeHistorySearch = 2,
74  InputTypeFallbackSearch = 3
75}
76
77// Type aliases for frontend usage
78export type HistoryEntry = History;
79export type SearchShortcut = Shortcut;
80export 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