Sublime Forum

Get all files in a project

#1

Is there a built-in command to get a list of all the files in the current project?

0 Likes

#2

use any:
os.walk
os.listdir
glob.glob

0 Likes

#3

so, nothing in the Sublime API then? Using the normal Python methods, I’d have to filter out the excluded files myself. Basically, I just want the exact list you get when you open the Ctrl+P ‘open anything’ palette.

0 Likes

#4

I am looking for the same feature.

It seems like ST2 is caching the folders and their content somewhere. You can tell how quick it is when you CTRL+P or Find in files.

Is there any way of accessing this cache in the API?

0 Likes

#5

[quote=“FMC”]I am looking for the same feature.

It seems like ST2 is caching the folders and their content somewhere. You can tell how quick it is when you CTRL+P or Find in files.

Is there any way of accessing this cache in the API?[/quote]

I’d love this feature too :smile:

0 Likes