From 69b6aa31dbe018f73bfa96f7b775d00003bad209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= <1224732+snonux@users.noreply.github.com> Date: Fri, 20 Jun 2025 22:59:40 +0300 Subject: Add version constant and status bar info --- internal/ui/table.go | 6 ++++-- internal/version.go | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/internal/ui/table.go b/internal/ui/table.go index 5ac329f..ba7000c 100644 --- a/internal/ui/table.go +++ b/internal/ui/table.go @@ -14,6 +14,7 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" + "tasksamurai/internal" atable "tasksamurai/internal/atable" "tasksamurai/internal/task" ) @@ -479,7 +480,7 @@ func (m Model) View() string { } func (m Model) statusLine() string { - status := fmt.Sprintf("Total:%d InProgress:%d Due:%d", m.total, m.inProgress, m.due) + status := fmt.Sprintf("Total:%d InProgress:%d Due:%d | press H for help", m.total, m.inProgress, m.due) return lipgloss.NewStyle(). Foreground(lipgloss.Color("229")). Background(lipgloss.Color("57")). @@ -493,11 +494,12 @@ func (m Model) topStatusLine() string { if idx := m.tbl.ColumnCursor(); idx >= 0 && idx < len(cols) { header = cols[idx].Title } + line := fmt.Sprintf("Task Samurai %s | %s", internal.Version, header) return lipgloss.NewStyle(). Foreground(lipgloss.Color("229")). Background(lipgloss.Color("57")). Width(m.tbl.Width()). - Render(header) + Render(line) } func taskToRow(t task.Task) atable.Row { diff --git a/internal/version.go b/internal/version.go index 8826dc9..eb311f7 100644 --- a/internal/version.go +++ b/internal/version.go @@ -1,3 +1,4 @@ package internal -const Version = "v0.1.0" +// Version is the current version of Task Samurai. +const Version = "0.0.1" -- cgit v1.2.3