I'm developing a custom language plugin for editing tabular ASCII data. For this I would like the TAB key to advance to certain, preferrably configurable, tab stops, pretty much like Microsoft Word. Tab stops are spaced irregularly, e.g., at positions 1, 4, 10, 16.
What's the best approach for implementing this? Is there a direct hook for overriding the default behavior of the TAB key? Do I need to implement an Action for inserting a certain number of spaces depending on the cursor position and bind this Action to the TAB key? Or is there out-of-the-box support for tab stops that I just failed to notice?
I've checked the plugin documentation and the forums for information but couldn't find anything related.