Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/cmd/idea/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ The idea is appended as a Markdown checklist line with a generated 4-char ID
and today's date. Use --id and --date to override those generated values
(handy when importing or backdating). By default the command writes the
current worktree's backlog; --main targets the main worktree's backlog,
--system targets the system-level backlog ($XDG_CONFIG_HOME/idea/backlog.md,
else ~/.config/idea/backlog.md), and
--system targets the system-level backlog (~/.config/idea/backlog.md), and
--file / IDEAS_FILE point at a different file (see "idea --help"). Outside a
git repo the system backlog is used automatically.

Expand Down
6 changes: 3 additions & 3 deletions src/cmd/idea/done.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ func doneCmd() *cobra.Command {
its text. If the query matches more than one open idea it is refused and the
ambiguous matches are listed, so you can be more specific or use the exact ID.
--main targets the main worktree's backlog, --system targets the system-level
backlog ($XDG_CONFIG_HOME/idea/backlog.md, else ~/.config/idea/backlog.md), and
--file / IDEAS_FILE point elsewhere (see "idea --help"). Outside a git repo the
system backlog is used automatically.
backlog (~/.config/idea/backlog.md), and --file / IDEAS_FILE point elsewhere
(see "idea --help"). Outside a git repo the system backlog is used
automatically.

idea done a7k2
idea done "dark mode"`,
Expand Down
5 changes: 2 additions & 3 deletions src/cmd/idea/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ substring of its text. If it matches more than one idea it is refused and the
ambiguous matches are listed, so you can be more specific or use the exact ID.
--id and --date additionally change the matched idea's ID or date. --main
targets the main worktree's backlog, --system targets the system-level backlog
($XDG_CONFIG_HOME/idea/backlog.md, else ~/.config/idea/backlog.md), and
--file / IDEAS_FILE point elsewhere (see "idea --help"). Outside a git repo the
system backlog is used automatically.
(~/.config/idea/backlog.md), and --file / IDEAS_FILE point elsewhere (see
"idea --help"). Outside a git repo the system backlog is used automatically.

idea edit a7k2 "wire up dark mode toggle"
idea edit a7k2 # open the current text in your editor
Expand Down
5 changes: 2 additions & 3 deletions src/cmd/idea/fmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ stdout stays empty; the report (one "adopted:" line per adopted idea plus
summary counts) goes to stderr. --check writes nothing, prints the same report,
and exits 1 when the file would change, 0 when it is already canonical. --main
targets the main worktree's backlog, --system targets the system-level backlog
($XDG_CONFIG_HOME/idea/backlog.md, else ~/.config/idea/backlog.md), and
--file / IDEAS_FILE point elsewhere (see "idea --help"). Outside a git repo the
system backlog is used automatically.
(~/.config/idea/backlog.md), and --file / IDEAS_FILE point elsewhere (see
"idea --help"). Outside a git repo the system backlog is used automatically.

idea fmt
idea fmt --check`,
Expand Down
6 changes: 3 additions & 3 deletions src/cmd/idea/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ prefix is never clipped) and the prefix is dimmed; --full shows the complete
text. When the output is piped or redirected, full canonical lines are emitted
regardless of --full so downstream tools see machine-parseable records. As with
every backlog command, --main targets the main worktree's backlog, --system
targets the system-level backlog ($XDG_CONFIG_HOME/idea/backlog.md, else
~/.config/idea/backlog.md), and --file / IDEAS_FILE point elsewhere (see
"idea --help"). Outside a git repo the system backlog is used automatically.
targets the system-level backlog (~/.config/idea/backlog.md), and
--file / IDEAS_FILE point elsewhere (see "idea --help"). Outside a git repo the
system backlog is used automatically.

