GoMarks Help

Simple shortcuts | Smart shortcuts | Smarter shortcuts | Reserved action keywords
GoMarks as your search engine | GoMarks for iPhone | Fallback search engine | Backup database


GoMarks let's you create shortcuts that provides quick access to your favorite websites.

It is a similar concept to go links, smart bookmarks or bangs.


Basic concept

Shortcuts need a keyword and a destination URL.

When your request in GoMarks matches one of your keywords, it redirects (HTTP 302) to the destination URL.


Usage

To use your shortcuts, you can:

1. set GoMarks as your browser start page and use its search box

2. open the URL https://gomarks.gwill.cloud/go/?q=keyword+option directly

3. RECOMMENDED: make GoMarks your browser's default search engine so you can type your keywords (and potential options) directly in the browser URL bar.


Simple shortcuts

A keyword bbc can take you to the destination URL https://www.bbc.com.

Simple shortcuts can't take options (like bbc europe) because they are simple redirects.

Smart shortcuts

Smart shortcuts can take options (like bbc europe or bbc asia) and will redirect based on the placeholder %s in your destination URLs.

For the above BBC example, this would be your URL https://www.bbc.com/news/world/%s.

Smart shortcuts require an option. If you do not pass an option, you'll get an error because the placeholder expects one.

Search shortcuts

GoMarks allows you to create shortcuts for quick searches on websites.

Let's go to The Verge website and look for "Macbook Neo" in their search engine.

This results in https://www.theverge.com/search?q=Macbook+Neo in your browser bar.

This would translate to a destination URL https://www.theverge.com/search?q=%s to which I assign the keyword verge.

Now, searching for verge Macbook Neo in GoMarks will take you to the list of articles about Macbook Neos on The Verge website.

Some websites add a lot of tracking garbage to the URL when searching, like &utm_medium=cpc&utm_campaign=spring_sale.

Usually you can safely remove those and only keep the query argument in your destination URL.

You can find more examples below.

Single option keywords

A placeholder %s can take multiple words (like the "Macbook Neo" example above).

When adding or editing a shortcut, you'll find a "1️⃣ single option keyword" option.

This option only activates for URLs with a placeholder.

With this option enabled, it means the shortcut is expected to take a single option/word (e.g. Macbook).

If you pass multiple options/words, GoMarks will bypass your keyword and make a search engine query instead.

Let me illustrate the concept with some queries around the Docker topic.

You want a shorcut to search for images on Docker Hub by using docker mariadb (destination URL https://hub.docker.com/search?q=%s).

Sometimes, you are also likely to search for docker versus OpenShift or docker compose syntax.

If you DO NOT enable single option keyword, you're going to end up searching Docker Hub for "versus OpenShift" which is probably not what you wanted.

With the option enabled, docker versus OpenShift will make a search engine request and docker mariadb will make a Docker Hub search.

When single option is enabled, an icon 1️⃣ appears next to the keyword in the shortcuts list.

Shortcut examples


Reserved action keywords

Some keywords are reserved to perform GoMarks actions outside of the web interface.

Action keywords do not appear in the list.

You can reconfigure reserved action keywords in the administration section if they conflict with your workflows.

Usage Action
!add myshortcut https://www.example.com adds a simple shortcut
!add myshortcut https://www.example.com/%s adds a placeholder shortcut
!add myshortcut https://www.example.com/%s 1 adds a single option keyword shortcut
!mod myshortcut takes you to the edit page for the shortcut
!del myshortcut takes you to delete confirmation page

Making GoMarks Your Default Search Engine

By making GoMarks your default search engine, you can type your queries and actions in the URL/search bar for faster access to your links.

If your request doesn't match any shortcuts, GoMarks will just redirect to the fallback search engine.

Chrome

In the address bar go to chrome://settings/searchEngines

Search Engine > Manage search engines and site search

Site Search > Add

Add Site Search and use this URL https://gomarks.gwill.cloud/go/?q=%s

Click on the hamburger menu for your new search engine > Make default

Start searching

Firefox

Go to your GoMarks instance > Right click on the URL > Add "GoMarks"

Go in Firefox settings > Change Default Search Engine

Start searching

Firefox - Alternative Way

If the method above doesn't work, use this add-on.


iPhone Shortcuts

You can't change the default search engine in Safari on iPhone.

You can use an iOS shortcut and use the action button or widgets to call GoMarks.


Fallback Search Engine

If your request doesn't match any shortcut or if you use single option keywords, GoMarks can send your request to the fallback search engine.

The fallback search engine is configurable (Google, Duckduckgo, your own self-hosted solution, etc.)

Backup database

You can trigger a backup via the button on the main page or via:

curl -X POST https://gomarks.gwill.cloud/backup

The database will be saved on the filesystem in the format items.db.timestamp.

You can restore the database by manually replacing items.db with the backup copy.


















































































































🍌🐇