Re: Are there any cross referencing hooks?

2017-11-17 Thread Rich Siegel
On 11/16/17 at 1:31 AM, reflectiv...@gmail.com (Everywhere is Nowhere) wrote: So let's say I want to implement something like ctags lookup for C/C++ programs in BBEdit... [...] WAYRTTD? There are many ways to accomplish this. :-) BBEdit already has ctags lookup built in (try right-clicking

Are there any cross referencing hooks?

2017-11-17 Thread Everywhere is Nowhere
So let's say I want to implement something like ctags lookup for C/C++ programs in BBEdit... wherein I could put the cursor on a word and click, and it would invoke some code to do a lookup and anything with the result (in my case I want to send something in a form of my choosing to a

Re: Filter to reverse order of lines

2017-11-17 Thread Rich Siegel
On 11/17/17 at 6:36 AM, ms...@podiuminternational.org (Marek Stepanek) wrote: I would like to reverse the order of a selected lines with a BBEdit filter. Best with Perl. Just last week, in fact. :-) Enjoy, R. -- Rich Siegel

Re: Filter to reverse order of lines

2017-11-17 Thread Mark Damon Hughes
> On Nov 17, 2017, at 03:36, Marek Stepanek > wrote: > Hello all! > I would like to reverse the order of a selected lines with a BBEdit > filter. Best with Perl. I'm sure there's a Perl one-liner, but the Python script I use is: #!/usr/bin/env python3 import sys

Filter to reverse order of lines

2017-11-17 Thread Marek Stepanek
Hello all! I would like to reverse the order of a selected lines with a BBEdit filter. Best with Perl. My approach is something like follows: #!/usr/bin/local/perl use File::ReadBackwards; use warnings; use strict; tie *BW, 'File::ReadBackwards', (<>) or die