Indeed. Works like a charm now. I feel for the “Text Factories” in “Text
Factories ƒ” trick.
Thanks Rich.
> On Apr 11, 2017, at 3:01 PM, Rich Siegel wrote:
>
> On Tuesday, April 11, 2017, BeeRich33 wrote:
>
>> /Users/rich/Dropbox/Application Support/BBEdit/Text Factories/append to
>>
On Tuesday, April 11, 2017, BeeRich33 wrote:
/Users/rich/Dropbox/Application Support/BBEdit/Text
Factories/append to file.textfactory
/Users/rich/Dropbox/Application Support/BBEdit/Text
Factories/echo to target.textfactory
Those factories are not in the right place. :-)
All text filters sho
Yes. Original saved path for both items:
/Users/rich/Dropbox/Application Support/BBEdit/Text Factories/append to
file.textfactory
/Users/rich/Dropbox/Application Support/BBEdit/Text Factories/echo to
target.textfactory
On Tuesday, April 11, 2017 at 2:03:13 PM UTC-4, Patrick Woolsey wrote:
>
>
Please make sure to save (or move) your text factory file into
the correct folder, which by default is:
/Users/USERNAME/Library/Application Support/BBEdit/Text Filters/
or adjust as appropriate if you're using a Dropbox (or iCloud)
app support folder.
Regards,
Patrick Woolsey
==
Bare Bones
Further to that text factory that I've created twice. Neither are showing
up in the Text/Apply Text Filter submenu. What am I doing wrong?
There is no project, nor a file. Just the selected text. But it doesn't
show up in the submenu.
Cheers
On Tuesday, April 11, 2017 at 9:17:10 AM UTC
Hi Sam. Thanks for the input.
Ya this is for appending to config files for FreeBSD setup. So it’s all
manually inserted. I thought I’d be targeting current lines to target files
(hence the syntax) and thought I’d find a way of modifying these lines using
BBEdit.
As Patrick has demonstrate
I suggest escaping shell metacharacters, unless you want to have a Bad
Time the first time one of your lines contains `"`, `\`, or `$`. Here is
a text filter solution in Perl:
```
#!/usr/bin/env perl
use strict;
use warnings;
use String::ShellQuote;
while (<>) {
chomp;
print 'echo ',
In general, a _text filter_ is best suited for this type of
task[*] and you can use any kind of filter item that can do the
desired manipulation, from a shell script, or a Perl/Python/etc
script, to a _text factory_ which contains suitable action(s).
So per your example, I'd just create a text
On 04/07/2017, at 15:06, BeeRich mailto:beer...@gmail.com>>
wrote:
> This is what I’m starting with:
>
> alpha
> bravo
> charlie
>
> I want to change that to a volumetric Process Lines prefix and suffix:
>
> echo “alpha” >> $target
> echo “bravo” >> $target
> echo “charlie” >> $target
Hey Ric
Hi Fletcher. Long time. Rich F here.
It's a per-line item. A whole block of code would be inserted into that
SELECT. Been using SELECT for some time.
On Thursday, April 6, 2017 at 6:52:30 PM UTC-4, flet...@cumuli.com wrote:
>
> This sounds like a job for Clippings which you can find in t
Sounds like text filter is what I'm needing. I'll have a look.
The functionality of BB is confusing after all these years. Cheers
On Thursday, April 6, 2017 at 6:39:47 PM UTC-4, Sam H. wrote:
>
> I think you'd use a text filter for that. But be warned; if your text
> contains shell metachara
Just tested. I was correct in that assumption:
alpha
bravo
charlie
==>
echo "alpha
bravo
charlie" >> $target
On Thursday, April 6, 2017 at 6:54:14 PM UTC-4, flet...@cumuli.com wrote:
>
> Actually, re-reading your post, I think the clipping you are looking for
> is this:
>
> echo "#SELECT#"
Actually, re-reading your post, I think the clipping you are looking for is
this:
echo "#SELECT#" >> $target
[fletcher]
> On Apr 6, 2017, at 3:52 PM, Fletcher Sandbeck wrote:
>
> This sounds like a job for Clippings which you can find in the Clippings "C"
> menu or in Windows > Palettes.
>
This sounds like a job for Clippings which you can find in the Clippings "C"
menu or in Windows > Palettes.
You can define a clipping by creating a pattern with #SELECT# in place of where
you want the current selection to go. If I understand what you're looking for
your clipping would like this
I think you'd use a text filter for that. But be warned; if your text
contains shell metacharacters ($, ", \, etc.) you're going to have a bad
time.
-sam
On 6 Apr 2017, at 5:04 PM EDT, BeeRich33 wrote:
Hi folks.
I'm still confused amongst text factories, scripts, etc. I want to
select
som
Hi folks.
I'm still confused amongst text factories, scripts, etc. I want to select
some text in a file, and prepend and append the following:
echo "
" >> $target
Not the whole file. Not a whole folder. Not a whole predefined set of
files. Not a project. Just selected lines.
Can this b
16 matches
Mail list logo