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

Custom mappings to URL ...? #2

Open
mcepl opened this issue Dec 4, 2018 · 3 comments
Open

Custom mappings to URL ...? #2

mcepl opened this issue Dec 4, 2018 · 3 comments

Comments

@mcepl
Copy link

mcepl commented Dec 4, 2018

I work a lot on the SPEC files which contain openSUSE specific abbreviations, e.g., gh#aklt/rel.vim#2 for this issue. I would love to be able to go with cursor and by hitting a key shortcut (gx would be even better, but Ctrl-K is possible) open a web browser on the given URL (e.g., that would be https://github.com/aklt/rel.vim/issues/2 for this issue). Is something like that possible with this package?

@aklt
Copy link
Owner

aklt commented Jun 1, 2019

Hello @mcepl The original intent of this plugin was to support custom URL schemes, but at the moment it is not mature enough for that. Thanks for the example.

@mcepl
Copy link
Author

mcepl commented Jun 1, 2019

Currently I have let g:netrw_browsex_viewer='setsid osurl' (where osurl is this script https://gitlab.com/mcepl/vim-suse-changes/blob/master/osurl ), but reimplementation in VimL would be probably helpful (or even in Lua, if you care about that; I know that I have it available in my neovim, but not everybody is so happy).

@aklt
Copy link
Owner

aklt commented Jun 2, 2019

Nice!

Something like that should be possible to do with rel.vim and I hope to have a look at some of that tomorrow. I am hoping to make it possible to configure how programs are opened from within vim
and seeing how Neovim has a lua interpreter built in I did consider to rewrite this plugin in Lua as
that would make it much more maintainable.

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