Something I will say is that while I've found the codeless language module
functionality very helpful, and I have written and maintain a few of my own, I
have also, perhaps partly due to ignorance, ran into their limitations quite a bit.
I really appreciate BBEdit's new support for language servers, and when I'm able
to, intend to re-implement some codeless language modules as servers for that
protocol, helping them be much more capable in the process.
I could be wrong but I get the impression that older methods of language support
are now deprecated in favor of the new language protocol, as it can benefit from
economies of scale to get maintained support for a lot more languages.
-- Darren Duncan
On 2021-08-14 7:56 p.m., Christopher Waterman wrote:
I couldn’t find a Language Module for Fish Shell so a put one together last
night.
It works, but I have a design question.
In order to make the BBLMKeywordList & BBLMPredefinedNameList
I made a list of the built-in commands from here:
https://fishshell.com/docs/current/commands.html
Then pulled out the ones I think belong in the BBLMKeywordList.
<key>BBLMKeywordList</key>
<array>
<string>function</string>
<string>end</string>
<string>if</string>
<string>else</string>
<string>for</string>
<string>while</string>
<string>switch</string>
<string>case</string>
<string>begin</string>
<string>command</string>
<string>continue</string>
<string>return</string>
<string>break</string>
<string>exit</string>
<string>true</string>
<string>false</string>
<string>and</string>
<string>or</string>
<string>not</string>
<string>in</string>
<string>|</string>
<string>&</string>
</array>
Then I printed “ls /bin” to BBEdit to make a third list.
I removed duplicates and felt like I ended up with a pretty good list of the
most general unix commands.
Something like this but longer:
<key>BBLMPredefinedNameList</key>
<array>
<!-- Built-in Fish commands minus /bin and those used in BBLKeywordList -->
<string>_</string>
<string>abbr</string>
<string>alias</string>
<string>argparse</string>
<string>bg</string>
<string>bind</string>
<string>block</string>
<string>breakpoint</string>
<string>builtin</string>
<string>cd</string>
…
…the list continues
<!-- List from /bin -->
<string>bash</string>
<string>cat</string>
<string>chmod</string>
<string>cp</string>
<string>csh</string>
<string>dash</string>
<string>date</string>
…
…the list continues
<array>
Should I have left out the commands from /bin? Is there more utility in
highlighting only the built-in commands?
I know this isn’t a very technical question, nor particularly important, but I’m
curious what this crowd might think.
Thanks
—Chris
--
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
<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] <mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/D75B10C1-AB11-467C-830D-39B3CB061D42%40rustydogink.com
<https://groups.google.com/d/msgid/bbedit/D75B10C1-AB11-467C-830D-39B3CB061D42%40rustydogink.com?utm_medium=email&utm_source=footer>.
--
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/055dec07-0ed1-9c3f-1e71-4b0fda2b991d%40darrenduncan.net.