fanglingsu / vimb

Vimb - the vim like browser is a webkit based web browser that behaves like the vimperator plugin for the firefox and usage paradigms from the great editor vim. The goal of vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience.
https://fanglingsu.github.io/vimb/
GNU General Public License v3.0
1.33k stars 99 forks source link

Feature: Spawn a program asyncronously #747

Closed jonnieey closed 1 year ago

jonnieey commented 1 year ago

Vimb is great, first of all, thanks alot to @fanglingsu and all contributors.

Problem

Spawn command/program asyncronously. I know we can get site content in editor via the gf binding which spawns the editor-command asyncronously. My only issue is I get raw html.

Suggestion

I would like to spawn programs, passing the url as argument. For example st -e w3m %s would spawn the current site in w3m. Then I can get the site as ascii rather than raw html. I can bind such command nmap gf :sh! st -e w3m %s which spawns a w3m instance.

jonnieey commented 1 year ago

so you have you put the env varible in the binding and it works. nnoremap gw :sh! st -e w3m "$VIMB_URI"

CLOSING ISSUE