Home Download Buy Blog Forum Support

Is it possible to split text into multiple tabs?

Is it possible to split text into multiple tabs?

Postby tux. on Tue Nov 22, 2011 10:22 pm

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...
Image
tux.
 
Posts: 96
Joined: Thu Apr 14, 2011 11:04 am

Re: Is it possible to split text into multiple tabs?

Postby jps on Wed Nov 23, 2011 4:47 am

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.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Is it possible to split text into multiple tabs?

Postby tux. on Wed Nov 23, 2011 11:14 am

Sounds reasonable. Could I change the tabs' labels, too? :)
Image
tux.
 
Posts: 96
Joined: Thu Apr 14, 2011 11:04 am

Re: Is it possible to split text into multiple tabs?

Postby jps on Wed Nov 23, 2011 11:40 am

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.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Is it possible to split text into multiple tabs?

Postby tux. on Wed Nov 23, 2011 12:43 pm

Ah, ok. Will look into it these days. :)
(Or maybe, if someone is more experienced and has too much time on his hands, .. ;) )
Image
tux.
 
Posts: 96
Joined: Thu Apr 14, 2011 11:04 am


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests