Glossary of terms
These terms had been used specially in this guide:
- bookmark
-
A name referring to a location. This name has the location being referred to and an optional program to open the target resource in the location.
A bookmark is understood differently when used as an argument to
hlg
on the terminal and when entered in the database:-
on the terminal, a bookmark may be a fully-qualified bookmark if it shows the category in which it belongs with a period sign
(.),
otherwise it is assumed to be in the default category. -
When being entered in the bookmark file, a bookmark name is the first field in the bookmark entry and must not contain any period, or start or end with a non-alphanumeric character.
-
- bookmark entry
-
A line in a bookmark file that records the details of a bookmark. A bookmark entry has got three fields, namely
-
The handler or program to open this bookmark.
- bookmark file
- category
-
A class of bookmarks, usually on one subject. A category is a file in the "bookmarks" directory with bookmark entries. This is the one that
hlg
reads every time a request is made. - command bookmark
-
A bookmark whose location does not link to another resource. Instead, the location executes a command through a given script or an inline script.
- configuration file
-
The main file in which user options are stored. To edit the file, you enter
hlg --edit-configuration
and make any adjustments before saving it. The configuration file entries are in the.toml
format. - database
-
A directory in the
$HLG_HOME
called "bookmarks" with the files holding bookmark entries. - default category
-
A category in which all bookmarks that are not fully-qualified are looked for. This category is set in the configuration file under the option "default-category"
- description
-
A comment about the bookmark entry made on a line starting with a hash mark
#
character. Description is one of the metadata types. - flagged bookmark
-
A bookmark marked as a favorite in a database by appending a plus sign
(+)
It can be launched by simply passing the plus sign tohlg
- handler
-
A program set to open or handle a location of a bookmark. The handler is entered in the third field of bookmark entry
- home-linked category
-
A category holding the main home bookmark. This category may be different from the default category.
- home bookmark
-
A bookmark marked with a star (or asterisk) (written as
*
) in a category bookmark file. This is the bookmark that is opened byhlg
when no bookmark name is passed to it in any category. Each category must not have more than one bookmark marked as a home bookmark. To launch the default category home bookmark, you enterhlg .
- inline script
-
A script whose entire contents are typed in the location field of a bookmark entry.
- key assignment brackets
-
A pair of parentheses attached at the end of the bookmark name. Inside the parentheses is placed the desired shortcut key.
- link
-
A bookmark whose location links to some other resource on the local or remote computer.
- location
-
The second field in the bookmark entry that resolves to some destination. There are three types of location, namely:
-
The link that uses addresses to link to a local or remote resource as a target,
-
The command which results in the execution of of a script, and
-
The reference, which targets another bookmark in the database.
The location is what defines the type of a bookmark. So if we say, “a linking bookmark” or “a command bookmark”, this has to do with the type of location that bookmark has in its location field.
-
- main home bookmark
-
A bookmark that is launched by
hlg
when called without any argument. This bookmark is set in the configuration file under the "home" option. When the "home" option is not set in the configuration file, the home bookmark of the default category becomes the main home bookmark. - metadata
-
Extra information given to a bookmark entry. A metadata entry is made on a separate line just above the line with a bookmark entry. It starts with a hash mark
#
character. Metadata can contain either a description, a tag or both. When both description and tags are present, the description is entered first before the tags. - option
-
An entry in the configuration file. This is where a user sets her or his option. Each entry is formatted like this:
option-name = "<value>"
and the desired choice is entered in the value placeholder in quotes for a chosen option-name. Thetoml
language is used in options. - reference
-
A bookmark whose location field targets another bookmark.
- safe category
-
A category that cannot be renamed or deleted as this will result in errors in resolving bookmark names. The default and the home-linked categories are the safe categories.
- Shortcut key
-
A single key passed to
hlg
as an argument to launch a bookmark with the assigned key. This key is either alphabetic or numeric. No two bookmarks inhlg
can use the single shortcut key. - Special key
-
A single keystroke passed as an argument to
hlg
which is not numeric or alphabetic. This key launches some designated bookmark. - tag
-
Keywords on the bookmark entry. This is the other type of metadata attached to the bookmark entry besides the description. A tag, or a group of tags is denoted by square brackets
[]
on the line starting with a hash mark character#
- target
-
The end point of a location field in a bookmark. This is the destination of a bookmark.