Adding and deleting a bookmark
After launching a bookmark editor, you can add, update or even delete a bookmark. hlg
uses your default text editor to display a bookmark file for you.
This page is going to show you how you can add, modify or delete a bookmark using your text editor, so the assumption here is that you are familiar with its interface, functionality and quirks.
The key features we are interested in are text entry and saving a file.
To add a new bookmark
-
Launch the bookmark editor with
hlg -e
-
Navigate to any line—whether at the end, middle or the beginning—and place your cursor there.
-
Create a new blank line.
-
On that blank line, enter the new bookmark entry as follows:
-
Type the name of the new bookmark name;
-
Optionally, add any flags on the name.
-
Add a space then enter the opening angle bracket,
<
-
Enter the the location of the bookmark, then insert a closing angle bracket,
>
-
Add a space, then type a colon
(:)
then the the name of the handler for this bookmark.
-
To Update a bookmark
Instead of adding a new bookmark simply because its location changed may not be ideal. O you may want to use a new name for some other bookmark.
In that case, simply using your editor’s Find or Search feature, locate the bookmark you want to change. Then make an appropriate alteration in the field you want to update.
To delete a bookmark
To delete a bookmark, you would simply follow the procedure for updating, except that:
-
When you find the bookmark you want, you are going to delete the bookmark entry.
-
for an entry to be considered as having been deleted from the bookmark database, you have to delete the whole line and not just one field.
-
A deleted bookmark is no longer available for use which means that its name, shortcut keys, location and so on can be reused by other bookmarks.
Remember to save your file after editing, otherwise your changes will be lost if you just close without saving. |