Skip to content

Commit 616eaee

Browse files
committed
fix(ui): Fix help text and usage examples
Updates the help documentation to fix inconsistent formatting and add missing information: - Adds documentation for the new 'r' refresh key functionality - Fixes incorrect escaping in glob pattern examples - Adds missing --deps and --max-depth flag documentation - Corrects spacing and indentation in usage examples
1 parent 028d083 commit 616eaee

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

internal/ui/help.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Selection & Output:
2727
View Options:
2828
i Toggle .gitignore filter
2929
. Toggle hidden files
30+
r Refresh file list & reset selection
3031
? Toggle help screen
3132
q Quit`
3233

@@ -39,10 +40,12 @@ const UsageText = `Usage:
3940
-o, --output file Output file path (default: current directory)
4041
-t, --temp Use system temporary directory for output file
4142
-g, --glob pattern Include/exclude files and directories
42-
(e.g., --glob="*.{ts,tsx}" --glob="\\!*.spec.ts")
43+
(e.g., --glob="*.{ts,tsx}" --glob="\!*.spec.ts")
4344
-f, --format format Output format (available: markdown, text, xml)
4445
-S, --skip-redaction Skip automatic secret redaction (Default: false)
4546
WARNING: This may expose sensitive information!
47+
--deps Automatically include direct dependencies (Go, JS/TS)
48+
--max-depth depth Maximum depth for dependency resolution (-1 for unlimited, default: 1)
4649
--theme Set the UI theme (available: catppuccin-latte,
4750
catppuccin-frappe, catppuccin-macchiato,
4851
catppuccin-mocha, dracula, nord)
@@ -51,11 +54,11 @@ const UsageText = `Usage:
5154
# Grab files in current directory interactively
5255
grab
5356
54-
# Grab all files in current directory (non-interactive)
55-
grab -n
57+
# Grab all files in current directory (non-interactive)
58+
grab -n
5659
5760
# Grab specific directory interactively including dependencies
58-
grab --deps /path/to/project
61+
grab --deps /path/to/project
5962
6063
# Specify custom output file
6164
grab -o output.md /path/to/project
@@ -67,4 +70,4 @@ const UsageText = `Usage:
6770
grab -g="*.go" /path/to/project
6871
6972
# Multiple glob patterns
70-
grab -g="*.{ts,tsx}" -g="\\!*.spec.{ts,tsx}"`
73+
grab -g="*.{ts,tsx}" -g="\!*.spec.{ts,tsx}"`

0 commit comments

Comments
 (0)