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

'gx'-style functionality or ability to use netrw's gx command #35

Open
ghost opened this issue Jan 18, 2016 · 2 comments
Open

'gx'-style functionality or ability to use netrw's gx command #35

ghost opened this issue Jan 18, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 18, 2016

Netrw allows me to open non-text files in a default app (e.g. PDFs, jpegs) by using 'gx'. Could you implement this for Filebeagle? Interestingly, in the Dervish fork 'gx' is useable, but I much prefer Filebeagle.

@jeetsukumaran
Copy link
Owner

Sorry for the delay. This should be an easy thing to do, but I do not have time right now. I will address it as soon as I get the chance.

@thet
Copy link

thet commented Nov 24, 2017

I've configured some autocmd's do to exactly that. E.g. this opens the following files with the default viewer on linux:

" Open some binaries with external tools
autocmd BufReadCmd *.pdf silent !xdg-open % &
autocmd BufEnter *.pdf bdelete
autocmd BufReadCmd *.png silent !xdg-open % &
autocmd BufEnter *.png bdelete
autocmd BufReadCmd *.jpg silent !xdg-open % &
autocmd BufEnter *.jpg bdelete
autocmd BufReadCmd *.jpeg silent !xdg-open % &
autocmd BufEnter *.jpeg bdelete
autocmd BufReadCmd *.gif silent !xdg-open % &
autocmd BufEnter *.gif bdelete

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