The board reads. Changing anything meant quitting it and retyping an id that was already selected. So `:` opens a one line editor in the footer and the line is a worklane command, spelled exactly as the shell spells it. This is the mode and the grammar check, not the doing. Enter tokenises the line with split_line, prepends the binary's own name and hands the arguments to the same Cli definition the shell reaches, so a flag added to a command is typeable here the day it is added and no list of verbs lives on the board to go stale. A line that resolves is named and the prompt closes; a line that does not keeps the prompt open with the line intact and clap's own message, cut back to what fits a row. Running it is 53ffb94, and the notice and the `↵ check` key both say so rather than reading like a move that happened. The prompt owns the keyboard while it is open, the contract search_key and picker_key already keep, and declines ctrl-c for the same reason they do. A line that ends inside a quote never reaches clap, which is what the splitter's Unclosed state is for. --help is caught, or clap's page lands on the alternate screen the way an unsunk println! would. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
23 lines
641 B
TOML
23 lines
641 B
TOML
[package]
|
|
name = "worklane"
|
|
version = "0.32.15"
|
|
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"
|
|
|
|
[dev-dependencies]
|
|
assert_cmd = "2"
|
|
assert_fs = "1"
|
|
tempfile = "3"
|