Home Download Buy Blog Forum Support

Easy way to open multiple files? Keyboard-based

Easy way to open multiple files? Keyboard-based

Postby fatboy on Tue Mar 20, 2012 2:02 pm

Does anyone know of a good way to do this from within sublime?

I'm looking for something to replace the method I'd use in textmate:

-open the equivalent of Goto Anything inside a project
-type a string common to the filenames I want to open to narrow down the results
-select multiple results using shift-down arrow
-press return

fb
fatboy
 
Posts: 12
Joined: Mon Jan 16, 2012 11:41 pm

Re: Easy way to open multiple files? Keyboard-based

Postby phillip.koebbe on Tue Mar 20, 2012 3:29 pm

*facepalm*

:oops:

I used TM for three years and didn't know this could be done. More than once I thought I should be able to open multiple files at one time.

*big honkin' sigh*

I, too, would appreciate this functionality.

While it's not quite the same, there is a discussion going on [1] regarding a plugin that allows saving a group of related files as a favorite and being able to open them all together.

[1] viewtopic.php?f=5&t=6185
-- Phillip

Code: Select all
while self.living? do
    mistake = Mistake.new
    self.learn_from!(mistake) unless mistake.fatal?
end
phillip.koebbe
 
Posts: 208
Joined: Tue Dec 20, 2011 4:58 pm

Re: Easy way to open multiple files? Keyboard-based

Postby fatboy on Tue Mar 20, 2012 6:55 pm

Don't beat yourself up phillip, I've only just figured out I can change syntax highlighting without the menus.

Thanks for the link, I'll check it out.
fatboy
 
Posts: 12
Joined: Mon Jan 16, 2012 11:41 pm

Re: Easy way to open multiple files? Keyboard-based

Postby tito on Tue Mar 20, 2012 8:11 pm

There is also SideBarEnhancements which allow you to do a search in file names, opening the result in a plain text tab.
Right click sidebar -> find advanced -> in path containing

With that list.. there is plugin Open Include which allow you to open whatever you have selected. for example, triple clickling many lines with CTRL to select many files in different positions. Or just select big portions.
And with ALT+D will open these in tabs.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 706
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Easy way to open multiple files? Keyboard-based

Postby fatboy on Tue Mar 20, 2012 11:38 pm

Thanks Tito. It's not quite the same as I am used to, but perfectly workable, and both these plugins are very interesting in their own right.
fatboy
 
Posts: 12
Joined: Mon Jan 16, 2012 11:41 pm

Re: Easy way to open multiple files? Keyboard-based

Postby tito on Wed Mar 21, 2012 4:07 am

You are welcome,

I've added the keymap ALT+F to this function,
then for example you can open all the files including "class." in current project by doing 3 steps.

1 - ALT+F
2 - type "class.", press enter.
3 - ALT+D
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 706
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Easy way to open multiple files? Keyboard-based

Postby fatboy on Wed Mar 21, 2012 12:30 pm

I was just doing something similar after poking around in your code. However, my way just opened the files matched without giving any feedback about what was about to be opened.

Your method is much better, so I'll stop cutting and pasting now =]

Thanks very much.
fatboy
 
Posts: 12
Joined: Mon Jan 16, 2012 11:41 pm


Return to General Discussion

Who is online

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

cron