Skip to content

Bookmarks and TODO items

Bookmarks mark the lines you want to come back to; the TODO tool window lists the TODO and FIXME comments of the whole project. Both: Experimental.

  1. Put the caret on the line and choose Edit › Bookmarks › Toggle Bookmark (F3 on macOS, F11 on Linux). A mark appears in the gutter in place of the line number.
  2. To give it a mnemonic, choose Toggle Bookmark with Mnemonic (⌥F3, CtrlF11) instead. A grid of 1 to 9, 0 and A to Z opens: type a character, or Tab to the Description (optional) field first. Taken characters are marked.
  3. The same command on a bookmarked line removes the bookmark.

A mnemonic is unique per project; letters are stored as capitals. For digits there are direct keys: ⌃⇧3 sets bookmark 3 and ⌃3 jumps to it (CtrlShift3 and Ctrl3 on Linux).

  • Edit › Bookmarks › Show Bookmarks (⌘F3, ShiftF11) lists every bookmark, newest first, with a preview of its code. Type a mnemonic to jump to it, or choose a row; ⌫ removes the selected bookmark.
  • Go to Mnemonic… lists only the bookmarks with a mnemonic, in order of the mnemonic.
  • Go to Next Bookmark and Go to Previous Bookmark step through the bookmarks of the open file.
  • The Bookmarks tool window (⌘2, Alt2) shows them as a tree of files; Delete removes one and F2 edits its description.

Bookmarks follow your edits: a line you move down moves its bookmark with it, and deleting the line deletes the bookmark. Renaming or moving a file in Ferris IDEA carries its bookmarks along; changes made by other programs are not followed. A breakpoint on the same line hides the bookmark’s mark.

Bookmarks are kept per project in .ferris-idea/bookmarks.toml, a readable file you may commit to share them (File formats). They are for files of the project; remote projects do not have them yet.

Open View › Tool Windows › TODO. The window lists every comment of the project that contains the word TODO or FIXME, in any case, grouped by folder and file with counts. Comments that continue on the next lines are joined.

  • The tabs Project and Current File switch the scope.
  • The filter shows All, only todo or only fixme items.
  • Group by Modules, Group by Packages and Flatten Packages change the tree; packages are folders.
  • Preview Source shows the code next to the list. Previous Occurrence and Next Occurrence step through the items and open each in the editor.

Only text inside comments counts, so a variable named todo is not listed. Files of a language without a grammar are counted as not checked; plain .txt files are searched whole. The list stops at 5,000 items and says so. While the window is open it follows your edits, including unsaved ones, within two seconds.

The patterns are fixed to TODO and FIXME for now; you cannot add your own.

Keyboard of
ActionShortcut
Activate bookmarks tool windowActivateBookmarksToolWindow⌘2Alt2
Edit › Bookmarks › Go to Mnemonic⌥⌘F3CtrlShiftF11
Edit › Bookmarks › Show Bookmarks⌘F3ShiftF11
Edit › Bookmarks › Toggle BookmarkF3F11
Goto bookmark1GotoBookmark1⌃1Ctrl1
Navigate › Next Occurrence⌥⌘↓CtrlAlt↓
Navigate › Previous Occurrence⌥⌘↑CtrlAlt↑
Toggle bookmark with mnemonicToggleBookmarkWithMnemonic⌥F3CtrlF11
Toggle bookmark1ToggleBookmark1⌃⇧1CtrlShift1
  • Bookmarks are for files of the project. The file lies outside the project folder.
  • No TODO items found. The words must stand in comments; check that the file’s language is one Ferris IDEA highlights.

An agent lists bookmarks and TODO items without a right; setting or removing a bookmark needs write and previews first.

  • bookmarksreadsThe line bookmarks of this workspace, newest first, as the editor's gutter, the Bookmarks popup and the Bookmarks tool window show them: path (workspace-relative), 1-based line, mnemonic (one of 1-9, 0, A-Z; unique in the project), description, text (the line's text on disk without the white space at its ends; null when the line is past the end of the file) and missing: true when the file is not there.
  • remove_bookmarkchangesdry run by defaultwriteRemove a bookmark of this workspace: the one on line (1-based) of path, or the one with mnemonic.
  • set_bookmarkchangesdry run by defaultwriteSet or change the bookmark on a line of a workspace file.
  • todo_itemsreadsTODO items of this workspace as the TODO tool window lists them: todo or fixme as a word, any case, inside a comment.