Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i open the file in browser that came back as part of search #483

Open
tushartgupta opened this issue Apr 28, 2024 · 1 comment
Open

Comments

@tushartgupta
Copy link

I have set up a local folder for indexing using this:
"repos" : { "LocalFolder" : { "url" : "file:///Users/tushar/Data", "vcs" : "local" } }

It works perfectly fine and searches all the code inside the above folder. How can i open the file in the browser tab that came back as part of the search result?

The URL that it has for file path is of the form: file:///Users/tushar/Data/blob/39c382d29d912a84b17ffbeaa4766f03dc0dad1b/sources/Mycode/Export.cpp

The link is not clickable . Because of the blob/39c382d29d912a84b17ffbeaa4766f03dc0dad1b part in URL it does not work. How can i have the URL generated without the blob part?

@albexl
Copy link

albexl commented Jul 1, 2024

You will need to add a url-pattern option for your repos. Take a look at some of the options here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants