0
Respuestas

Open file in current group from API

gearheart hace 13 años actualizado por Jon Skinner hace 13 años 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

Respuesta

Respuesta
Respuestas
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.
Respuesta
Respuestas
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.