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

Woking for me - thanks! - Is woking with "justinmk / vim-dirvish" possible? #4

Open
philiprhoades opened this issue May 6, 2022 · 1 comment

Comments

@philiprhoades
Copy link

I finally got annoyed by my attempts at using regular "gx" and "\w" not working reliably and so I installed this plugin - worked straight away! - so thanks!

While I was looking Vim stuff again I came across:

https://github.com/justinmk/vim-dirvish

but looking through the code for gx-extended looks like it requires netrw? - so I guess if rename netrw files, gx-extended will stop working?

@stsewd
Copy link
Owner

stsewd commented May 13, 2022

Hi, it only uses netrw BrowseX functions as fallback

if a:mode ==# 'normal'
" https://github.com/neovim/neovim/blob/6ca7ebb34685a2be497dd5bb00defd5976af7b27/runtime/plugin/netrwPlugin.vim#L84
call netrw#BrowseX(expand(get(g:, 'netrw_gx', '<cfile>')), netrw#CheckIfRemote())
else
" https://github.com/neovim/neovim/blob/6ca7ebb34685a2be497dd5bb00defd5976af7b27/runtime/plugin/netrwPlugin.vim#L90
call netrw#BrowseXVis()
endif

You can also remove it from the default handlers if you don't want to use it (global#gx)

    let g:gxext#handlers = {
          \ 'global': ['global#urls', 'global#gx'],
          \ 'gitcommit': ['gitcommit#github'],
          \ 'markdown': ['markdown#link'],
          \ 'vim': ['vim#plugin'],
          \}

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