Chronobars

approved

by Daniel HidefjΓ€ll

Create time-based progress bars. - This plugin has not been manually reviewed by Obsidian staff.

β˜… 1 stars↓ 166 downloadsUpdated 13d agoGPL-3.0

Chronobars

Time Progress bars for Obsidian

ChronoBars Example

Features

  • πŸ•’ Flexible time formats - Supports both simple time (HH:MM) and full datetime (YYYY-MM-DD HH:MM)
  • πŸŒ™ Overnight support - Correctly handles ranges crossing midnight
  • 🎨 Customizable display - Show/hide percentage, dates, and add custom names

Installation

  1. Available via the Obsidian Community Plugins tab: search for "Chronobars"
  2. Or install manually:
    • Download the latest release
    • Extract to your vault's plugins folder: .obsidian/plugins/chrono-bars

Usage

Create a code block with the chrono-bar settings:

```chrono-bar
start: 09:00
end: 17:00
name: Workday
percentage: true
dates: true
```

Supported Parameters

ParameterDescriptionDefaultExamples
startStart time (required)-09:00, 2023-12-31 23:30
endEnd time (required)-17:00, 2024-01-01 02:00
nameCustom title for the barNonename: Workday
percentageShow/hide percentagetruepercentage: false
datesShow/hide date/time labelsfalsedates: true
remainingTimeFormatShow remaining time, letters pick units: y M d h m s (M is months)offd h m s, y M d h m s
remainingShorthand for remaining time with default d h m sfalseremaining: true
remainingPositionbelow shows under percent, replace hides percentbelowremainingPosition: replace
remainingLabelOptional prefix before remaining timeNoneremainingLabel: Left

Time Format Examples

  • Simple time: 14:30
  • Full datetime: 2023-12-31 23:30
  • Overnight range: 23:30 to 03:00 (automatically handles midnight crossing)

Remaining time format

Set remainingTimeFormat to pick which units to show. Use y years, M months, d days, h hours, m minutes, s seconds. Only listed units are shown, leading zeros are hidden, and the smallest unit is always kept. When s is included the line updates every second, otherwise every 30 seconds. Past events show Ended.

```chrono-bar
start: 2025-01-01 00:00
end: 2026-01-01 00:00
name: New Year Countdown
remainingTimeFormat: d h m s
```

Use remainingPosition: replace to hide the percentage and show only remaining time.

Examples

```chrono-bar
start: 2025-01-01 00:00
end: 2026-01-01 00:00
name: New Year Countdown
dates: true
```

Becomes:

New Year Example

Styling

You can customize the appearance by adding these CSS snippets to your vault:

.chrono-bar-container {
  /\* Container styles */
}

.chrono-bar {
  /\* Background bar styles */
  height: 20px;
}

.chrono-bar-fill {
  /\* Progress fill styles */
  background-color: var(--interactive-accent);
}

.chrono-bar-text {
  /\* Text styles */
}

Development

Want to contribute? Here's how to set up the development environment:

  1. Clone this repository

  2. npm install

  3. npm run dev to start compilation in watch mode

Support Found a bug or have a feature request? Please open an issue.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.