On Jan 31, 2023, at 6:55 AM, BeeRich33 <[email protected]> wrote:
> 
> Is there a way to get shell integration to point to a specific line in a 
> BBEdit file?
> 
> I want to use iTerm2 to display links to files that can be opened in BBEdit 
> (.md files), but I want that click navigation to also go to the line.  
> 
> Can this be done?

>From the BBEdit command line tool man page:

       +<line number>, filename:<line number>
            Go to line number. For example, to select line 33:

                    bbedit +33 filename
                    bbedit filename:33

            You may also use a character offset specification:

                    bbedit +33:10 filename
                    bbedit filename:33:10

            This will place the insertion point at character offset 10 on line
            33 in the above example.

            When piping data into bbedit, you can also add a line number
            specifier, and BBEdit will place the insertion point at the
            beginning of the indicated line, e.g.

                    ls -la | bbedit +5

            will select the fifth line of text in the text document. (Using
            --append or --prepend is allowed, but works at cross purposes: the
            indicated line in the document will be selected, irrespective of
            whether it's in the piped data or not.)

            Character offset specifications are allowed here as well:

                    ls -la | bbedit +5:60

Regards,
Neil Faiman

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/0E696A22-E7BC-47E9-AC9A-162C3F7C0533%40faiman.org.

Reply via email to