Closed cwillu closed 14 years ago
I just committed this bit of code to init.py http://gist.github.com/306749
That should be grabbing the current document's tab settings and using that instead of the general default. Let me know if you still have problems.
Again, thanks so much for these reports. Keep em coming if you can.
Use http://gist.github.com/306753 instead:
" " * 5 == " "
Nice, committed. Thanks again.
results in
\t \t
even though the plugin's indentation is set to " " (two spaces).
Adding "after = after.replace('\t', indent)" to init.py:expand_zencode(self, window)" would suffice to correct this.
In an ideal world, the indentation would be picked up from the editor's settings rather than configured separately for the plugin.
Will grab the setting, although I don't think this is the per-editor setting. Still, better this than having to edit a settings file and restart gedit each time I switch to a different file with a different indentation scheme.