File Editor

BBFile Viewers & EditorsIncluded with bb
Get it for macOS

Edit files in BB with the Monaco editor instead of the read-only preview.


Overview

View source

Edit a file in bb instead of only reading it. It applies to every place where bb opens a file: chat links, the file search, and bb thread open. The editor is Monaco, the editor from VS Code.

What you get

  • Edit and save with Cmd+S, or Ctrl+S on Linux and Windows. If the file changed on disk since you opened it, the save stops and offers Reload or Overwrite.
  • Find in file with Cmd+F or Ctrl+F, multiple cursors, block selection, bracket matching, and code folding.
  • Syntax highlighting for about 86 common file types.
  • A file tree that you toggle from the file bar. Filter by path, expand directories, and open another file. Right-click a row to copy its absolute path, relative path, or filename.
  • Command palette actions for fold, unfold, sort selected lines, and copy the path of the current file.
  • Colors that follow your bb theme, including light and dark switches and custom palettes.

How it works

The plugin claims common code, configuration, and text extensions. Binary files such as images and PDFs stay with bb's own preview. Files larger than 8 MB open in the read-only preview.

To change the opener for one file type, go to Settings and open File openers. Right-click a file link for a one-off Open with choice.

There is no language server. Go-to-definition, find references, and type checking are not available.

More from BB

More in File Viewers & Editors 17

Browse, open, preview, or edit files and document vaults.

View all
File ManagerManage the files on the machine bb runs on without a terminal: browse, upload, move, rename, extract and hand them to the agent. Opens as a sidebar page, as a tab beside a thread that can start in that thread's folder, and from a file link in a message. Double-click shows images, PDF, video, Markdown and code; Space looks inside zip, tar, 7z and rar archives without extracting them. Multi-gigabyte uploads resume after a dropped connection. On a phone, selected rows get an Actions bar with the whole row menu. Access stays inside the home folder of the user bb runs as; tar, 7z and rar archives need tar and 7z on that machine.Foma405
FilesA VS Code-style file explorer and editor for the workspace behind a thread. Search in files finds a word across every file in the project: results are grouped by file with each hit highlighted, and clicking one opens the file on that line. It is smart case, with match-case, whole-word and regex toggles, and built for typing — file contents stay in memory between searches, so refining a query re-runs in tens of milliseconds, and a regex runs in its own worker so a runaway pattern cannot freeze BB. Around it: a file tree that shows dotfiles, editor tabs, a go-to-file palette (Cmd+P), find in the open file (Cmd+F), syntax highlighting in your BB code theme, and edit and save guarded so a change an agent made underneath you is never clobbered. Markdown files open rendered, with the source and the editor one click away. Two pickers choose the project and then its checkout or one of its worktrees; beside a thread it is pinned to that thread's worktree. Adds a `bb files` command so agents can browse and read the same workspace from the CLI, on whichever machine it lives.AbdElrahman Telb275