How to exclude subfolders and files in the Search pane of LightTable?

502 Views Asked by At

What is the syntax of the Locations field in the Find and Replace pane of LightTable? (which appears when hitting CTRL-SHIFT-F, or CTRL+SPACE then Searcher: show)

I would like to exclude all files of the docs/ subfolder, as well as all *.txt and *.csv files of my workspace. What should I enter in the Locations field to exclude them from a search & replace?

Or inversely, I'd like to include only the files from the src/ subfolder. How would I accomplish that?

1

There are 1 best solutions below

1
On BEST ANSWER

There doesn't seem to be a way to exclude directories or file patterns right now. However, you can specify which directories to include. You will have to write the whole path though (relative paths use Light Table's application directory). If you want to have more than one path you can separate them by using a comma:

/absolute/path/to/first/dir, /absolute/path/to/second/dir