Sublime Forum

Auto-resizing Columns

#1

I’m considering attempting to implement this feature as a plugin:

Has anyone got any idea how to implement this? One idea I have at this stage is to listen to “view” change events, then when changes are detected, check which column is active, and then run a “set_layout” command somehow. (I don’t have any experience writing ST plugins as of yet, in case it isn’t obvious).

0 Likes

#2

This would definitely be doable. There’s a on_activated event for views to listen to.

Wouldn’t hurt to try but it might be annoying in practice though?

0 Likes

#3

Checking back at the original thread, it looks like someone’s already done it:

0 Likes

#4

Good stuff. I can verify that this works great. Personally, I don’t find it annoying at all.

0 Likes