bwrb edit
Edit the frontmatter of an existing note. This is an alias for search --edit.
Synopsis
Section titled “Synopsis”bwrb edit [options] [query]Options
Section titled “Options”| Option | Description |
|---|---|
-t, --type <type> | Filter by note type |
-p, --path <glob> | Filter by path pattern |
-w, --where <expr> | Filter by frontmatter expression (repeatable) |
-b, --body <pattern> | Filter by body content |
--json <patch> | Non-interactive patch/merge mode |
-o, --open | Open the note after editing |
--app <mode> | App mode for --open: system, editor, visual, obsidian, print |
--picker <mode> | Picker mode: fzf, numbered, none |
Examples
Section titled “Examples”Interactive Editing
Section titled “Interactive Editing”# Find and edit interactivelybwrb edit "My Note"
# Edit a task by namebwrb edit -t task "Review"
# Edit within Projects folderbwrb edit --path "Projects/**" "Design"Non-interactive JSON Mode
Section titled “Non-interactive JSON Mode”For scripting and automation:
# Update a single fieldbwrb edit "My Task" --json '{"status":"done"}'
# Update multiple fieldsbwrb edit -t task --where "status == 'active'" "Deploy" --json '{"priority":"high"}'Edit and Open
Section titled “Edit and Open”# Open the note after editingbwrb edit "My Note" --open
# Edit then open in $EDITORbwrb edit "My Note" --open --app editorTargeting
Section titled “Targeting”Edit supports all four targeting selectors. See Targeting Model for details.
# Combine selectors to narrow resultsbwrb edit -t task -p "Work/**" -w "status == 'active'" "Deploy"Picker Modes
Section titled “Picker Modes”When multiple notes match your query:
| Mode | Behavior |
|---|---|
fzf | Interactive fuzzy finder (default) |
numbered | Numbered list selection |
none | Error on ambiguity (for scripting) |
See Also
Section titled “See Also”- bwrb search — Full search command (edit is an alias)
- bwrb open — Open notes without editing
- bwrb bulk — Batch frontmatter changes
- Targeting Model — Selector reference