Sublime Forum

How to insert text to View?

#1

I want to clear View and paste some text. I am using this code:

output.run_command('select_all') output.run_command('insert', {'characters': res"out"]})

But the code works very slow. Are any other ways to do this?

I can’t use

output.insert(edit, 0, res"out"])

because out of “run” function

0 Likes

#2
0 Likes