Created
March 22, 2022 11:22
Revisions
-
extratone created this gist
Mar 22, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ BBEdit now supports using the ‘x-bbedit’ URL scheme for opening files, and optionally specifying destination line and column numbers. The syntax for this scheme is: `x-bbedit://open?url=file:///path/to/some/file` where ‘/path/to/some/file’ is the actual path to the file you want BBEdit to open. You can also specify a specific line to select when opening the file; for example: `x-bbedit://open?url=file:///path/to/some/file&line=5` or if you also include add a column position, then BBEdit will place the insertion point before the indicated character on the previously-specified line: `x-bbedit://open?url=file:///path/to/some/file&line=5&column=42` Try clicking on this URL, and you’ll see that it opens one of your local files in BBEdit, even though you’re viewing it in a browser window: `x-bbedit://open?url=file:///etc/hosts` An ‘x-bbedit’ URL is guaranteed to launch BBEdit when opened from another application, unlike ‘file’ or ‘editor’ URLs, which are at the mercy of the OS to decide which application should open any given file.