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

Feature: Following MD file path links (switching editor between the linked files) #9

Open
andis-sprinkis opened this issue Dec 17, 2023 · 1 comment

Comments

@andis-sprinkis
Copy link

andis-sprinkis commented Dec 17, 2023

I previously used jghauser/follow-md-links.nvim plugin to open HTTP URLs in MD files.

I like url-open better in that regard, because it works for opening HTTP URLs in all files.

But from follow-md-links I miss being also able to jump in the editor between the linked files e.g. [a relative path file](./../relative_path_file.md) using the same key as opening the browser HTTP URLs.

Considering url-open already handles MD HTTP URL pattern, would you be interested to implement switching in editor between the linked files functionality in url-open?

Or maybe facilitate some way for url-open and follow-md-links to work via the same keyboard shortcut?

@andis-sprinkis andis-sprinkis changed the title Feature: Following MD file path links Feature: Following MD file path links (switching editor between the linked files) Dec 17, 2023
@andis-sprinkis
Copy link
Author

andis-sprinkis commented Dec 17, 2023

It occurred to me that such functionality may be similar to vim.lsp.buf.definition method, which in editor jumps to the definition file of a symbol and similarly vim.lsp.buf.declaration. (The former works with the code module imports for example.) That's something to note if there is a wish to scale the pattern to other linked file types.

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

1 participant