Open a note by query in your preferred application. This is an alias for search --open.
bwrb open [options] [query]
| Option | Description |
|---|
-a, --app <mode> | Application to open with |
--picker <mode> | Picker mode: fzf, numbered, none |
-o, --output <format> | Output format: text, json |
--preview | Show preview in fzf picker |
-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 pattern |
| Mode | Description |
|---|
system | Open with OS default handler (default) |
editor | Open in terminal editor ($EDITOR or config.editor) |
visual | Open in GUI editor ($VISUAL or config.visual) |
obsidian | Open in Obsidian via URI scheme |
print | Print path to stdout (for scripting) |
# Browse all notes with picker
# Open specific note (uses config default)
bwrb open "My Note" --app obsidian
bwrb open "My Note" --app editor
bwrb open --where "status=active"
# Open high-priority task
bwrb open -t task -w "priority=high"
# Find and open note containing TODO
The default app is determined by:
--app flag (explicit)
BWRB_DEFAULT_APP environment variable
config.open_with in .bwrb/schema.json
- Fallback:
system
# Set default via environment
export BWRB_DEFAULT_APP=editor
bwrb open "My Note" # Opens in $EDITOR
| Mode | Behavior |
|---|
fzf | Interactive fuzzy finder (default) |
numbered | Numbered list selection |
none | No picker - fail if ambiguous |