On Dec 21, 2004, at 22:51, Chris Thomas wrote:
It's not clear to me that a sophisticated mode implementation could be based on raw shell script, though. Hard to do polymorphism in shell script.
Version 1.1b1 will approach modes with the syntax choice (i.e. mode) dependent lookup of snippets/commands/macros. Everything is still accessible, but when using a snippet trigger or snippet/macro/command key equivalent, it will favor any snippet/macro/command found in the same bundle as the current syntax file.
The snippets/commands/macros menus then only show the contents of the 'active' bundle and have sub menus for the other bundles:
I personally do favor this over real modes since I do occasionally need to use HTML snippets in non-HTML documents or some of my C++ macros in a non-C++ context.