Commit 8ae6ff8196

8ae6ff8196237476da24c4224a345240d0b60800

parent: e17354fe83

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-25 22:28 UTC

Menu-bar clock: the clock symbol instead of an emoji

While a clock runs, the menu bar item shows the clock symbol beside the
elapsed time, as the toolbar does.

Ref #223

Layout: unified · split

Changed files (2)
Sources/Orgstar/ClockViews.swift +3 −2 · view
@@ -150,8 +150,9 @@ final class ClockStatusItem: NSObject {
150 private func refresh() { 150 private func refresh() {
151 guard let button = item?.button else { return } 151 guard let button = item?.button else { return }
152 if let running { 152 if let running {
153 button.image = nil 153 button.image = NSImage(systemSymbolName: "clock", accessibilityDescription: String(localized: "Clocked in"))
154 button.title = "⏱ " + clockElapsed(running, now: Date()) 154 button.imagePosition = .imageLeading
155 button.title = clockElapsed(running, now: Date())
155 } else { 156 } else {
156 button.image = NSImage(systemSymbolName: "star", accessibilityDescription: "orgstar") 157 button.image = NSImage(systemSymbolName: "star", accessibilityDescription: "orgstar")
157 button.title = "" 158 button.title = ""
docs/manual/guide/06-dates-and-clocking.org +1 −1 · view
@@ -315,7 +315,7 @@ An existing drawer of that name always takes the new line.
315While a clock runs, orgstar shows it in two places, refreshed every 30 seconds: 315While a clock runs, orgstar shows it in two places, refreshed every 30 seconds:
316 316
317- the main window's toolbar, with a clock symbol, the heading and the elapsed time: =Write the report 0:42=; 317- the main window's toolbar, with a clock symbol, the heading and the elapsed time: =Write the report 0:42=;
318- the macOS menu bar, with the elapsed time. 318- the macOS menu bar, with the clock symbol and the elapsed time.
319 319
320The time shown is the time since you clocked in, not the entry's total. Each of them opens a menu with Clock Out, Cancel Clock and Go to Clocked Entry. The toolbar's menu also has Clock In to Recent Entry…, Go to Recent Clocked Entry… and the recent entries. The menu bar item also has Clock In to Recent Entry…, Clock Report and a Recent Entries section. Choosing a recent entry clocks in to it. 320The time shown is the time since you clocked in, not the entry's total. Each of them opens a menu with Clock Out, Cancel Clock and Go to Clocked Entry. The toolbar's menu also has Clock In to Recent Entry…, Go to Recent Clocked Entry… and the recent entries. The menu bar item also has Clock In to Recent Entry…, Clock Report and a Recent Entries section. Choosing a recent entry clocks in to it.
321 321
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form