MCPcopy Create free account
hub / github.com/Noumena-Network/code / getBuiltInStatusLinePathDisplay

Function getBuiltInStatusLinePathDisplay

src/components/StatusLine.tsx:38–43  ·  view source on GitHub ↗
(settings: ReadonlySettings)

Source from the content-addressed store, hash-verified

36type BuiltInStatusLinePathDisplay = 'full' | 'short' | 'hidden';
37
38function getBuiltInStatusLinePathDisplay(settings: ReadonlySettings): BuiltInStatusLinePathDisplay {
39 if (settings?.statusLine?.type === 'builtin') {
40 return settings.statusLine.pathDisplay ?? 'full';
41 }
42 return 'full';
43}
44
45function formatBuiltInStatusLinePath(path: string, pathDisplay: BuiltInStatusLinePathDisplay): string | null {
46 if (pathDisplay === 'hidden') {

Callers 1

BuiltInStatusLineContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected