diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 22:59:54 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-20 22:59:54 +0300 |
| commit | f9cb77093a930c92c0d130d827148c518892e42c (patch) | |
| tree | 8d12356c2e650b0b8688ceea747ab18ad85e2134 /internal | |
| parent | 676b166996625131b07abd5515a39a38c366e0df (diff) | |
| parent | 69b6aa31dbe018f73bfa96f7b775d00003bad209 (diff) | |
Merge pull request #67 from snonux/codex/add-help-and-version-info-to-status-bars
Display version and help hint in status bars
Diffstat (limited to 'internal')
| -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 223f1d1..73971a1 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" ) @@ -480,7 +481,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")). @@ -494,11 +495,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" |
