this post was submitted on 08 Dec 2023
24 points (92.9% liked)

Linux

48372 readers
2395 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

eg: typing "linux @l" should search "linux lemmy" and "beatles @mb" should search "beatles musicbrainz",
where I define these shortcuts

top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 20 points 11 months ago* (last edited 11 months ago) (1 children)

You can do almost exactly this with keyword bookmarks. The only change is that you need to put the "keyword" at the start of the URL. So @l linux rather than linux @l.

Create a new bookmark with these settings:

  • Name: Whatever you want.
  • URL: The search query you want with the text replaced by %s. For example https://kagi.com/search?q=%s+site:https://lemm.ee.
  • Keyword: The tag you want. Such as @l.

Now you can type @l foobar in the URL bar and it will go to https://kagi.com/search?q=foobar+site:https://lemm.ee. (Or whatever search engine you have configured.

Keywords can also be used for non-search bookmarks and javascript bookmarklets which are very convenient.

[–] somethingsomethingidk 4 points 11 months ago (1 children)

Cool! I had no idea that was a feature, thanks for sharing

[–] [email protected] 3 points 11 months ago

Yeah, it is sadly not advertised. Even the "Keyword" box helper text isn't very obvious how it works. They should link to a help page.

Not to mention that they also have search engines which work in a very similar way, but have a different UI, are harder for users to manually define and don't sync across devices via Firefox Sync.

It's a big mess. But it works! So that is enough for me.

[–] Ozy 2 points 11 months ago* (last edited 11 months ago)

YES THERE IS, THERE IS A TOOL FOR LINUX THAT TURNS KEYWORDS INTO WHATEVER YOU WANT THEM TO BE, ~~I just need to find it again so hold on~~ FOUND IT, IT'S https://espanso.org/

[–] [email protected] 1 points 11 months ago

This is one of the features in chrome that I wish Firefox would implement.

[–] [email protected] 1 points 11 months ago (1 children)

you're looking for text expander software.

or you could use DuckDuckGo, its !bang feature lets you directly search on a website you want. searching "Beatles !mb" will redirect you to MusicBrainz' search results, for example.

[–] [email protected] 1 points 11 months ago (1 children)

Firefox has keyword bookmarks which is basically identical to bangs but you can customize them to your preference and they don't require sending your query to a third-party remote service.

Just set the "Keyword" option in a bookmark and type mykeyword foo in the URL bar to search using your bookmark mykeyword. I use a lot of one-character keywords such as m for https://www.google.ca/maps?q=%s, g for https://www.google.com/search?q=%s, d for https://www.dndbeyond.com/search?q=%s and similar. I also have a keyword e which runs a bookmarklet that fills in a one-time email into the currently focused input field.

[–] [email protected] 2 points 11 months ago (1 children)

sure, it's just a pain in the ass to set up for more than a few search options.

[–] [email protected] 1 points 11 months ago

IDK, maybe I have a particularly bad memory but it is basically as easy for me to bookmark a URL as it is to lookup and remember a bang that they defined. Plus local will always be faster, more private and more secure.

[–] [email protected] 0 points 11 months ago* (last edited 11 months ago)

You could try system wide macros. If you type @l, macro deletes last 2 chars and types lemmy