bbedit

From RaySoft

The bbedit tool is a simple utility that allows you to open files in BBEdit via the command line. Type bbedit followed by a list of file names to open the specified files for editing in BBEdit.[1]

In addition to files, you can also specify FTP or SFTP URLs to files or directories, to have BBEdit open the specified files, or an FTP/SFTP browser for each directory.'[1]

Documentation

man 1 'bbedit'

Syntax

bbedit [PARAMETER ...] [FILE|URL ...]

Parameters

--append
BBEdit will append piped data to the active text document. If the active document is not of the appropriate type, BBEdit will create a new document and place the piped data in it.
-b, --background
Launch BBEdit in the background if it's not already running, or keep it in the background if it is. If this option is absent, BBEdit will come to the foreground after the files are opened.
-c, --create
Create the specified files, unless they exist already, in which case they are opened. The new files are created empty.
-l, --launch
Launch BBEdit (or activate it, if it's already running), without opening any files.
--new-window
Opens the specified files as separate documents in a new text window. If you use bbedit to open a directory, --new-window will always open a window for the directory, even if it is already open in another window.
--project
Creates a synthetic project (named with $CWD) containing the specified files.

Examples

Create a new BBEdit project for configuration files
cd "${HOME}"

bbedit --project '.config/' '.profile' '.vim/' '.vimrc'

References

  1. 1.0 1.1 man 1 'bbedit'