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 <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> --- 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/D75B10C1-AB11-467C-830D-39B3CB061D42%40rustydogink.com.
