# Bookmarks

A bookmark is a special marker on a single line, indicated on the bookmark margin. With this you can easily search for lines and perform certain operations on them.

### Adding/Removing bookmarks:

You can toggle a bookmark on a single line by clicking on the bookmark margin in front of the line, or by selecting Search->Bookmarks -> Toggle Bookmark. The Search->Reverse Bookmarks command toggles bookmarks on each line of the currently opened document.

### To remove all bookmarks

Select Search->Bookmarks->Clear all Bookmarks.

### Navigating with bookmarks:

To Jump with the cursor to the next line containing a bookmark, select Search->Bookmarks->Next Bookmark, to go to the previous bookmarked line select Search->Bookmarks->Previous Bookmark.

### Modifying bookmarked lines:

You can perform a single operation on all bookmarked lines.

- To cut each bookmarked line, select Search->Bookmarks->Cut Bookmarked Lines. Every line will be cut from the file and added to the clipboard, so they can all be pasted at once.
- To copy, select Search->Bookmarks->Copy bookmarked Lines instead.
- To replace each bookmarked line with the current clipboard contents, select Search->Bookmarks->Paste to (Replace) bookmarked lines.
- To remove all bookmarked lines, select Search->Bookmarks->Delete bookmarked lines. Likewise, Search->Bookmarks->Remove unmarked lines deletes all lines without a bookmark.
- To remove all existing bookmarks while marking all unmarked lines, there is Search->Bookmarks->Invert all bookmarked lines

The Delete option allows you to search for lines first, mark them with a bookmark using search (see below), then remove all of them based on a certain trait.

### Bookmarking search results

The Mark tab on the Find / Replace dialog allows the bookmarking of all hits for a certain search, using the Mark All button. The controls below the Find what text field provide more control:

- Bookmark line adds a bookmark (see Bookmarks) to the line with a hit.
- Purge for each search will clear all bookmarks and highlights before searching again. Leaving unchecked will combine bookmarks for different searches.
- In selection restricts bookmarking or marking to the selected area.

In addition, the Clear all marks button resets all bookmarks or highlighting.