I was kinda wondering that myself. There's so many terminal based apps to keep track of, I've gotten into the habit of trying to know a core set fairly well (like bash,awk,sed,grep -P etc). For this sort of thing I have a dozen tabs open in w3m already.
$ alias wiki='f(){ w3m -F "https://en.wikipedia.org/w/index.php?search=${1}&title=Special:Search&ns0=1"; unset -f f; }; f'
$ wiki pandas
This seemed to work well for me.
A tab to the wikipedia search page bookmarked would work well too and could be used in existing w3m/lynx session.
This is the Unix way. You already have the tools and utilities you need, just pipeline them together and make an alias if it’s something you need frequently.
hey, off topic but can you explain or link a post which explains what the benefits of the alias -> function definition are over just defining the function directly?
Thanks!
I have never used Lynx personally, but just going through the description of it i would say that wik also provide quick introduction lookup to a desired topic. Initially i made this as a personal tool just for this quick introduction lookup feature as i don't wanted to hustle through a browser for a just introduction search on the topic. But when made i made this project public i added full info and search.
A tab to the wikipedia search page bookmarked would work well too and could be used in existing w3m/lynx session.