Close Buttons on Tabs or Middle-Click Tab to Close #197
Replies: 2 comments
-
You should be able to connect to `events.TAB_CLICKED` (https://orbitalquark.github.io/textadept/api.html#events.TAB_CLICKED)
Something like this:
events.connect(events.TAB_CLICKED, function(index, button)
if button ~= 2 then return end
view:goto_buffer(_BUFFERS[index])
buffer:close()
end)
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
goober99
-
That did exactly what I wanted! Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to enable close buttons on tabs or make it so that tabs close on middle-click (like tabs in most web browsers)?
Beta Was this translation helpful? Give feedback.
All reactions