Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Harshil-Anuwadia/archwiki-tui
/ functions
Functions
378 in github.com/Harshil-Anuwadia/archwiki-tui
⨍
Functions
378
◇
Types & classes
44
↓ 90 callers
Function
max
(a, b int)
internal/app/logic.go:3503
↓ 86 callers
Method
Update
(msg tea.Msg)
internal/app/update.go:12
↓ 71 callers
Method
setTransientStatus
(text string)
internal/app/logic.go:1178
↓ 50 callers
Function
NewModel
NewModel builds the root application model.
internal/app/types.go:327
↓ 30 callers
Method
renderPage
()
internal/app/logic.go:1923
↓ 28 callers
Method
View
()
internal/app/view.go:15
↓ 22 callers
Function
truncate
(s string, maxWidth int)
internal/app/logic.go:3068
↓ 21 callers
Method
syncLoadingState
()
internal/app/logic.go:1186
↓ 20 callers
Function
NewEngine
NewEngine creates a new rendering engine.
internal/render/engine.go:77
↓ 19 callers
Function
min
(a, b int)
internal/app/logic.go:3510
↓ 18 callers
Method
setArticleContent
(rawMarkdown string)
internal/app/logic.go:1866
↓ 16 callers
Method
WritePageCache
WritePageCache persists rendered markdown for offline fallback.
internal/storage/store.go:456
↓ 16 callers
Function
strPtr
(v string)
internal/render/style.go:108
↓ 15 callers
Method
markdownForActiveTab
()
internal/app/logic.go:1190
↓ 14 callers
Function
runeWidth
(s string)
internal/render/engine.go:603
↓ 13 callers
Method
Count
Count returns total indexed titles.
internal/wiki/title_index.go:56
↓ 12 callers
Function
indexOfInt
(items []int, target int)
internal/app/logic.go:2225
↓ 12 callers
Method
visibleTOCIndices
()
internal/app/logic.go:2275
↓ 11 callers
Function
NewStore
NewStore initializes config and cache directories using XDG defaults.
internal/storage/store.go:72
↓ 11 callers
Function
boolPtr
(v bool)
internal/render/style.go:104
↓ 11 callers
Function
renderInlineSelection
(sel *goquery.Selection)
internal/render/engine.go:848
↓ 9 callers
Function
ArchWikiTitleFromURL
ArchWikiTitleFromURL resolves an ArchWiki article title from absolute/relative wiki URLs.
internal/render/engine.go:1306
↓ 9 callers
Function
ArticleURL
ArticleURL builds a canonical page URL for browser fallback.
internal/wiki/client.go:60
↓ 9 callers
Method
BuildMarkdownFromHTML
BuildMarkdownFromHTML parses wiki HTML with goquery and renders structured markdown-like content.
internal/render/engine.go:82
↓ 9 callers
Method
openPage
(title string, pushCurrent bool)
internal/app/logic.go:1079
↓ 9 callers
Method
tabName
(tab contentTab)
internal/app/view.go:184
↓ 8 callers
Method
activeTabLinkCursor
()
internal/app/logic.go:1389
↓ 8 callers
Function
buildTOCItems
(markdown string)
internal/app/logic.go:2788
↓ 8 callers
Function
buildTabLinkItems
(links []articleLink)
internal/app/logic.go:2855
↓ 7 callers
Method
AddHistory
AddHistory inserts a page visit and keeps recent unique entries.
internal/storage/store.go:396
↓ 7 callers
Method
PrepareWikiMarkdownForDisplay
PrepareWikiMarkdownForDisplay strips noisy inline URLs and creates terminal-hyperlink placeholders.
internal/render/engine.go:963
↓ 7 callers
Method
SaveArchiveIndex
SaveArchiveIndex persists the full-archive index atomically.
internal/storage/store.go:144
↓ 7 callers
Method
activateTab
(tab contentTab)
internal/app/logic.go:1887
↓ 7 callers
Method
activeTabLinkItems
()
internal/app/logic.go:1381
↓ 7 callers
Function
archiveTitleKey
(title string)
internal/storage/store.go:628
↓ 7 callers
Function
collapseWhitespace
(s string)
internal/render/engine.go:1359
↓ 7 callers
Function
readableWrapWidth
(viewportWidth int)
internal/app/logic.go:2182
↓ 7 callers
Method
tocParentIndex
(index int)
internal/app/logic.go:2234
↓ 7 callers
Method
visibleNavIndices
()
internal/app/logic.go:2469
↓ 6 callers
Method
BuildDocument
BuildDocument splits markdown into wiki/related/links tabs and applies heading numbering.
internal/render/engine.go:940
↓ 6 callers
Function
NewTitleIndex
NewTitleIndex creates and loads a title index from cachePath when available.
internal/wiki/title_index.go:44
↓ 6 callers
Method
ReadPageCache
ReadPageCache loads cached markdown by title.
internal/storage/store.go:552
↓ 6 callers
Method
WriteArchivePage
WriteArchivePage compresses markdown with zstd and updates the provided archive index in-memory.
internal/storage/store.go:226
↓ 6 callers
Method
scrollContent
(delta int)
internal/app/logic.go:2088
↓ 6 callers
Function
uintPtr
(v uint)
internal/render/style.go:112
↓ 5 callers
Method
LoadArchiveIndex
LoadArchiveIndex reads the archive index from disk, returning an empty initialized index on first run.
internal/storage/store.go:136
↓ 5 callers
Method
ReadArchivePage
ReadArchivePage retrieves and decompresses a page from the full-archive cache.
internal/storage/store.go:308
↓ 5 callers
Method
activeTabLinkVisibleIndices
(items []tabLinkItem)
internal/app/logic.go:1353
↓ 5 callers
Method
ensureNavCursorVisible
(visible []int)
internal/app/logic.go:2504
↓ 5 callers
Method
ensureNavigationPath
()
internal/app/logic.go:2327
↓ 5 callers
Method
ensureTOCCursorVisible
(visible []int)
internal/app/logic.go:2303
↓ 5 callers
Method
homePrimarySuggestion
()
internal/app/view.go:815
↓ 5 callers
Function
hostLabel
(rawURL string)
internal/render/engine.go:1276
↓ 5 callers
Method
moveActiveTabLinkCursor
(delta int)
internal/app/logic.go:1467
↓ 5 callers
Function
stripANSISequences
(s string)
internal/app/logic.go:3202
↓ 5 callers
Function
styleText
(text, color string, bold, underline bool)
internal/render/engine.go:1157
↓ 5 callers
Method
viewStatusBar
()
internal/app/view.go:86
↓ 4 callers
Method
IndexCachePath
IndexCachePath returns the file path used for the searchable title index cache.
internal/storage/store.go:126
↓ 4 callers
Method
ListArchiveTitles
ListArchiveTitles returns titles present in the full-archive index in case-insensitive sorted order.
internal/storage/store.go:355
↓ 4 callers
Method
ListCachedTitles
ListCachedTitles returns cached page titles, most recently cached first.
internal/storage/store.go:442
↓ 4 callers
Method
ReplaceTitles
ReplaceTitles updates in-memory entries and writes cache to disk.
internal/wiki/title_index.go:168
↓ 4 callers
Function
addHierarchicalHeadingNumbers
(markdown string)
internal/render/engine.go:1631
↓ 4 callers
Function
cacheFileName
(title string)
internal/storage/store.go:616
↓ 4 callers
Method
clampViewport
()
internal/app/logic.go:2127
↓ 4 callers
Function
clampWindow
(cursor, total, height int)
internal/app/logic.go:2164
↓ 4 callers
Function
containsAny
(s string, parts ...string)
internal/render/engine.go:501
↓ 4 callers
Method
invalidateTOCOffsetCache
()
internal/app/logic.go:2714
↓ 4 callers
Method
isActiveTabLinkGroupExpanded
(group string, total int)
internal/app/logic.go:1304
↓ 4 callers
Function
linkURLAtDisplayColumn
(rawLine string, targetCol int)
internal/app/logic.go:3123
↓ 4 callers
Method
loadArchiveIndexLocked
()
internal/storage/store.go:639
↓ 4 callers
Function
minInt
(a, b int)
internal/wiki/title_index.go:388
↓ 4 callers
Function
renderInlineChildren
(node *xhtml.Node)
internal/render/engine.go:913
↓ 4 callers
Method
renderedOffsetForMarkdownLine
(markdownLine int)
internal/app/logic.go:2740
↓ 4 callers
Method
saveLocked
()
internal/storage/store.go:742
↓ 4 callers
Method
syncTOCCursorToViewport
()
internal/app/logic.go:2098
↓ 3 callers
Method
ApplyCalloutStyles
ApplyCalloutStyles colorizes rendered callout boxes by semantic kind.
internal/render/engine.go:1048
↓ 3 callers
Method
ClearCache
ClearCache removes cached page markdown files and the cached title index.
internal/storage/store.go:567
↓ 3 callers
Method
FetchPage
FetchPage downloads and converts one article into terminal-friendly markdown.
internal/wiki/client.go:421
↓ 3 callers
Method
ListHistory
ListHistory returns most recent entries first.
internal/storage/store.go:428
↓ 3 callers
Function
NewClient
NewClient constructs a client with sensible defaults.
internal/wiki/client.go:33
↓ 3 callers
Method
activeProgressStatus
()
internal/app/view.go:98
↓ 3 callers
Method
activeTabLinkState
()
internal/app/logic.go:1235
↓ 3 callers
Method
applyOfflineFilter
()
internal/app/logic.go:179
↓ 3 callers
Method
archiveEntryPathLocked
(rel string)
internal/storage/store.go:693
↓ 3 callers
Function
archiveFileName
(title string)
internal/storage/store.go:622
↓ 3 callers
Function
centeredLeftPadding
(viewportWidth, contentWidth int)
internal/app/logic.go:2197
↓ 3 callers
Function
cleanTOCTitle
(title string)
internal/app/logic.go:2843
↓ 3 callers
Function
distributeRow
(left, center, right string, width int)
internal/app/logic.go:3048
↓ 3 callers
Method
ensureTabLinkItemsBuilt
()
internal/app/logic.go:1212
↓ 3 callers
Function
groupTabLinkIndicesByGroup
(items []tabLinkItem)
internal/app/logic.go:1257
↓ 3 callers
Method
jumpToTOCItem
(index int)
internal/app/logic.go:2719
↓ 3 callers
Method
maxViewportOffset
()
internal/app/logic.go:2138
↓ 3 callers
Method
navPathToRoot
(index int)
internal/app/logic.go:2431
↓ 3 callers
Method
nearestTOCIndexForViewport
()
internal/app/logic.go:2521
↓ 3 callers
Method
resizeComponents
()
internal/app/logic.go:2042
↓ 3 callers
Method
resolveTabLinkURL
(raw string)
internal/app/logic.go:1528
↓ 3 callers
Method
selectedActiveTabLink
()
internal/app/logic.go:1501
↓ 3 callers
Method
selectedActiveTabLinkGroup
()
internal/app/logic.go:1515
↓ 3 callers
Method
setActiveTabLinkCursor
(index int)
internal/app/logic.go:1428
↓ 3 callers
Method
setActiveTabLinkGroupExpanded
(group string, expanded bool)
internal/app/logic.go:1317
next →
1–100 of 378, ranked by callers