bookmarks.nvim icon indicating copy to clipboard operation
bookmarks.nvim copied to clipboard

feat: improve bookmark tracking with auto-refresh and line number adjustments

Open ESSO0428 opened this issue 10 months ago • 0 comments

This update improves the reliability of bookmark tracking in dynamic editing scenarios.

Changes

  • Automatically refresh bookmarks on text changes (TextChanged, TextChangedI)
  • Adjust bookmark line numbers when text is inserted or deleted above them
  • Prevent redundant buffer attachments by tracking already-attached buffers
  • Improve code formatting and indentation consistency

Why

Previously, bookmark positions could become inaccurate after inserting lines or using undo operations. This change ensures that bookmarks are updated automatically, maintaining correct positioning across all typical editing actions.

Let me know if any changes are needed. Thanks!

ESSO0428 avatar Jun 25 '25 16:06 ESSO0428