Sublime Forum

Right click tab for list of open files?

#1

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,

0 Likes

#2

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.

0 Likes