idea list
idea list --all --sort id
Expand Down
4 changes: 2 additions & 2 deletions src/cmd/idea/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ Shorthand: "idea <text>" is equivalent to "idea add <text>".`,
},
}

root.PersistentFlags().StringVar(&fileFlag, "file", "", "Override backlog file path (relative to the git root, or to the system config dir $XDG_CONFIG_HOME/idea — else ~/.config/idea when outside a repo)")
root.PersistentFlags().StringVar(&fileFlag, "file", "", "Override backlog file path (relative to the git root, or to ~/.config/idea when outside a repo)")
root.PersistentFlags().BoolVar(&mainFlag, "main", false, "Operate on the main worktree's backlog instead of the current worktree")
root.PersistentFlags().BoolVar(&systemFlag, "system", false, "Operate on the system-level backlog ($XDG_CONFIG_HOME/idea/backlog.md, else ~/.config/idea/backlog.md) instead of a repo backlog")
root.PersistentFlags().BoolVar(&systemFlag, "system", false, "Operate on the system-level backlog (~/.config/idea/backlog.md) instead of a repo backlog")

root.AddCommand(
addCmd(),
Expand Down
6 changes: 3 additions & 3 deletions src/cmd/idea/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ printing only a count. There is no archive — the backlog is committed, so git
history is the recovery path. Long idea text is truncated to the terminal width
(--full shows it in full); piped output is always full and machine-parseable.
--main targets the main worktree's backlog, --system targets the system-level
backlog ($XDG_CONFIG_HOME/idea/backlog.md, else ~/.config/idea/backlog.md), and
--file / IDEAS_FILE point elsewhere (see "idea --help"). Outside a git repo the
system backlog is used automatically.
backlog (~/.config/idea/backlog.md), and --file / IDEAS_FILE point elsewhere
(see "idea --help"). Outside a git repo the system backlog is used
automatically.

idea prune
idea prune --force`,
Expand Down
6 changes: 3 additions & 3 deletions src/cmd/idea/reopen.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ func reopenCmd() *cobra.Command {
its text. If the query matches more than one done idea it is refused and the
ambiguous matches are listed, so you can be more specific or use the exact ID.
--main targets the main worktree's backlog, --system targets the system-level
backlog ($XDG_CONFIG_HOME/idea/backlog.md, else ~/.config/idea/backlog.md), and
--file / IDEAS_FILE point elsewhere (see "idea --help"). Outside a git repo the
system backlog is used automatically.
backlog (~/.config/idea/backlog.md), and --file / IDEAS_FILE point elsewhere
(see "idea --help"). Outside a git repo the system backlog is used
automatically.

idea reopen a7k2
idea reopen "dark mode"`,
Expand Down
6 changes: 3 additions & 3 deletions src/cmd/idea/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ substring of its text. If it matches more than one idea it is refused and the
ambiguous matches are listed, so you can be more specific or use the exact ID.
--force is required to confirm the deletion; without it the command refuses to
remove anything. --main targets the main worktree's backlog, --system targets
the system-level backlog ($XDG_CONFIG_HOME/idea/backlog.md, else
~/.config/idea/backlog.md), and --file / IDEAS_FILE point elsewhere (see
"idea --help"). Outside a git repo the system backlog is used automatically.
the system-level backlog (~/.config/idea/backlog.md), and --file / IDEAS_FILE
point elsewhere (see "idea --help"). Outside a git repo the system backlog is
used automatically.

idea rm a7k2 --force`,
Args: cobra.ExactArgs(1),
Expand Down
6 changes: 3 additions & 3 deletions src/cmd/idea/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ substring of its text. If it matches more than one idea it is refused and the
ambiguous matches are listed, so you can be more specific or use the exact ID.
--json emits the structured record (id, date, status, text) instead of the
formatted line. --main targets the main worktree's backlog, --system targets
the system-level backlog ($XDG_CONFIG_HOME/idea/backlog.md, else
~/.config/idea/backlog.md), and --file / IDEAS_FILE point elsewhere (see
"idea --help"). Outside a git repo the system backlog is used automatically.
the system-level backlog (~/.config/idea/backlog.md), and --file / IDEAS_FILE
point elsewhere (see "idea --help"). Outside a git repo the system backlog is
used automatically.

idea show a7k2
idea show "dark mode" --json`,
Expand Down
Loading