0
Besvaret

Open file in current group from API

gearheart 13 år siden opdateret af Jon Skinner 13 år siden 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

Svar

Svar
Besvaret
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.
Svar
Besvaret
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.

Kundesupport af UserEcho