Skip to content

Fix file scheme handler to respect g:wiki_viewer #171

@lervag

Description

@lervag

The file handler/follower function does not properly respect the g:wiki_viewer default key _:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions