Create Link that Prompt Files to Open (or Show In Folder)

It you link to a file in your jekyll site’s repo, like this —

Check out this [file](/file/path/test.m).

— when clicked, that link will prompt the linked test.m file to download.


Is there a way to have that test.m file actually open or show in folder if the person clicking that link has access to (or a local version of) that site’s repository?

Jekyll has no role to play in this.

This is to be done by browser settings. Browser can indeed show the file , like a PDF and not download it.
Opening filesystem location seems to be far fetched even for the browser.

I imagined that was a big ask. Thank you for the clarification!