I'm trying to see how I can get notified from the FileBrowser component when a file is double clicked. Unfortunately, there seems to be no way to do this. The only notification mechanism available is via DocumentRegistry, which also assumes that you're going to create a new widget with it.
Would love to have a callback that notifies it whenever an item is double clicked.
The text was updated successfully, but these errors were encountered:
Do you have a specific file type in mind? One thing you could do right now is register a default handler for that file type. You have to return a widget, so just return a simple widget saying "look in your other tab", and have your opening code also open a new tab.
I think we should also change it. Just saying what you can do for now.
I had thought that since you want to take over the open event, perhaps we should just make the openers optionally return a widget. If they don't return a widget, then it is assumed the opener handled the file some other way outside of jlab, and we are no longer responsible for that open view of the file.