You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.5 KiB
Markdown
67 lines
2.5 KiB
Markdown
4 years ago
|
# W3M Prefix Search Engines Using FZF and Surfraw
|
||
|
improving w3m by having a quick way to search multiple search engines or even custom search engines via the power of surfraw elvi
|
||
|
|
||
|
* tutorial video: [Link](https://youtu.be/p5NZb8f8AHA)
|
||
|
* offical website: [Link](https://www.youtube.com/user/gotbletu)
|
||
|
|
||
|
### install requirements
|
||
|
w3m fzf surfraw
|
||
|
|
||
|
### install scripts to root directory
|
||
|
Download at [root-cgi-bin](w3m_plugins/root-cgi-bin)
|
||
|
|
||
|
----
|
||
|
# save it to
|
||
|
|
||
|
/usr/lib/w3m/cgi-bin/goto_clipboard_primary.cgi
|
||
|
/usr/lib/w3m/cgi-bin/goto_clipboard.cgi
|
||
|
/usr/lib/w3m/cgi-bin/goto_tmux_clipboard.cgi
|
||
|
----
|
||
|
|
||
|
### install scripts to local directory
|
||
|
Download at [cgi-bin](w3m_plugins/cgi-bin)
|
||
|
|
||
|
----
|
||
|
# save it to
|
||
|
|
||
|
~/.w3m/cgi-bin/fzf_surfraw.cgi
|
||
|
~/.w3m/cgi-bin/fzf_surfraw_tmux.cgi
|
||
|
----
|
||
|
|
||
|
### configuration
|
||
|
vim ~/.w3m/keymap
|
||
|
|
||
|
# for x sessions
|
||
|
keymap xs COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; GOTO /usr/lib/w3m/cgi-bin/goto_clipboard_primary.cgi"
|
||
|
keymap XS COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; TAB_GOTO /usr/lib/w3m/cgi-bin/goto_clipboard_primary.cgi"
|
||
|
# keymap xs COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; GOTO /usr/lib/w3m/cgi-bin/goto_clipboard.cgi"
|
||
|
# keymap XS COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; TAB_GOTO /usr/lib/w3m/cgi-bin/goto_clipboard.cgi"
|
||
|
|
||
|
# for tmux users or headless server
|
||
|
# keymap xs COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw_tmux.cgi ; GOTO /usr/lib/w3m/cgi-bin/goto_tmux_clipboard.cgi"
|
||
|
# keymap XS COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw_tmux.cgi ; TAB_GOTO /usr/lib/w3m/cgi-bin/goto_tmux_clipboard.cgi"
|
||
|
|
||
|
|
||
|
### references
|
||
|
- https://youtu.be/p5NZb8f8AHA
|
||
|
- https://github.com/felipesaa/A-vim-like-firefox-like-configuration-for-w3m
|
||
|
- [W3M Playlist](https://www.youtube.com/playlist?list=PLqv94xWU9zZ35Yv0s6zMID5JoS8qu19Kh)
|
||
|
- [Surfraw Playlist](https://www.youtube.com/playlist?list=PLqv94xWU9zZ2e-lDbmBpdASA6A6JF4Nyz)
|
||
|
- [FZF Playlist](https://www.youtube.com/playlist?list=PLqv94xWU9zZ2fMsMMDF4PjtNHCeBFbggD)
|
||
|
|
||
|
### contact
|
||
|
|
||
|
_ _ _ _
|
||
|
__ _ ___ | |_| |__ | | ___| |_ _ _
|
||
|
/ _` |/ _ \| __| '_ \| |/ _ \ __| | | |
|
||
|
| (_| | (_) | |_| |_) | | __/ |_| |_| |
|
||
|
\__, |\___/ \__|_.__/|_|\___|\__|\__,_|
|
||
|
|___/
|
||
|
|
||
|
- http://www.youtube.com/user/gotbletu
|
||
|
- https://twitter.com/gotbletu
|
||
|
- https://github.com/gotbletu
|
||
|
- gotbletu@gmail.com
|
||
|
|
||
|
|