Sublime Forum

[SOLVED] Set_sheet_index and semi transient sheets

#1

I’m working on a plugin to sort the tabs (sheets?) in Sublime. It’s my first attempt at making a plugin.

I’m running into an issue where if I call set_sheet_index on a semi-transient sheet, it seems to also promote the sheet, which is not what I want. I’ve tried calling set_sheet_index only on the non-semi-transient sheets, but that doesn’t seem to be stable.

Any tips / suggestions?

0 Likes

#2

Transient sheets don’t have a tab; they sit on top of all tabs. Unless you mean semi-transient?

0 Likes

#3

Right, semi transient, wasn’t sure about the difference.

0 Likes

#4

This is unfortunately intentional behavior, moving a tab whether through the UI or through the API will remove the semi-transient state.

0 Likes

#5

Alright, thanks for the information.

I was able to work around this by sorting all the other tabs in a certain way, this seems to be stable.

0 Likes