Thread View: news.software.readers
12 messages
12 total messages
Started by Paul Sture
Wed, 05 Feb 2014 19:40
[slrn] What's the best way to use BBEdit with slrn?
Author: Paul Sture
Date: Wed, 05 Feb 2014 19:40
Date: Wed, 05 Feb 2014 19:40
18 lines
1639 bytes
1639 bytes
I've just converted to slrn, but I am completely stumped how best to use BBEdit as the editor. I've got the command line call set up fine, but I want to tell BBEdit somehow that I'm not editing html or C code, just the kind of plain text used for newsgroup postings. With added bells and whistles such as re-wrapping badly formatted quotes (e.g. crap coming from Gurgle Groups) etc. I'd rather not reinvent the wheel here, and indeed going back to vim looks attractive at this point. TIA for any advice. -- Paul Sture
Re: [slrn] What's the best way to use BBEdit with slrn?
Author: J.B. Nicholson-Owens
Date: Wed, 05 Feb 2014 23:02
Date: Wed, 05 Feb 2014 23:02
16 lines
1978 bytes
1978 bytes
Paul Sture <nospam@sture.ch> wrote: > I've got the command line call set up fine, but I want to tell BBEdit > somehow that I'm not editing html or C code, just the kind of plain > text used for newsgroup postings. This makes me think you're looking at an editor issue not a slrn issue. As I understand it, slrn hands whatever program you indicate a properly formatted text file and expects a properly formatted text file when that process returns. Any other involvement in the editors operation is outside slrn's scope. > I'd rather not reinvent the wheel here, and indeed going back to vim looks > attractive at this point. On the basis of software freedom, I would suggest using vim or some other free software text editor instead.
Re: [slrn] What's the best way to use BBEdit with slrn?
Author: Sandman
Date: Wed, 05 Feb 2014 23:10
Date: Wed, 05 Feb 2014 23:10
32 lines
2020 bytes
2020 bytes
In article <6mgasa-rs72.ln1@news.chingola.ch>, Paul Sture wrote: > I've just converted to slrn, but I am completely stumped how best to > use BBEdit as the editor. > I've got the command line call set up fine, but I want to tell > BBEdit somehow that I'm not editing html or C code, just the kind of > plain text used for newsgroup postings. > With added bells and whistles such as re-wrapping badly formatted > quotes (e.g. crap coming from Gurgle Groups) etc. > I'd rather not reinvent the wheel here, and indeed going back to vim > looks attractive at this point. > TIA for any advice. Quick look didn't reveal a solution. slrn doesn't seem to be able to be set to write the followup to any other file than ~/.followup or /tmp/.followup and the "bbedit" CLI command doesn't have a switch for setting the syntax language for the given file. That said, when I open the ~/.followup file in bbedit, I get "(none)" as the syntax language, so maybe you have set some syntax coloring to be the default for unknown files? There is no such setting in current BBEdit, but current BBEdit honors settings from earlier versions which I think had such a setting, which may be available via the "defaults" command now. -- Sandman[.net]
Re: [slrn] What's the best way to use BBEdit with slrn?
Author: Lewis
Date: Wed, 05 Feb 2014 23:48
Date: Wed, 05 Feb 2014 23:48
31 lines
2346 bytes
2346 bytes
In message <6mgasa-rs72.ln1@news.chingola.ch>
Paul Sture <nospam@sture.ch> wrote:
> I've just converted to slrn, but I am completely stumped how best to use
> BBEdit as the editor.
set post_editor_command "FILE='%s';cp $FILE ${FILE}.new;bbedit -w --new-window ${FILE}.new;fmt -m -72 ${FILE}.new >
$FILE;/opt/local/bin/fortune ~/mysigs >> $FILE"
or, perhaps simpler,
set editor_command "bbedit -w --resume +%d '%s'"
> I've got the command line call set up fine, but I want to tell BBEdit
> somehow that I'm not editing html or C code, just the kind of plain
> text used for newsgroup postings.
> With added bells and whistles such as re-wrapping badly formatted quotes
> (e.g. crap coming from Gurgle Groups) etc.
use command-option-' to rewrap.
> I'd rather not reinvent the wheel here, and indeed going back to vim looks
> attractive at this point.
I like vim for editing Usenet quite a bit, but I also use BBEdit quite
a bit.
--
Love seeketh not itself to please Nor for itself hath any care But for
another gives its ease And builds a heaven in Hell's despair
Re: [slrn] What's the best way to use BBEdit with slrn?
Author: Martin Τrautmann
Date: Thu, 06 Feb 2014 07:06
Date: Thu, 06 Feb 2014 07:06
23 lines
2291 bytes
2291 bytes
On 5 Feb 2014 23:10:41 GMT, Sandman wrote: > Quick look didn't reveal a solution. slrn doesn't seem to be able to be set > to write the followup to any other file than ~/.followup or /tmp/.followup > and the "bbedit" CLI command doesn't have a switch for setting the syntax > language for the given file. Is that a must? I did not use BBEdit the last years since TextWrangler is good enough for me. TW does not offer a Mail syntax style. However, I guess that you could create a syntax style of your own and assign this one to .followup. I do have syntax highlighting in vim for postings - but all it does is some coloring of headers and quotes. Postings should be plain text only - I do not see that much need for syntax highlighting. Rot13, search/replace and rewrap would be my major concerns. - Martin
Re: [slrn] What's the best way to use BBEdit with slrn?
Author: Sandman
Date: Thu, 06 Feb 2014 11:06
Date: Thu, 06 Feb 2014 11:06
27 lines
2159 bytes
2159 bytes
In article <slrnlf6d3b.82.t-usenet@ID-685.user.individual.de>, Martin Τrautmann wrote: > > Sandman: > > Quick look didn't reveal a solution. slrn doesn't seem to be able > > to be set to write the followup to any other file than ~/.followup > > or /tmp/.followup and the "bbedit" CLI command doesn't have a > > switch for setting the syntax language for the given file. > > Is that a must? > I did not use BBEdit the last years since TextWrangler is good > enough for me. TW does not offer a Mail syntax style. > However, I guess that you could create a syntax style of your own > and assign this one to .followup. > I do have syntax highlighting in vim for postings - but all it does > is some coloring of headers and quotes. > Postings should be plain text only - I do not see that much need for > syntax highlighting. I like the option of coloring quoted lines accurately. -- Sandman[.net]
Re: [slrn] What's the best way to use BBEdit with slrn?
Author: Pepi
Date: Thu, 06 Feb 2014 17:59
Date: Thu, 06 Feb 2014 17:59
10 lines
1688 bytes
1688 bytes
On Wed, 05 Feb 2014 20:40:22 +0100, Paul Sture wrote: > Gurgle Groups More like Gurgle Burps. :) -- ___ _ __S*P*A*M:_______________________________ -(o o)----/_/_--_--.---| >Purge M$ products!< | -/ v \---/--/_'/_//----| >Install free stuff!< | -\V V/--------/--------| >Killfile a google grouper!< |
Re: [slrn] What's the best way to use BBEdit with slrn?
Author: Lewis
Date: Fri, 07 Feb 2014 03:49
Date: Fri, 07 Feb 2014 03:49
14 lines
2173 bytes
2173 bytes
In message <slrnlf6d3b.82.t-usenet@ID-685.user.individual.de> Martin Τrautmann <t-usenet@gmx.net> wrote: > I do have syntax highlighting in vim for postings - but all it does is > some coloring of headers and quotes. > Postings should be plain text only - I do not see that much need for > syntax highlighting. Quote levels, spelling errors, signature blocks commented code sections, email addresses, URLs, *bold* and /italic/ and _underlines_. -- We could grind our enemies into talcum powder with a sledgehammer, but gosh, we did that last night.
Re: [slrn] What's the best way to use BBEdit with slrn?
Author: Paul Sture
Date: Sun, 09 Feb 2014 12:27
Date: Sun, 09 Feb 2014 12:27
28 lines
2355 bytes
2355 bytes
On 2014-02-05, Sandman <mr@sandman.net> wrote:
>
> Quick look didn't reveal a solution. slrn doesn't seem to be able to be set
> to write the followup to any other file than ~/.followup or /tmp/.followup
> and the "bbedit" CLI command doesn't have a switch for setting the syntax
> language for the given file.
That's it in a nutshell. I've been told that in contrast TextMate does have
a mail/newsgroup language type.
> That said, when I open the ~/.followup file in bbedit, I get "(none)" as
> the syntax language, so maybe you have set some syntax coloring to be the
> default for unknown files? There is no such setting in current BBEdit, but
> current BBEdit honors settings from earlier versions which I think had such
> a setting, which may be available via the "defaults" command now.
That's worth exploring certainly, but using it without is a nightmare.
During testing I had BBEdit try to expand "a" to "<a ...> </a> and I got
a bit of a C for loop suggested too.
I have for the moment abandoned any attempt to use BBEdit for newsgroup
postings. TextWrangler OTOH works nicely using this .slrnrc command:
set editor_command "edit --wait --resume +%d '%s'"
--
Paul Sture
Re: [slrn] What's the best way to use BBEdit with slrn?
Author: Paul Sture
Date: Sun, 09 Feb 2014 12:34
Date: Sun, 09 Feb 2014 12:34
25 lines
2092 bytes
2092 bytes
On 2014-02-05, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
> In message <6mgasa-rs72.ln1@news.chingola.ch>
> Paul Sture <nospam@sture.ch> wrote:
>
>> I've just converted to slrn, but I am completely stumped how best to use
>> BBEdit as the editor.
>
> set post_editor_command "FILE='%s';cp $FILE ${FILE}.new;bbedit -w --new-window ${FILE}.new;fmt -m -72 ${FILE}.new >
$FILE;/opt/local/bin/fortune ~/mysigs >> $FILE"
Many thanks for that. I hadn't thought of copying the file elsewhere, and
that opens up the possibility of assigning a syntax to a file type,
e.g. "${FILE}.newsgrp"
> or, perhaps simpler,
>
> set editor_command "bbedit -w --resume +%d '%s'"
or my TextWrangler variant:
set editor_command "edit --wait --resume +%d '%s'"
--
Paul Sture
Re: [slrn] What's the best way to use BBEdit with slrn?
Author: Paul Sture
Date: Sun, 09 Feb 2014 12:35
Date: Sun, 09 Feb 2014 12:35
11 lines
1298 bytes
1298 bytes
On 2014-02-06, Pepi <pepi@egg.nog> wrote: > On Wed, 05 Feb 2014 20:40:22 +0100, Paul Sture wrote: > >> Gurgle Groups > > More like Gurgle Burps. :) :-) -- Paul Sture
Re: [slrn] What's the best way to use BBEdit with slrn?
Author: Lewis
Date: Sun, 09 Feb 2014 17:17
Date: Sun, 09 Feb 2014 17:17
23 lines
2430 bytes
2430 bytes
In message <e89ksa-7lb2.ln1@news.chingola.ch>
Paul Sture <nospam@sture.ch> wrote:
> On 2014-02-05, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
>> In message <6mgasa-rs72.ln1@news.chingola.ch>
>> Paul Sture <nospam@sture.ch> wrote:
>>
>>> I've just converted to slrn, but I am completely stumped how best to use
>>> BBEdit as the editor.
>>
>> set post_editor_command "FILE='%s';cp $FILE ${FILE}.new;bbedit -w --new-window ${FILE}.new;fmt -m -72 ${FILE}.new >
> $FILE;/opt/local/bin/fortune ~/mysigs >> $FILE"
> Many thanks for that. I hadn't thought of copying the file elsewhere, and
> that opens up the possibility of assigning a syntax to a file type,
> e.g. "${FILE}.newsgrp"
Yeah, I set a filetype for .new, as I recall. It's been a while since I
used that one since I wrote a script to generate .signatures and
Mail.app signatures automatically.
--
"Any man who says he can see through women is really missing a lot." -
Groucho Marx
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads