Home Download Buy Blog Forum Support

Nightly Build 2194

Re: Nightly Build 2194

Postby facelessuser on Tue Apr 17, 2012 3:33 pm

C0D312 wrote:Jon, I just spent the past 20 minutes trying to figure out why the regions I added to the view using view.add_regions where not staying in the same order I added them. Then I realized that Sublime Text is sorting them. Is this necessary? I would like to keep them in the same order I add them in.

Thanks.


The only real way to accomplish what you want is to give regions individual ordered names and keep track of your count. Then you can track them. Issues arise thought when you start doing "undo/redo" operations. If you toggle to readonly mode you are safe, but then you cannot edit things. Depending on the plugin, this might be sufficient if you right before editing the plugin toggles you back into edit mode and then back into readonly mode. After you are done dealing with regions, you can go back to edit mode. But if you want to be able to allow editing and track individual regions, this becomes difficult because "undo/redo" can bring back deleted and forgotten regions.
facelessuser
 
Posts: 1567
Joined: Tue Apr 05, 2011 7:38 pm

Re: Nightly Build 2194

Postby C0D312 on Tue Apr 17, 2012 5:16 pm

@jps, Alright, thanks anyway. I guess I'll just have to keep track of it the regions manually... That's too bad.

@Facelessuser, that's a lot more complicated than what I need. I'll just keep a dictionary (key = view.id and values are lists with the correct view list order eg. [1, 3, 4, 2, 0]). That way I can still use the view to manage the regions.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Nightly Build 2194

Postby facelessuser on Tue Apr 17, 2012 7:14 pm

C0D312 wrote:@jps, Alright, thanks anyway. I guess I'll just have to keep track of it the regions manually... That's too bad.

@Facelessuser, that's a lot more complicated than what I need. I'll just keep a dictionary (key = view.id and values are lists with the correct view list order eg. [1, 3, 4, 2, 0]). That way I can still use the view to manage the regions.


You can always sort them yourself. You just need to convert the regions into a tuple or something.
Code: Select all
>>> test_list = [(59, 100), (0, 37), (38, 58), (100, 200)]
>>> test_list
[(59, 100), (0, 37), (38, 58), (100, 200)]
>>> test_list.sort()
>>> test_list
[(0, 37), (38, 58), (59, 100), (100, 200)]


Edit
I just realized this would give exactly what it is already giving you. Well anyways. Good luck.
Last edited by facelessuser on Wed Apr 18, 2012 1:17 am, edited 1 time in total.
facelessuser
 
Posts: 1567
Joined: Tue Apr 05, 2011 7:38 pm

Re: Nightly Build 2194

Postby Grant on Tue Apr 17, 2012 7:44 pm

bizoo wrote:
Grant wrote:It appears that the Windows 7 compatibility is no longer working with this build.

On the last dev build (2190) I was able to see recently opened files and be able to pin them on the task bar. It was very handy for opening projects quickly.

Work fine for me on Window 7:
startup, version: 2194 windows x64 channel: nightly


My mistake. This was with the dev build 2195. Strange... there doesn't appear to be a thread for that build. :roll:
Grant
 
Posts: 68
Joined: Fri Jan 20, 2012 2:42 pm

Re: Nightly Build 2194

Postby C0D312 on Wed Apr 18, 2012 3:21 am

facelessuser wrote:I just realized this would give exactly what it is already giving you. Well anyways. Good luck.

haha. yeah, I noticed that ;)

No worries. Managing it manually was actually a lot simpler than I thought, plus it helped me spot and fix a few other bugs along the way.

Grant wrote:dev build 2195

@Grant. A top-secret unannounced new build? I want :)
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Nightly Build 2194

Postby itaiferber on Wed Apr 18, 2012 3:39 am

Seems like build 2195 was released on the dev stream and not on the nightlies. If you've got the dev release, you can download it on the dev page.
I'm pretty sure it's just a collation of the last couple of nightlies into one release...
itaiferber
 
Posts: 15
Joined: Mon Apr 16, 2012 1:04 am

Re: Nightly Build 2194

Postby C0D312 on Wed Apr 18, 2012 11:01 am

Oh, my bad. I don't keep track of dev builds anymore I guess...
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Nightly Build 2194

Postby mehaase on Sun Apr 29, 2012 4:27 pm

Symlinked "Packages" directory on OS X now has instantaneous updates!!! Awesome. My dropbox is happy.
mehaase
 
Posts: 2
Joined: Wed Dec 14, 2011 9:11 pm

Re: Nightly Build 2194

Postby adzenith on Thu Nov 01, 2012 10:18 pm

I haven't had automatic reloading of packages in a long time... I have my dropbox symlinked to my packages directory (instead of the other way around) but Sublime Text 2 ignores changes even if it wrote those changes.
Very annoying. Any ideas?
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Nightly Build 2194

Postby adzenith on Thu Nov 01, 2012 10:32 pm

Well, I deleted some stuff and it works again now.
Might have been one of:
ctags
tasks
sftp

I don't remember what else I uninstalled (not much) but it works now.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot] and 18 guests