0
Beantwortet

Open file in current group from API

gearheart vor 13 Jahren aktualisiert von Jon Skinner vor 13 Jahren 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

Antwort

Antwort
Beantwortet
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.
Antwort
Beantwortet
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.