diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 22:59:40 +0300 |
|---|---|---|
| committer | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 22:59:40 +0300 |
| commit | 69b6aa31dbe018f73bfa96f7b775d00003bad209 (patch) | |
| tree | 3ca3e1283cb93188b1ce15b5ddb5da3b93fe6489 | |
| parent | da8c880889801c72f12dbdef2d2e677a0f510bc3 (diff) | |
Add version constant and status bar info
| -rw-r--r-- | internal/ui/table.go | 6 | ||||
| -rw-r--r-- | 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" |
