sontungexpt / url-open

Minimal plugin allow you to open url under cursor in neovim without netrw with default browser of your system and highlight url

Home Page:https://sontungexpt.github.io/url-open/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

andis-sprinkis opened this issue · comments

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?

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.