lune

created pr with 124.1 on 2026-04-22T02:46:44Z · by 613b58b7
changed status to closed on 2026-06-21T16:45:31Z · by 66ddd677
Closing as superceded by 126
cmds
checkout latest patchset:
ssh pr.pico.sh print 124 | git am -3
checkout any patchset in a patch request:
ssh pr.pico.sh print 124.[rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 124
set PR to open (enables RSS notifications):
ssh pr.pico.sh pr open 124
set PR to draft (stops RSS notifications):
ssh pr.pico.sh pr draft 124

Patchset 124.1 on 2026-04-22T02:46:44Z · commit e399018

listing real name of tasks
juan 2026-04-21T03:21:16Z
construction of db for management of decrypted names of tasks
juan 2026-04-21T05:43:09Z
fix UTF8 chracteres
juan 2026-04-21T21:13:24Z
filter by status and coloring types of status
juan 2026-04-21T21:18:53Z
update help
juan 2026-04-21T21:21:36Z
list areas names
juan 2026-04-21T21:44:53Z
adjust table tasks to truncate name and list area
juan 2026-04-21T21:56:40Z
partial implementation of listing tasks by areas
juan 2026-04-21T22:05:20Z
final implementation of listing tasks by areas with UTF-8 chracteres
juan 2026-04-21T22:10:20Z
sort on task list to show first do now
juan 2026-04-21T22:33:29Z
update with 8 char of id and db.go
juan 2026-04-21T23:27:54Z
partial implementation of TUI menu on task update
juan 2026-04-21T23:35:35Z
task name correcion on TUI menu of Update task
juan 2026-04-21T23:38:19Z
TUI menu for update task with others flags
juan 2026-04-21T23:43:02Z
helper for TUI update task
juan 2026-04-21T23:49:56Z
search by first 8 char of note id for editing it
juan 2026-04-22T00:00:17Z
partial implementation on note TUI menu for update
juan 2026-04-22T00:05:46Z
TUI menu notebook just with tags
juan 2026-04-22T00:20:55Z
Note update now let you insert only the first 8 char of notebook id in update
juan 2026-04-22T00:25:53Z
implementation of (lune note notebook-list) for listing all notebooks and its ID
juan 2026-04-22T01:10:51Z
partial implementation of lune note show-content ID
juan 2026-04-22T02:01:11Z
convert \n in new line and \ in space for lune note show-content ID
juan 2026-04-22T02:18:42Z
+5 -1 cmd/note/update.go #
......@@ -12,6 +12,7 @@ import (
1212 "git.secluded.site/lune/internal/completion"
1313 "git.secluded.site/lune/internal/config"
1414 "git.secluded.site/lune/internal/dateutil"
15+ "git.secluded.site/lune/internal/db"
1516 "git.secluded.site/lune/internal/ui"
1617 "git.secluded.site/lune/internal/validate"
1718 "github.com/spf13/cobra"
......@@ -39,7 +40,10 @@ func init() {
3940 }
4041
4142 func runUpdate(cmd *cobra.Command, args []string) error {
42- id, err := validate.Reference(args[0])
43+ idInput := args[0]
44+ id := db.CompleteID(idInput)
45+
46+ id, err := validate.Reference(id)
4347 if err != nil {
4448 return err
4549 }
+5 -1 cmd/task/update.go #
......@@ -12,6 +12,7 @@ import (
1212 "git.secluded.site/lune/internal/completion"
1313 "git.secluded.site/lune/internal/config"
1414 "git.secluded.site/lune/internal/dateutil"
15+ "git.secluded.site/lune/internal/db"
1516 "git.secluded.site/lune/internal/ui"
1617 "git.secluded.site/lune/internal/validate"
1718 "github.com/spf13/cobra"
......@@ -52,7 +53,10 @@ func init() {
5253 }
5354
5455 func runUpdate(cmd *cobra.Command, args []string) error {
55- id, err := validate.Reference(args[0])
56+ idInput := args[0]
57+ id := db.CompleteID(idInput)
58+
59+ id, err := validate.Reference(id)
5660 if err != nil {
5761 return err
5862 }
+18 -0 internal/db/reader.go #
......@@ -147,6 +147,24 @@ func EnrichTask(taskID string) (string, error) {
147147 return nameCache[taskID], nil
148148 }
149149
150+// CompleteID searches for the full UUID by an 8-character prefix.
151+func CompleteID(prefix string) string {
152+ if len(prefix) != 8 {
153+ return prefix
154+ }
155+
156+ if !cacheWarmed {
157+ _ = WarmCache()
158+ }
159+
160+ for id := range nameCache {
161+ if strings.HasPrefix(id, prefix) {
162+ return id
163+ }
164+ }
165+ return prefix
166+}
167+
150168 // Area represents a Lunatask area found in the local database.
151169 type Area struct {
152170 ID string
Back to top