Add search
This commit is contained in:
parent
3c97a2eab1
commit
4e09a7b831
1 changed files with 36 additions and 30 deletions
|
|
@ -122,6 +122,7 @@ $('body').terminal({
|
|||
this.echo("Some commands to get you started:\n" +
|
||||
"• about: show about info\n" +
|
||||
"• services: links to all the services i host, run 'services help' to get a full list\n" +
|
||||
`• search: search the internet using my searxng, run 'search "<query>"'\n`+
|
||||
"• pgp: import my pgp public key\n" +
|
||||
"• meow: mrow\n" +
|
||||
"\n " +
|
||||
|
|
@ -219,6 +220,11 @@ I help moderate the linuxposting community across its many locations, including
|
|||
let meows = ['meow', 'mrrrp', 'mrow', 'mrreow', 'miao', 'mraa']
|
||||
let random = Math.floor(Math.random() * meows.length);
|
||||
this.echo(meows[random])
|
||||
},
|
||||
search: function(query) {
|
||||
let uri = "https://search.ceressees.dev/search?q="+query;
|
||||
let encodedUri = encodeURI(uri);
|
||||
open(encodedUri, '_self')
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue