GUI Mode

GUI Mode

GUI mode launches a native desktop window with an embedded web view, providing a dedicated markdown browsing experience.

Launching

mbr -g /path/to/notes

If no path is provided, mbr uses the current directory.

Features

Native Menu Bar

mbr provides platform-appropriate menus:

macOS:

Windows/Linux:

Keyboard Shortcuts

Window Controls:

ActionmacOSWindows/Linux
Open FolderCmd+OCtrl+O
Reload PageCmd+RCtrl+R
Go BackCmd+[Alt+Left
Go ForwardCmd+]Alt+Right
Close WindowCmd+WCtrl+W
QuitCmd+QAlt+F4
Developer ToolsCmd+Option+ICtrl+Shift+I

In-Page Navigation:

KeyAction
-Open file browser sidebar
/Open search dialog
EscapeClose sidebar or search
/ Navigate items
EnterOpen selected

See Server Mode: File Browser Sidebar for full details on the browser panel.

Live Reload

When files change on disk, the GUI automatically reloads the current page. This enables a smooth writing workflow:

  1. Open your notes in mbr GUI
  2. Edit files in your preferred editor
  3. See changes instantly in mbr

Switching Directories

Use File → Open Folder (Cmd+O) to switch to a different markdown repository without restarting mbr.

macOS App Bundle

The macOS release includes MBR.app, a proper application bundle that:

Installing the App Bundle

  1. Download the macOS release from GitHub
  2. Move MBR.app to /Applications
  3. Double-click to launch, or run from Terminal:
open -a MBR /path/to/notes

Command-Line Access

Even with the app bundle installed, you can use the command-line interface:

# Use the binary inside the app bundle
/Applications/MBR.app/Contents/MacOS/mbr -s ~/notes

Or add an alias to your shell:

alias mbr="/Applications/MBR.app/Contents/MacOS/mbr"

Developer Tools

Press Cmd+Option+I (macOS) or Ctrl+Shift+I (Windows/Linux) to open developer tools. This is useful for:

Window Behavior

Troubleshooting

Window Won’t Open

If the GUI window fails to open:

  1. Check if a server is already running on port 5200
  2. Try with verbose logging: mbr -g -vv ~/notes
  3. Ensure your system allows the app (macOS Gatekeeper)

Slow Performance

If rendering is slow:

  1. Check file count in the repository
  2. Ensure fast storage (SSD recommended for large repos)
  3. Consider using server mode for very large repositories

macOS Gatekeeper

If macOS blocks the app:

# Remove quarantine flag
xattr -dr com.apple.quarantine /Applications/MBR.app

Or right-click the app and select “Open” to bypass Gatekeeper once.