Skip to content

Commit

Permalink
udpate commands
Browse files Browse the repository at this point in the history
  • Loading branch information
xvvvyz committed Sep 24, 2024
1 parent df05ab8 commit 2af1707
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ Tilde is a minimal browser homepage for pro web surfers.

**To go to a site**, type the corresponding key and press <kbd>Enter</kbd>.

e.g. `a` <kbd>Enter</kbd> will redirect you to
[chatgpt.com](https://chatgpt.com)
e.g. `g` <kbd>Enter</kbd> will redirect you to [github.com](https://github.com)

**To search a site**, type a space after the site&rsquo;s key followed by your
query.

e.g. `y kittens` <kbd>Enter</kbd> will
[search YouTube for kittens](https://www.youtube.com/results?search_query=kittens)
e.g. `g tilde` <kbd>Enter</kbd> will
[search GitHub for tilde](https://github.com/search?q=tilde)

**If your input doesn&rsquo;t match a key**, a DuckDuckGo search will be
triggered.

e.g. `google` <kbd>Enter</kbd> will
[search DuckDuckGo for google](https://duckduckgo.com/?q=google)
e.g. `tilde` <kbd>Enter</kbd> will
[search DuckDuckGo for tilde](https://duckduckgo.com/?q=tilde)

**To go to a specific path on a site**, type the path after the site&rsquo;s
key.
Expand Down
22 changes: 8 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,32 +39,26 @@

// prettier-ignore
const COMMANDS = new Map([
['a', { name: 'Artificial', suggestions: ['a/claude', 'a/gemini'], url: 'https://chatgpt.com' }],
['a/claude', { url: 'https://claude.ai/new' }],
['a/gemini', { url: 'https://gemini.google.com/app' }],
['b', { name: 'Dribbble', url: 'https://dribbble.com/shots/popular' }],
['a', { name: 'Alphabet', searchTemplate: '/search?q={}', suggestions: ['a/cal', 'a/drive'], url: 'https://google.com' }],
['a/cal', { url: 'https://calendar.google.com' }],
['a/drive', { url: 'https://drive.google.com/drive/u/0/my-drive' }],
['c', { name: 'Cloudflare', url: 'https://dash.cloudflare.com' }],
['d', { name: 'Discord', url: 'https://discord.com/channels/@me' }],
['f', { name: 'Figma', url: 'https://www.figma.com' }],
['g', { name: 'GitHub', searchTemplate: '/search?q={}', url: 'https://github.com' }],
['o', { name: 'Google', searchTemplate: '/search?q={}', suggestions: ['o/drive', 'o/cal'], url: 'https://google.com' }],
['o/cal', { url: 'https://calendar.google.com' }],
['o/drive', { url: 'https://drive.google.com/drive/u/0/my-drive' }],
['i', { name: 'Intuit', url: 'https://selfemployed.intuit.com/home' }],
['o', { name: 'OpenAI', url: 'https://chatgpt.com' }],
['p', { name: 'Proton', searchTemplate: '/u/0/all-mail#keyword={}', suggestions: ['p/drive', 'p/pass'], url: 'https://mail.proton.me/u/0/inbox' }],
['p/drive', { url: 'https://drive.proton.me/u/0/' }],
['p/pass', { url: 'https://pass.proton.me/u/0/' }],
['q', { name: 'QuickBooks', url: 'https://selfemployed.intuit.com/home' }],
['s', { name: 'Supabase', url: 'https://supabase.com/dashboard/projects' }],
['t', { name: 'TickTick', suggestions: ['t/habits', 't/pomo'], url: 'https://ticktick.com/webapp/#q/today/tasks' }],
['t/habits', { url: 'https://ticktick.com/webapp/#q/all/habit' }],
['t/pomo', { url: 'https://ticktick.com/webapp/#focus' }],
['u', { name: 'Unsplash', url: 'https://unsplash.com/' }],
['v', { name: 'Vercel', url: 'https://vercel.com/dashboard' }],
['x', { name: 'xvvvyz', suggestions: ['x/torrent', 'x/droplet', 'x/proxy'], url: 'https://xvvvyz.xyz' }],
['x', { name: 'xvvvyz', suggestions: ['x/torrent', 'x/proxy', 'x/droplet'], url: 'https://xvvvyz.xyz' }],
['x/droplet', { url: 'https://cloud.digitalocean.com/projects/50ffcff7-ad65-40e3-af88-3cbc5a38cf99/resources' }],
['x/proxy', { url: 'https://proxy.xvvvyz.xyz' }],
['x/torrent', { url: 'https://torrent.xvvvyz.xyz' }],
['y', { name: 'YouTube', searchTemplate: '/results?search_query={}', url: 'https://youtube.com/feed/subscriptions' }],
['0', { name: 'local', suggestions: ['0:54323', '0:54324'], url: 'http://localhost:3000' }],
['0:54323', { url: 'http://localhost:54323' }],
['0:54324', { url: 'http://localhost:54324' }],
Expand Down Expand Up @@ -128,10 +122,10 @@
}
}

@media (min-width: 60rem) {
@media (min-width: 62rem) {
.commands {
columns: 4;
max-width: 50rem;
max-width: 44rem;
}
}
</style>
Expand Down

0 comments on commit 2af1707

Please sign in to comment.