Home Download Buy Blog Forum Support

Right click tab for list of open files?

Right click tab for list of open files?

Postby frogbyte on Tue Apr 16, 2013 5:30 pm

Is there anyway to show a list of open files by right clicking on a tab?

I did a quick look at the API and I don't see a method to return all the open files. So I don't know if a plug-in could be written.

thanks,
frogbyte
 
Posts: 1
Joined: Tue Apr 16, 2013 5:19 pm

Re: Right click tab for list of open files?

Postby skuroda on Wed Apr 17, 2013 2:07 am

You can use window.views() to get the views. From there you can use view.file_name() to get the paths for the files. Alternatively, have you looked at listing the files in the sidebar? Accessible through "View -> Side Bar -> Show Open Files". If you don't always want this visible, you can bind the "toggle_show_open_files" to a key. You can add it as a command to the appropriate .sublime-menu file.
skuroda
 
Posts: 676
Joined: Fri Oct 05, 2012 8:11 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 31 guests