gleitz / howdoi

instant coding answers via the command line
http://blog.gleitzman.com/post/43330157197/howdoi-instant-coding-answers-via-the-command-line
MIT License
10.61k stars 869 forks source link

Features : add tag keyword #369

Closed arita37 closed 3 years ago

arita37 commented 3 years ago

Example

howdoi @google create a dictionnary in java

howdoi @stack create a dictionnary in python

howdoi @custom create a dictionnary

@XXX : Custom location for information search

gmelodie commented 3 years ago

I actually like that very much, a bit like DuckDuckGo's bangs: google this string !g. @gleitz what do you think?

gleitz commented 3 years ago

Rather than trying to support a bunch of tags, we might want to document and encourage the usage of aliases that can be easily configured by users. For example you can search other StackExchange properties like this:

alias hcook='function hcook(){ HOWDOI_URL=cooking.stackexchange.com howdoi $* ; }; hcook'
hcook make pesto

or make a bing-specific search like so:

alias hbing='function hbing(){ howdoi --engine bing $* ; }; hbing'
hbing format date bash