bash keywords

34 views
Skip to first unread message

patpro

unread,
Jul 17, 2009, 10:19:43 AM7/17/09
to BBEdit Talk
Hi all,

I'm still thinking about my previous request about bash completion in
BBEdit. I've taken a look at the "Language Modules", wondering where I
could add missing Mac OS X shell commands into the listing of "Unix
Shell Script" list of known commands.

If I understand correctly, this list of known commands sits in "/
Applications/BBEdit.app/Contents/Resources/Unix Shell Keywords.txt",
not in "/Applications/BBEdit.app/Contents/Language Modules".

Am I right?

I would like to add (many) commands to this list. Is it safe to edit
the file "/Applications/BBEdit.app/Contents/Resources/Unix Shell
Keywords.txt"?
Is there another way to add command names to the "Unix Shell Script"
pool, without modifying the file "Unix Shell Keywords.txt"?

regards,
patpro

patpro

unread,
Jul 17, 2009, 4:39:21 PM7/17/09
to BBEdit Talk
> If I understand correctly, this list of known commands sits in "/
> Applications/BBEdit.app/Contents/Resources/Unix Shell Keywords.txt",
> not in "/Applications/BBEdit.app/Contents/Language Modules".
>
> Am I right?

yes I am.

> I would like to add (many) commands to this list. Is it safe to edit
> the file "/Applications/BBEdit.app/Contents/Resources/Unix Shell
> Keywords.txt"?

it *appears* to be safe. At least, I can say it works. But if I don't
pay attention, I'll lose that work on my next update. So I'm really
interested in a method to customize "Unix Shell Keywords.txt" without
editing the file in the BBEdit bundle. An file in ~/Library/
Application Support/BBEdit that would take precedence would be great.

Patrick Woolsey

unread,
Jul 20, 2009, 11:15:48 AM7/20/09
to bbe...@googlegroups.com
patpro <pat...@patpro.net> sez:
[...]

>> I would like to add (many) commands to this list. Is it safe to edit
>> the file "/Applications/BBEdit.app/Contents/Resources/Unix Shell
>> Keywords.txt"?
>

Please do not attempt to edit or modify anything within the application
bundle; we do not & cannot support modified apps.


Regards,

Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com>
P.O. Box 1048, Bedford, MA 01730-1048

Patrick Woolsey

unread,
Jul 20, 2009, 11:29:03 AM7/20/09
to bbe...@googlegroups.com
patpro <pat...@patpro.net> sez:

> So I'm really
>interested in a method to customize "Unix Shell Keywords.txt" without
>editing the file in the BBEdit bundle. An file in ~/Library/
>Application Support/BBEdit that would take precedence would be great.

You could create & install a customized codeless language module (CLM),
which would override the built-in shell language support.

(Please see Appendix D and Chapter 15 of the PDF manual (Help -> User
Manual) for details, and there's also some info in prior posts here.)

G. T. Stresen-Reuter

unread,
Jul 20, 2009, 12:25:07 PM7/20/09
to bbe...@googlegroups.com
On Jul 20, 2009, at 4:29 PM, Patrick Woolsey wrote:

> (Please see Appendix D and Chapter 15 of the PDF manual (Help -> User
> Manual) for details, and there's also some info in prior posts here.)

So, like, man... Could I create a CLM for Cold Fusion so we could
have, like, syntax coloring when coding in CF? Man, that would be so
cool!

Ted Stresen-Reuter


Patrick Proniewski

unread,
Jul 27, 2009, 8:04:30 AM7/27/09
to bbe...@googlegroups.com
On 20 juil. 2009, at 17:15, Patrick Woolsey wrote:

> patpro <pat...@patpro.net> sez:
> [...]
>>> I would like to add (many) commands to this list. Is it safe to edit
>>> the file "/Applications/BBEdit.app/Contents/Resources/Unix Shell
>>> Keywords.txt"?
>>
>
> Please do not attempt to edit or modify anything within the
> application
> bundle; we do not & cannot support modified apps.

I'm sure you don't... But do you plan to update the keyword list ?
Mine is 1470 lines long, and yours is 767 lines long.

patpro

Reply all
Reply to author
Forward
0 new messages