From 2053cf6be92de7c52ffb385b922f81bd1b8e76e9 Mon Sep 17 00:00:00 2001 From: gotbletu Date: Mon, 11 May 2020 04:06:46 -0700 Subject: [PATCH] w3m macro binding --- w3m_macros.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 w3m_macros.md diff --git a/w3m_macros.md b/w3m_macros.md new file mode 100644 index 0000000..45e9e04 --- /dev/null +++ b/w3m_macros.md @@ -0,0 +1,45 @@ +# W3M Macros - Automate Task +Using macros automate toggling settings like images display or table borders on or off quickly. Smart search similar feature using macros as well for different search engines + +* tutorial video: [Link](https://youtu.be/lL73xWsaJP8) +* offical website: [Link](https://www.youtube.com/user/gotbletu) + +### install requirements + w3m + +### configuration + vim ~/.w3m/keymap + + # leader key = \ + keymap \\\t COMMAND "SET_OPTION display_borders=toggle ; RESHAPE" + keymap \\\i COMMAND "SET_OPTION display_image=toggle ; RELOAD" + keymap \\\e COMMAND "SET_OPTION user_agent='' ; RELOAD" + keymap \\\a COMMAND "SET_OPTION user_agent='Opera/9.80 (S60; SymbOS; Opera Mobi/SYB-1107071606; U; en) Presto/2.8.149 Version/11.10' ; RELOAD" + keymap C-t COMMAND "TAB_GOTO https://duckduckgo.com/lite/; NEXT_LINK; GOTO_LINK" + keymap t COMMAND "TAB_GOTO https://duckduckgo.com/lite/; NEXT_LINK; GOTO_LINK" + keymap sg COMMAND "TAB_GOTO https://google.com; GOTO_LINE 6; NEXT_LINK; GOTO_LINK" + keymap sx COMMAND "TAB_GOTO https://stackexchange.com; GOTO_LINE 7; NEXT_LINK; GOTO_LINK" + keymap \\\? COMMAND "HELP; SEARCH User-Defined; CENTER_V" + keymap \\\m COMMAND "SHELL 'man w3m'" + +### references +- https://youtu.be/lL73xWsaJP8 +- https://raw.githubusercontent.com/felipesaa/A-vim-like-firefox-like-configuration-for-w3m/master/documentation/functions.txt +- https://ntmlabs.com/w3m-tricks/ +- https://developers.whatismybrowser.com/useragents/explore/ +- [W3M Playlist](https://www.youtube.com/playlist?list=PLqv94xWU9zZ35Yv0s6zMID5JoS8qu19Kh) + +### contact + + _ _ _ _ + __ _ ___ | |_| |__ | | ___| |_ _ _ + / _` |/ _ \| __| '_ \| |/ _ \ __| | | | + | (_| | (_) | |_| |_) | | __/ |_| |_| | + \__, |\___/ \__|_.__/|_|\___|\__|\__,_| + |___/ + +- http://www.youtube.com/user/gotbletu +- https://lbry.tv/@gotbletu +- https://twitter.com/gotbletu +- https://github.com/gotbletu +- gotbletu@gmail.com