I choose to replace the native commands rather than add new ones.
It works with
CloseFileCommand(sublime_plugin.TextCommand)andCloseCommand(sublime_plugin.TextCommand), but I need to find all other related commands (especially all variants of “Close Selected Tabs”)But that’s not the question right now.
Is there a way I can prevent closing a view from middle clicking on tab ?
It seems I can’t but, maybe someone have found a workaround?