0
Answered

Open file in current group from API

gearheart 13 aastat tagasi uuendaja Jon Skinner 13 aastat tagasi 0
Hi

I'm writing a simple plugin, similar to GoTo File, but which works with already opened files.

The problem is that when I call
    self.window.open_file(...)
file is being opened in random group, not always in active one.

How can I force file to be opened in currently active pane/group (event if it's already opened in other group)?

Thank you

Vasta

Vasta
Answered
There's a hidden flag that will allow this, you can pass 8 as the second argument to open file to trigger this behaviour. I'll add a named constant for it in the next build.
Vasta
Answered
There's a hidden flag that will allow this, you can pass 8 as the second argument to open file to trigger this behaviour. I'll add a named constant for it in the next build.