Sublime Forum

How to prevent a specific view to close : on middle clicking on tab?

#1

I choose to replace the native commands rather than add new ones.

It works with CloseFileCommand(sublime_plugin.TextCommand) and CloseCommand(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?

0 Likes

#2

This feature is not implemented using commands. There is no current way to disable this behavior.

0 Likes

#3

That what I though. Thanks to confirm!

Well, this could be an API feature request then. ^^

0 Likes