The elasticity does in fact happen in real time.
I want the same plugin with space indentation too, but it's approximately impossible given Sublime Text's API right now—with spaces you have to guess intent, whereas with tabs you just have to count tabs, and Sublime Text's API doesn't tell you what changes have been made to a buffer (it just tells you that changes have been made), so it's hard to guess what's going on.
In terms of the plugin not working, can you give me more info? Are your files using tabs for indentation? Is the plugin loading correctly? etc.
You can run this for a little info:
- Code: Select all
import sublime_plugin
sublime_plugin.all_callbacks.items()