-
Notifications
You must be signed in to change notification settings - Fork 66
Fix file scheme handler to respect g:wiki_viewer #171
Copy link
Copy link
Closed
Description
The file handler/follower function does not properly respect the g:wiki_viewer default key _:
wiki.vim/autoload/wiki/url/file.vim
Lines 37 to 41 in 871e55e
| if has_key(g:wiki_viewer, self.ext) | |
| call system(g:wiki_viewer[self.ext] . ' ' . shellescape(self.url) . '&') | |
| else | |
| execute 'edit' fnameescape(self.path) | |
| endif |
The documentation for :help g:wiki_viewer implies that the _ key specifies a default viewer that is used if a specific viewer for a specific file type is not defined.
Suggested solution: Update s:handler.follow in url/file.vim to respect the g:wiki_viewer['_'] key.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels