Sublime Forum

Is it possible to split text into multiple tabs?

#1

Heyo,

a while ago I invented Tabbed Plaintext as a new approach to organizing plain-text notes. I initially planned to implement it as a Vim plug-in, but its tab handling is not easy. (A lot is still to be done.)

So I am looking for alternative platforms for the upcoming reference implementation.

Maybe Sublime Text 2 is a better choice here. Is it possible to split a text file into multiple tabs automatically without having to save them (separately) as a file? If so, I might learn Python then…

0 Likes

#2

Your best option would likely be to open the file, clone it into as many views are desired (via the clone_file command, as used by the File/Clone File menu), and then fold all but the relevant part in each view. This way saving will work as expected, at least.

0 Likes

#3

Sounds reasonable. Could I change the tabs’ labels, too? :smile:

0 Likes

#4

You can call view.set_name(name), however that will disassociate the view with the underlying file, so save will prompt for a new name when saving.

0 Likes

#5

Ah, ok. Will look into it these days. :smile:
(Or maybe, if someone is more experienced and has too much time on his hands, … :wink: )

0 Likes