Home Download Buy Blog Forum Support

Adaptive Goto File

Adaptive Goto File

Postby stiang on Mon Jan 31, 2011 4:24 pm

Are there any plans to make Goto File adaptive like TextMate, in the sense that recently used files appear at the top of the default file list, before you start typing anything? Preferably the first file in the list should be selected, so that a simple Enter will switch to it. I much prefer this over ctrl-tab when switching frequently between more than two files, since it allows me to quickly select the file I’m after rather than cycle blindly through a list of screens.

I would also prefer images and other binary files not to appear in the Goto lists, but I guess that may be on your TODO list already :)
stiang
 
Posts: 39
Joined: Sat Jan 29, 2011 12:34 pm

Re: Adaptive Goto File

Postby adzenith on Mon Jan 31, 2011 5:37 pm

Does command+t do what you're looking for?
You can also make it so command+p does this by default by adding
Code: Select all
  { "keys": ["super+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },

to your user keymap file. (the key here is the "show_files":true part)
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Adaptive Goto File

Postby stiang on Mon Jan 31, 2011 7:07 pm

As far as I can tell, there is no change in the order after switching back and forth between the second and the fourth result many, many times. I had hoped that they would move to the top after a (short) while. Do they change for you?

I am seeing the same behaviour for Goto File (cmd-t) and Goto Anything (cmd-p). And I always have to use the down arrow key to select the first result, instead of being able to tap Enter to select the first result.

But I wasn’t aware of "show_files" - I thought that was possible only for the Goto File chooser. So my question really applies to Goto Anything as well.

Thanks for your help.
stiang
 
Posts: 39
Joined: Sat Jan 29, 2011 12:34 pm

Re: Adaptive Goto File

Postby adzenith on Mon Jan 31, 2011 10:05 pm

No, they don't change for me... It looks like the list is in the same order as the tabs, and not in most-recently-viewed order.
Goto File is the same as Goto Anything; the only difference is the show_files argument tells the panel to show a list of files before you've started typing.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 15 guests