Sublime Forum

find_next behavior when called from plugin

#1

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?

0 Likes

#2

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.

0 Likes