Skip to content

bwrb open

Open a note by query in your preferred application. This is an alias for search --open.

Terminal window
bwrb open [options] [query]
OptionDescription
-a, --app <mode>Application to open with
--picker <mode>Picker mode: fzf, numbered, none
-o, --output <format>Output format: text, json
--previewShow 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
ModeDescription
systemOpen with OS default handler (default)
editorOpen in terminal editor ($EDITOR or config.editor)
visualOpen in GUI editor ($VISUAL or config.visual)
obsidianOpen in Obsidian via URI scheme
printPrint path to stdout (for scripting)
Terminal window
# Browse all notes with picker
bwrb open
# Open specific note (uses config default)
bwrb open "My Note"
# Open in Obsidian
bwrb open "My Note" --app obsidian
# Open in $EDITOR
bwrb open "My Note" --app editor
Terminal window
# Pick from all tasks
bwrb open --type task
# Pick from active notes
bwrb open --where "status=active"
# Open high-priority task
bwrb open -t task -w "priority=high"
# Find and open note containing TODO
bwrb open --body "TODO"

The default app is determined by:

  1. --app flag (explicit)
  2. BWRB_DEFAULT_APP environment variable
  3. config.open_with in .bwrb/schema.json
  4. Fallback: system
Terminal window
# Set default via environment
export BWRB_DEFAULT_APP=editor
bwrb open "My Note" # Opens in $EDITOR
ModeBehavior
fzfInteractive fuzzy finder (default)
numberedNumbered list selection
noneNo picker - fail if ambiguous