tyru / open-browser.vim

Open URI with your favorite browser from your most favorite editor
http://www.vim.org/scripts/script.php?script_id=3133
Other
509 stars 48 forks source link

Should separate Ex-commands to open URI, or filepath? #1

Open tyru opened 14 years ago

tyru commented 11 years ago

TODO openbrowser#open({uri})に引数{type}を追加予定。 Add {type} to openbrowser#open({uri}).

Ex-commands

:OpenBrowser {uri}
dispatch either:
  :OpenFileBrowser {filepath}
  :OpenWebBrowser {url}

Functions

openbrowser#open('file:/C:/...', 'file')
openbrowser#open('http://example.com/', 'web')

Links

http://lingr.com/room/vim/archives/2013/01/30#message-13797080 @thinca++ (Thanks for the idea)

tyru commented 11 years ago

ブラウザ をオプション引数で指定できると便利。(by @osyo-manga) Is it useful to choose a browser by optional argument?

:OpenFileBrowser -explorer {filepath}
:OpenWebBrowser -firefox {url}

Links

http://lingr.com/room/vim/archives/2013/05/11#message-15240617

tyru commented 8 years ago

Created another issue for an optional argument for a browser. #75