Not obvious to me how to search a part of a tree

I used to be able to navigate within a repo and search part of it (sub-folder path). Now it seems like I can’t do this. Nor can I find commits that show changes only to a part of a sub-path.

I found that I can click a small button on the left of the folder that looks like [o] , I guess to “zoom” into that folder (Tooltips could be helpful)?

But clicking on that doesn’t change the url or anything, and switching to the Commits tab still shows commits for the entire repo which is not very useful when I work with many monorepos every day.

Hey @chua is this for sourcegraph.com or a self-hosted/cloud instance?

Apologies, couldn’t edit the title.
This is feedback for the new Beta UX (“New, faster UX (Beta)”).

+1 to this - searching within subfolders is not obvious in the new Beta UX

For anyone else hitting this: the way to replicate the previous behavior is to click into the search box, and click on “Search in current directory” so it’ll pre-fill the file: query and refine the scope, then type in the query.

1 Like