From 6458e702751734cbf2b26960d337a7ad0fd8f808 Mon Sep 17 00:00:00 2001 From: familyfriendlymikey Date: Thu, 25 Aug 2022 15:48:45 -0400 Subject: [PATCH] use ` for effective name instead of ~ --- app/client.imba | 12 ++++++------ readme.md | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/client.imba b/app/client.imba index 3011300..c89615d 100644 --- a/app/client.imba +++ b/app/client.imba @@ -50,13 +50,13 @@ tag app def add_initial_links let initial_links = [ "tutorial github.com/familyfriendlymikey/fuzzyhome" - "!brave search ~b search.brave.com/search?q=" + "!brave search `b search.brave.com/search?q=" "!youtube youtube.com/results?search_query=" "photopea photopea.com" "twitch twitch.tv" - "messenger ~me messenger.com" - "instagram ~in instagram.com" - "localhost ~3000 http://localhost:3000" + "messenger `me messenger.com" + "instagram `in instagram.com" + "localhost `3000 http://localhost:3000" ] for link in initial_links try @@ -162,7 +162,7 @@ tag app { href:url, host } = parse_url url let icon = await fetch_image_as_base_64 host let name - if split_text[-1].startsWith "~" + if split_text[-1].startsWith "`" name = split_text.pop!.slice(1) let display_name = split_text.join(" ") let is_bang = no @@ -195,7 +195,7 @@ tag app let link_text = "" link_text += "!" if link.is_bang link_text += link.display_name - link_text += " ~{link.name}" if link.name isnt link.display_name + link_text += " `{link.name}" if link.name isnt link.display_name link_text += " {link.url}" link_text diff --git a/readme.md b/readme.md index 12ea8a9..2b03ba6 100644 --- a/readme.md +++ b/readme.md @@ -69,15 +69,15 @@ but now it looks bad. To solve this, fuzzyhome allows you to add an "effective name" to a link: ``` -instagram ~in instagram.com +instagram `in instagram.com ``` To add an effective name to a link, -simply add the name prefixed with a tilde right before the URL. +simply add the name prefixed with a backtick right before the URL. This also works for bang links. Let's say we wanted `a` to correspond to `!amazon`: ``` -!amazon ~a amazon.com/s?k= +!amazon `a amazon.com/s?k= ``` Now when you type `in` or `a`, you can have confidence that your @@ -135,7 +135,7 @@ Let's say you've been typing `in` for `instagram`, but recently added `indeed` a and `indeed` keeps showing up first. Simply change the effective name of the `instagram` link to `in`: ``` -instagram ~in instagram.com +instagram `in instagram.com ``` ### A Link Is Blocking My Search