Skip to content

bwrb edit

Edit the frontmatter of an existing note. This is an alias for search --edit.

Terminal window
bwrb edit [options] [query]
OptionDescription
-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, --openOpen the note after editing
--app <mode>App mode for --open: system, editor, visual, obsidian, print
--picker <mode>Picker mode: fzf, numbered, none
Terminal window
# Find and edit interactively
bwrb edit "My Note"
# Edit a task by name
bwrb edit -t task "Review"
# Edit within Projects folder
bwrb edit --path "Projects/**" "Design"

For scripting and automation:

Terminal window
# Update a single field
bwrb edit "My Task" --json '{"status":"done"}'
# Update multiple fields
bwrb edit -t task --where "status == 'active'" "Deploy" --json '{"priority":"high"}'
Terminal window
# Open the note after editing
bwrb edit "My Note" --open
# Edit then open in $EDITOR
bwrb edit "My Note" --open --app editor

Edit supports all four targeting selectors. See Targeting Model for details.

Terminal window
# Combine selectors to narrow results
bwrb edit -t task -p "Work/**" -w "status == 'active'" "Deploy"

When multiple notes match your query:

ModeBehavior
fzfInteractive fuzzy finder (default)
numberedNumbered list selection
noneError on ambiguity (for scripting)