Home Download Buy Blog Forum Support

find_next behavior when called from plugin

find_next behavior when called from plugin

Postby tripshock on Sun Jun 01, 2014 9:47 pm

When running the find_next command from a WindowCommand plugin, the behavior is different from that of when hitting Ctrl+F3, which is by default bound to find_next. When hitting Ctrl+F3, find_next honors the settings in the find panel (case sensitive, etc.), whereas when running it from the plugin (self.view.window().run_command('find_next')), it does not. How can I achieve the same behavior as when hitting Ctrl+F3?
tripshock
 
Posts: 7
Joined: Fri Aug 02, 2013 12:21 am

Re: find_next behavior when called from plugin

Postby sapphirehamster on Sun Jun 01, 2014 11:29 pm

Hm, seems to work for me. What version are you running?

Also, you mention that you are writing a WindowCommand, but your sample uses self.view which would be a TextCommand. It shouldn't make a difference, though. Perhaps you can show a complete example that demonstrates the issue.
sapphirehamster
 
Posts: 88
Joined: Sun Jul 01, 2012 11:19 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 6 guests