One tab for custom editor?


Is there a way to force only having one tab of certain custom editor? Right now I’m implementing this in a hackish way by handling afterChoose to open a tab with a certain name, but this is not really clean and doesn’t work when opening files via c9 open for example.


I think you can use documentLoad event listener of your editor, to either close the old tab or the new one.