yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.93k stars 325 forks source link

Clicking on the markdown links, if they are valid, should open local files in the IDE and folders in the local operating system's file manager. #1445

Open cheblin opened 4 months ago

cheblin commented 4 months ago

Markdown is not just for online use; it is widely used in local environments as well. Its versatility allows for the creation and management of locally stored documentation that can be interconnected, making it easy to navigate and organize information within a project or workspace. This makes it a popular choice for developing detailed guides, manuals, and other written materials that need to be accessed offline or within a specific network environment. The linking feature enables users to reference related documents, sections, or resources, enhancing the overall user experience and efficiency of document management.

When using the Markdown plugin in IntelliJ IDEA, clicking on the link [demo.cs](/D:/AdHocTMP/AdhocProtocol/InCS/Agent/demo.cs) opens the corresponding file within the IDE. I have requested the plugin developers to add a feature that lets users open a folder in the local operating system's file manager when the link [gen](/D:/AdHocTMP/AdhocProtocol/InCS/Agent/gen) represents a valid path to a folder.

What's the problem

VS Code markdown extension ignores these links.

What's the expected result

I expect behavior similar to the IntelliJ IDEA Markdown plugin, where clicking on links should open local files and folders.

How to reproduce

  1. ...
  2. ...

Other information