Skip to content

Releases

0.2.2

Choose a tag to compare

@github-actions github-actions released this 08 Nov 08:15

Changes

  • When the file of a mark is already open in another split, jumping to the mark now switches to that tab instead of opening the file again in the current tab. Tabs in pop-out windows and in the sidebars are not used, so jumping keeps you in the tab area of the current window.

Fixes

  • Jumping to a mark in a tab that has not been shown since Obsidian started now moves to the marked line. Before, it switched to the tab but stayed at the top.
  • Jumping across files from a file with no marks now goes to the next (or previous) file in the order of the mark lists, instead of always the first (or last) file.
  • When marks saved for a file end up on the same line after it was changed outside Obsidian, the mark marked first is now kept, the same as when marks are merged by editing.

0.2.1

Choose a tag to compare

@github-actions github-actions released this 01 Nov 09:52

Fixes

  • Marks synced from another device are no longer lost. When data.json is changed by a sync service (e.g. Obsidian Sync or iCloud), the marks and settings are now reloaded right away. Previously, synced marks were not shown until Obsidian was restarted, and the next save on the device could overwrite them.
  • Undoing the deletion of a marked line now brings back its mark, with its label and color. This also works when the note is open in split panes.
  • Actions in the mark lists now always apply to the chosen mark. Unmarking, editing, or jumping to a mark right after its note changed (e.g. while the search was open) could act on another mark in the same note.
  • Jumping across files now follows the same order as the mark lists. Previously, files whose names start with an uppercase letter came before all lowercase ones.

0.2.0

Choose a tag to compare

@github-actions github-actions released this 24 Oct 06:27

New

  • Cursor position after jump setting: choose where the cursor goes on the line after jumping to a mark.
    • Start of line (default, same as before)
    • Start of text: after the indentation, list markers, checkboxes, heading and quote markers, and the leading pipe of a table row. In code blocks and math blocks, only the indentation is skipped.
    • End of line: in a table, the end of the last cell.
    • Other plugins may move the cursor afterwards (e.g. Outliner with "Stick the cursor to the content").
  • Jump to next / previous mark with the same color commands: go through marks of one color.
    • The color is that of the mark on the current line, or else of the mark you last jumped to (from any jump). On a mark with no color, they go through marks with no color.
    • When there is neither, they jump to the next (or previous) mark, and its color is used from the next jump.
    • They follow the Allow cross file setting, like the other jump commands.
  • Color marked lines setting (off by default): lightly colors the background of marked lines with the color of each mark.
    • Marks with no color are not colored, so you can choose which marks stand out.
    • Works in editing mode only, and not on lines shown as a table or a callout in Live Preview.
    • To change how strong the color is, set --line-marks-line-opacity (default 12%) in a CSS snippet.

Fixes

Jumping to a line in a table in Live Preview:

  • The line is now shown in the center of the screen, instead of at the bottom.
  • Jumping from the sidebar works on the first click.
  • Jumping from another file now scrolls to the table.
  • After jumping from a table to elsewhere in the same file, the cursor no longer stays in the table.

Other

  • Removed a CSS selector (:has()) that could slow down the editor.
  • The release files now come with build provenance attestations. You can check that they were built from this repository by GitHub Actions:
    gh attestation verify main.js -R namikaze-40p/obsidian-line-marks

0.1.0

Choose a tag to compare

@github-actions github-actions released this 17 Oct 08:50

Line Marks: mark lines and jump between them across notes

  • Mark lines from the gutter or with a command. Marks follow their lines
    as you edit, including moving lines, Outliner, and renumbering lists.
  • Jump to the next / previous mark, across notes, in editing and reading modes.
  • Mark list in the sidebar (grouped by file or color), and a searchable modal.
  • Labels and colors for marks, with suggestions of labels in use.
  • Marks along the scrollbar, bulk unmarking, and support for touch devices.