Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cooklang/cooklang-obsidian
/ functions
Functions
112 in github.com/cooklang/cooklang-obsidian
⨍
Functions
112
◇
Types & classes
47
↓ 23 callers
Method
reloadCookViews
()
src/main.ts:307
↓ 12 callers
Function
ing
(partial: Partial<AggInput>)
src/utils/ingredientAggregator.test.ts:4
↓ 11 callers
Function
numericFromQuantity
(quantity: any)
src/utils/quantityValue.ts:13
↓ 8 callers
Function
aggregateIngredients
(items: AggInput[])
src/utils/ingredientAggregator.ts:49
↓ 8 callers
Function
deriveServingsState
(baseServings: number | null, scale: number)
src/utils/scaling.ts:51
↓ 8 callers
Function
getSections
(recipe: CooklangRecipe)
src/utils/sectionHelpers.ts:38
↓ 8 callers
Function
section
(name: string | null, ingredientIndices: number[])
src/utils/ingredientSectionGroups.test.ts:6
↓ 8 callers
Method
setViewMode
(mode: 'source' | 'preview')
src/cookView.ts:151
↓ 7 callers
Function
extractStepNumber
(imageBasename: string, recipeBasename: string)
src/utils/stepImages.ts:22
↓ 7 callers
Function
parseServingsValue
(servings: Servings | undefined)
src/utils/scaling.ts:10
↓ 6 callers
Function
asText
(value: unknown)
src/utils/heroModel.ts:41
↓ 6 callers
Function
buildSectionGroups
( sections: SectionView[], inputForIndex: (index: number) => AggInput | null, )
src/utils/ingredientSectionGroups.ts:19
↓ 6 callers
Function
clampServings
(value: number, min = 1, max = 1000)
src/utils/scaling.ts:31
↓ 6 callers
Method
parse
* Parse recipe content * @param content - Raw recipe text * @param scale - Optional scaling factor * @returns Tuple of [parsed recipe,
src/services/ParserService.ts:143
↓ 6 callers
Function
resolveReferencePath
( recipeFolder: string, components: string[], name: string, )
src/utils/recipeReferences.ts:19
↓ 5 callers
Function
buildMetaPills
( recipe: CooklangRecipe, displayServings: number | null, )
src/utils/heroModel.ts:51
↓ 5 callers
Function
computeScale
(targetServings: number, baseServings: number)
src/utils/scaling.ts:25
↓ 5 callers
Function
formatQuantity
(n: number)
src/utils/ingredientAggregator.ts:40
↓ 5 callers
Function
makeRecipe
()
src/utils/sectionHelpers.test.ts:5
↓ 4 callers
Function
embedSettings
(base: CooklangSettings)
src/utils/embedSettings.ts:14
↓ 4 callers
Function
formatDuration
(minutes: number)
src/utils/heroModel.ts:33
↓ 4 callers
Function
fraction
(whole: number, num: number, den: number)
src/utils/quantityValue.test.ts:5
↓ 4 callers
Function
getStepImageFor
( stepNumber: number, recipeBasename: string, images: T[], )
src/utils/stepImages.ts:30
↓ 3 callers
Method
isReady
* Check if parser is ready
src/services/ParserService.ts:153
↓ 3 callers
Function
makeSettings
(overrides: Partial<CooklangSettings> = {})
src/utils/embedSettings.test.ts:5
↓ 3 callers
Method
renderPreview
()
src/cookView.ts:348
↓ 3 callers
Method
stopTimer
* Stop a running timer * @param timerId - ID of timer to stop
src/services/TimerService.ts:133
↓ 2 callers
Method
attachTimerToButton
* Create a timer button with countdown functionality * @param button - HTML button element to attach timer to * @param seconds - Duration in
src/services/TimerService.ts:67
↓ 2 callers
Method
buildRenderers
()
src/renderers/PreviewRenderer.ts:39
↓ 2 callers
Method
clear
()
src/cookView.ts:282
↓ 2 callers
Method
createRegion
(container: HTMLElement)
src/renderers/IngredientListRenderer.ts:74
↓ 2 callers
Method
dispose
* Stop all timers and clean up
src/services/TimerService.ts:227
↓ 2 callers
Function
formatTime
(seconds: number)
src/utils/timeFormatters.ts:15
↓ 2 callers
Method
getViewType
()
src/cookView.ts:306
↓ 2 callers
Method
initialize
* Initialize WASM and create parser instance * Safe to call multiple times - initialization happens only once * * @throws Error if WASM
src/services/ParserService.ts:52
↓ 2 callers
Method
initializeEditor
()
src/cookView.ts:108
↓ 2 callers
Method
playAlarm
* Play alarm sound
src/services/TimerService.ts:220
↓ 2 callers
Function
regular
(n: number)
src/utils/quantityValue.test.ts:4
↓ 2 callers
Method
render
(container: HTMLElement, ctx: RenderContext, mainImage: TFile | null)
src/renderers/HeroRenderer.ts:12
↓ 2 callers
Function
renderEmbedError
(el: HTMLElement, source: string, message: string)
src/main.ts:329
↓ 2 callers
Function
renderReferenceLink
( app: App, sourceFile: TFile | null, ref: RecipeRefTarget, parent: HTMLElement, )
src/renderers/referenceLink.ts:10
↓ 2 callers
Method
renderRow
(ul: HTMLElement, row: IngredientRow, ctx: RenderContext)
src/renderers/IngredientListRenderer.ts:84
↓ 2 callers
Method
toAggInput
(ing: any)
src/renderers/IngredientListRenderer.ts:110
↓ 1 callers
Function
createUnitMap
(minutesLabel: string, hoursLabel: string)
src/utils/timeFormatters.ts:40
↓ 1 callers
Function
findRecipeImages
(recipeFile: TFile | null)
src/utils/imageHelpers.ts:41
↓ 1 callers
Method
generateTimerId
* Generate unique timer ID
src/services/TimerService.ts:244
↓ 1 callers
Method
getInstance
* Get singleton instance
src/services/ParserService.ts:39
↓ 1 callers
Function
getMetadata
(recipe: CooklangRecipe)
src/recipeHelpers.ts:25
↓ 1 callers
Method
getTimer
* Get timer state * @param timerId - ID of timer * @returns Timer object or undefined if not found
src/services/TimerService.ts:198
↓ 1 callers
Function
hasNamedSections
(sections: SectionView[])
src/utils/sectionHelpers.ts:84
↓ 1 callers
Function
inputForIndex
(i: number)
src/utils/ingredientSectionGroups.test.ts:20
↓ 1 callers
Function
isImageExtension
(extension: string)
src/utils/imageHelpers.ts:23
↓ 1 callers
Function
isValidUrl
(str: string)
src/utils/urlValidators.ts:15
↓ 1 callers
Method
onThemeChange
()
src/cookView.ts:210
↓ 1 callers
Method
playTick
* Play tick sound
src/services/TimerService.ts:213
↓ 1 callers
Method
render
(container: HTMLElement, ctx: RenderContext)
src/renderers/IngredientListRenderer.ts:35
↓ 1 callers
Method
render
( container: HTMLElement, ctx: RenderContext, sections: SectionView[], file: T
src/renderers/MethodStepsRenderer.ts:27
↓ 1 callers
Method
renderPart
(body: HTMLElement, part: StepPart, unitMap: Record<string, number>, file: TFile | null)
src/renderers/MethodStepsRenderer.ts:103
↓ 1 callers
Method
renderStep
( region: HTMLElement, step: StepView, ctx: RenderContext, unitMap: Record<str
src/renderers/MethodStepsRenderer.ts:63
↓ 1 callers
Method
renderTimer
(span: HTMLElement, timer: any, unitMap: Record<string, number>)
src/renderers/MethodStepsRenderer.ts:135
↓ 1 callers
Method
startTimer
* Start a countdown timer * @param seconds - Duration in seconds * @param name - Timer name/label * @param onTick - Callback fired ever
src/services/TimerService.ts:94
↓ 1 callers
Method
switchMode
()
src/cookView.ts:165
↓ 1 callers
Function
totalMinutes
Total minutes from a RecipeTime (number or {prep,cook}).
src/utils/heroModel.ts:24
↓ 1 callers
Function
unitKey
Group key that treats "cup"/"cups" as the same unit.
src/utils/ingredientAggregator.ts:45
↓ 1 callers
Method
updateSettings
(settings: CooklangSettings)
src/renderers/PreviewRenderer.ts:49
Method
canAcceptExtension
(extension: string)
src/cookView.ts:302
Method
constructor
(leaf: WorkspaceLeaf, settings: CooklangSettings)
src/cookView.ts:46
Method
constructor
(app: App, plugin: CookPlugin)
src/settings.ts:38
Method
constructor
()
src/services/ParserService.ts:34
Method
constructor
* Create a new TimerService * @param settings - Plugin settings * @param config - Configuration with sound URLs and volumes
src/services/TimerService.ts:49
Method
constructor
(private app: App, private settings: CooklangSettings)
src/renderers/IngredientListRenderer.ts:33
Method
constructor
(private settings: CooklangSettings)
src/renderers/ScalerBarRenderer.ts:11
Method
constructor
(private settings: CooklangSettings)
src/renderers/TimerListRenderer.ts:15
Method
constructor
( private app: App, private settings: CooklangSettings, private timerService: TimerSer
src/renderers/MethodStepsRenderer.ts:21
Method
constructor
(private app: App, private timerService: TimerService)
src/renderers/MarkdownRecipeRenderer.ts:22
Method
constructor
( private app: App, private settings: CooklangSettings, private timerService: TimerSer
src/renderers/PreviewRenderer.ts:31
Method
constructor
(private settings: CooklangSettings)
src/renderers/MetadataRenderer.ts:18
Method
constructor
(private settings: CooklangSettings)
src/renderers/CookwareListRenderer.ts:15
Method
constructor
(private app: App, private settings: CooklangSettings)
src/renderers/HeroRenderer.ts:10
Method
display
()
src/settings.ts:43
Method
extensions
(value: number)
src/services/ParserService.ts:119
Method
getAllTimers
* Get all active timers * @returns Array of all timers
src/services/TimerService.ts:206
Method
getDisplayText
()
src/cookView.ts:297
Method
getIcon
()
src/cookView.ts:343
Method
getParser
* Get the parser instance (for advanced usage)
src/services/ParserService.ts:160
Method
getState
()
src/cookView.ts:311
Function
getSteps
(recipe: CooklangRecipe)
src/recipeHelpers.ts:34
Method
getViewData
()
src/cookView.ts:240
Method
inputForIndex
(index: number)
src/renderers/IngredientListRenderer.ts:38
Method
makeTimer
(button: HTMLElement, seconds: number, name: string)
src/cookView.ts:181
Method
onMoreOptionsMenu
(menu: any)
src/cookView.ts:198
Method
onOpen
()
src/cookView.ts:224
Method
onPaneMenu
(menu: any, source: string)
src/cookView.ts:185
Method
onResize
()
src/cookView.ts:339
Method
onload
()
src/cookView.ts:91
Method
onload
()
src/main.ts:20
Method
onunload
()
src/cookView.ts:169
Method
pauseTimer
* Pause a running timer * @param timerId - ID of timer to pause
src/services/TimerService.ts:145
Method
render
(container: HTMLElement, ctx: RenderContext)
src/renderers/ScalerBarRenderer.ts:13
Method
render
* Render timers list section if enabled and timers exist * @param recipe - Parsed recipe object * @param container - Container element to re
src/renderers/TimerListRenderer.ts:22
next →
1–100 of 112, ranked by callers