v1.3.0
New Features
- Isolated Bookmark Database: Added an API function
reset_new_db_path
allowing users to specify a unique JSON database path for different Neovim sessions. This enhancement prevents database conflicts when multiple Neovim instances are open. - Custom Sorting Logic: The sorting logic for bookmarks has been modularized, allowing the customization of sorting criteria through the
vim.g.bookmarks_config.picker.sort_by
option. Built-in sorting options includelast_visited
andcreated_at
.
Bug Fixes
- Unsaved Changes Error Handling: Implemented a check to prevent errors when the current buffer is modified but not saved. The system warns the user to save their changes before navigating to a bookmark, thus avoiding exceptions related to unsaved changes.
- Bookmark Format Option: Corrected the
bookmark_format
keybinding issue that prevented custom format functions from working as intended, improving the customization capability of bookmarks displayed in the tree view. - Keymap for Quit Action: Fixed the issue related to traditional quit keybindings not functioning correctly within the bookmark tree view; users can now successfully quit the tree view using mapped keys like
q
or<ESC>
.
Code Improvements
- Linting and Code Cleanup: Improved code quality through static analysis and linting. Removed unnecessary methods and enhanced function decompositions.
- Sign Management Enhancement: The signing logic has been made more robust, and refresh procedures have been optimized for better performance when dealing with signs in the tree structure.
Full Changelog: v1.2.0-treevew...v1.3.0-remove-cache
What's Changed
- To resolve the conflict by @shanlihou in #28
- isolate the db file by @shanlihou in #32
New Contributors
- @shanlihou made their first contribution in #28
Full Changelog: v0.5.5...v1.3.0