The View.insert
et al. commands changes indentation of inserted text, for example when "translate_tabs_to_spaces"
is set to true
. This makes it impossible to create plugins that insert very specific characters, like version control plugins or search and replace plugins.
Possible solutions: either the commands should not manipulate the text, or there should be a more basic edit command that inserts text verbatim.
See https://github.com/gornostal/Modific/issues/101
Is there a way to insert text so that it is not changed by Sublime Text itself?
I’m using Sublime Text Build 3102 on OS X 10.11.3.