diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-23 09:03:08 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-23 09:03:08 +0200 |
| commit | bba1879c343ab4dee38bb6547b00a527ff6e96b8 (patch) | |
| tree | 30244f7cfa49f89e472be29a24a2e007615344d2 | |
| parent | b0ab982ba73a2661ebf7a98e83074e6ae2492a25 (diff) | |
Bump version to 0.12.0v0.12.0
Amp-Thread-ID: https://ampcode.com/threads/T-019d197f-3cb2-775c-ba8b-ff16be288021
Co-authored-by: Amp <amp@ampcode.com>
| -rw-r--r-- | internal/ui/handlers.go | 2 | ||||
| -rw-r--r-- | internal/ui/keyhandlers.go | 8 | ||||
| -rw-r--r-- | internal/version.go | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/internal/ui/handlers.go b/internal/ui/handlers.go index 3122a34..d61e166 100644 --- a/internal/ui/handlers.go +++ b/internal/ui/handlers.go @@ -601,6 +601,8 @@ func (m *Model) handleTaskDetailMode(msg tea.KeyPressMsg) (tea.Model, tea.Cmd) { case "G", "end": m.detailFieldIndex = m.getDetailFieldCount() - 1 return m, nil + case "o": + return m.handleOpenURL() case "i", "enter": // Check if current field is editable return m.handleDetailFieldEdit() diff --git a/internal/ui/keyhandlers.go b/internal/ui/keyhandlers.go index 9eedafa..528a8c8 100644 --- a/internal/ui/keyhandlers.go +++ b/internal/ui/keyhandlers.go @@ -229,6 +229,14 @@ func (m *Model) handleOpenURL() (tea.Model, tea.Cmd) { url := urlRegex.FindString(task.Description) if url == "" { + for _, ann := range task.Annotations { + url = urlRegex.FindString(ann.Description) + if url != "" { + break + } + } + } + if url == "" { return m, nil } diff --git a/internal/version.go b/internal/version.go index b150a05..d01f156 100644 --- a/internal/version.go +++ b/internal/version.go @@ -1,4 +1,4 @@ package internal // Version is the current version of Task Samurai. -const Version = "0.11.4" +const Version = "0.12.0" |
