The reader has the ticket selected, which is the whole reason to type a command on the board rather than in a shell, so where the line is naming a ticket the selected card's short id is drawn after the cursor in grey and tab takes it into the line. Where a ticket goes is completions.rs's answer, through a new `ticket_argument` over the three tables the fish half is generated from. A copy of the positions on the board would go wrong the next time a command grew a ticket argument, and silently, since the tests guarding the first copy would not read the second. TICKET_FLAGS holds (command, flag) pairs now, the shape TAG_FLAGS already had, and the `chown --clear` rule the fish block wrote out by hand is generated from it. Only chown's --clear names a ticket: relate's takes a kind and set's a field, and the flag alone cannot tell the three apart. The suggestion is derived on every call rather than held on the Prompt, so what the row draws and what tab takes are one answer, and it is offered only with the cursor at the end of the line, while a card is selected, and while the id still starts with what is typed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
25 lines
702 B
TOML
25 lines
702 B
TOML
[package]
|
|
name = "worklane"
|
|
version = "0.33.3"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
clap = { version = "4", features = ["derive"] }
|
|
anyhow = "1"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
libc = "0.2"
|
|
# unstable-rendered-line-info for Paragraph::line_count, which is how the detail view
|
|
# knows where its text ends. Counting the wrapping by hand would only agree with the
|
|
# widget until one of us changed.
|
|
ratatui = { version = "0.29", features = ["unstable-rendered-line-info"] }
|
|
crossterm = "0.28"
|
|
clap_complete = "4.6.9"
|
|
serde = { version = "1", features = ["derive"] }
|
|
toml = "0.8"
|
|
|
|
[dev-dependencies]
|
|
assert_cmd = "2"
|
|
assert_fs = "1"
|
|
tempfile = "3"
|