Sublime Forum

Sublime split layout to 3 panel

#1

Is there any way I can split layout into 3 ? I got this snippet from net

self.window.set_layout({
“cols”: [0, 0.5, 1],
“rows”: [0, 0.5, 1],
“cells”: [0, 0, 1, 1], [1, 0, 2, 1],
[0, 1, 1, 2], [1, 1, 2, 2]]
})
But this will split in to two. I want to 3 like this

Any ideas ? I tried changing the values but no luck :frowning:

0 Likes

Insert into a view
#2
window.set_layout({ "cols": [0.0, 0.5, 1.0], "rows": [0.0, 0.33, 0.66, 1.0], "cells": [0, 0, 1, 3], [1, 0, 2, 1], [1, 1, 2, 2], [1, 2, 2, 3]] })

Check this thread for detailed explanation.

0 Likes

#3

I also highly recommend the Origami plugin: github.com/SublimeText/Origami

0 Likes

#4

Thanks guys it works perfect.

0 Likes