Home Download Buy Blog Forum Support

ST3: FuzzyFileNav

Re: ST3: FuzzyFileNav

Postby jsc on Sat May 18, 2013 3:33 pm

No focus on file open behavior is happening again. This is after upgrade to the latest Sublime version 3033.
jsc
 
Posts: 23
Joined: Wed Feb 20, 2013 2:24 am

Re: ST3: FuzzyFileNav

Postby facelessuser on Sat May 18, 2013 5:48 pm

I am not sure how to fix this as of right now. I will look a little harder when I get some time, but Jon has really made this hard to get working proper on this latest release. I have no idea what he is doing in regards to this, but I cannot seem to get the view to focus on the quick panel selection event. It just won't do it. I may have some other ideas, but I am going to wait until I have time.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: ST3: FuzzyFileNav

Postby sublimator on Mon May 20, 2013 9:20 am

Are you guys talking about when you open a View (window.open_file etc) then set some callback to alter selections when the file is loaded, the focus wandering off somewhere?
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: ST3: FuzzyFileNav

Postby facelessuser on Mon May 20, 2013 5:51 pm

Yeah, the new open window just doesn't have focus when the quick panel closes. Directly calling focus from the selection event doesn't work, doing a set_timeout to call it recently doesn't work. It is really just annoying more than anything. I haven't really dug into finding a solution yet.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: ST3: FuzzyFileNav

Postby sublimator on Tue May 21, 2013 1:15 pm

Gah, yeah I'm getting that in a plugin too.

Da fuq??
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: ST3: FuzzyFileNav

Postby bizoo on Tue May 21, 2013 1:23 pm

I don't get where's the problem is ?
If I run the plugin, select an unopened file and hit ESC, I have the focus on the beginning of the file.
Is it related to OS ?

startup, version: 3035 windows x64 channel: dev
bizoo
 
Posts: 889
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: ST3: FuzzyFileNav

Postby sublimator on Tue May 21, 2013 1:25 pm

Quite possibly related to OS.

I'm on linux usually. Will try now on this OSX piece of crap wonderful device
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: ST3: FuzzyFileNav

Postby sublimator on Tue May 21, 2013 1:31 pm

Having same problems with my plugin on OSX piece of crap device

@Bizoo

Does the command you are referring to alter the selection in any way?
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: ST3: FuzzyFileNav

Postby bizoo on Tue May 21, 2013 1:38 pm

castles_made_of_sand wrote:Having same problems with my plugin on OSX piece of crap device

@Bizoo

Does the command you are referring to alter the selection in any way?

I only tried to reproduce the problem with FuzzyFileNav plugin, which run the following code:
Code: Select all
                    # Open file
                    new_view = self.window.open_file(self.cls.cwd)
                    if new_view is not None:
                        self.window.focus_view(new_view)

So no the selection is not modified.

Sorry, I didn't understand that it was related to the modifying selection.
bizoo
 
Posts: 889
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: ST3: FuzzyFileNav

Postby sublimator on Tue May 21, 2013 1:49 pm

@Bizoo

Yeah, I don't know, haven't really followed this thread entirely.

My plugin I'm experiencing problems with navigates to a section in the file, making a new selection.

If FuzzyNav doesn't alter selection ( why would it I guess ? ) and you are having focus problems, it could be due to layout split groups. If I recall correctly window.focus_view(v) only focuses a view in a given group, yet you still have to call window.focus_group(i)
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 5 guests