Skip to content

Commit 36ded6d

Browse files
committed
Quote search query safely in filter breadcrumb
Use %q instead of \"%s\" so queries containing quotes or backslashes produce a copy-pasteable command rather than broken shell input.
1 parent fcd8d82 commit 36ded6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/commands/search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use 'fizzy card list' with --search and the relevant filter flags.`,
3737

3838
breadcrumbs := []Breadcrumb{
3939
breadcrumb("show", "fizzy card show <number>", "View card details"),
40-
breadcrumb("filter", fmt.Sprintf("fizzy card list --search \"%s\" --board <id>", query), "Filter cards by criteria"),
40+
breadcrumb("filter", fmt.Sprintf("fizzy card list --search %q --board <id>", query), "Filter cards by criteria"),
4141
}
4242

4343
printList(items, searchColumns, summary, breadcrumbs)

0 commit comments

Comments
 (0)