Home Download Buy Blog Forum Support

How to insert text to View?

How to insert text to View?

Postby lavrton on Sat Aug 24, 2013 6:40 am

I want to clear View and paste some text. I am using this code:
Code: Select all
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
Code: Select all
output.insert(edit, 0, res["out"])

because out of "run" function
lavrton
 
Posts: 4
Joined: Wed Jan 30, 2013 10:18 am

Re: How to insert text to View?

Postby tito on Sat Aug 24, 2013 8:59 am

Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 855
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 4 guests