Releases: LintaoAmons/bookmarks.nvim
v1.4.0-calibrate-bookmark
What's Changed
- readme improvements by @dmartzol in #34
- Calibrate the bookmarks by @shanlihou in #31
New Features:
- Automatic Calibration: Auto-calibrate bookmarks upon entering a buffer with the new option
auto_calibrate_cur_buf
(default: true). - Show Calibration Result: Control the display of calibration results with
show_calibrate_result
(default: true). - Manual Calibration Command: Introduced
:BookmarksCalibration
for manual bookmark calibration. - Enhanced Bookmark Handling: Improved API for finding bookmarks by absolute paths and checking for content discrepancies.
New Contributors
Full Changelog: v1.3.0...v1.4.0-calibrate-bookmark
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
v1.2.0-treevew
What's Changed
- Add BookmarkTree by @shanlihou in #28
New Contributors
- @shanlihou made their first contribution in #28
Full Changelog: v1.1.0-line-highlight-and-db-backup...v1.2.0-treevew
v1.1.0-line-highlight-and-db-backup
See the detailed updates and image preview: https://lintao-index.pages.dev/docs/Vim/Neovim/my-plugins-docs/bookmarks.nvim/release-log
Line Hightlight
Now you can set a highlight backgound color at your marked line
Config
require("bookmarks").setup({
json_db_path = vim.fn.stdpath("data") .. "/bookmarks.db.json",
signs = {
mark = {
icon = "",
color = "red",
-- highlight-next-line
line_bg = "blue",
},
},
})
Backup DB json file
In case of data lose, we init this backup function
Right now it's simply save a backup file at the same location at the same folder of your db json file
Config
require("bookmarks").setup({
json_db_path = vim.fn.stdpath("data") .. "/bookmarks.db.json",
-- highlight-next-line
enable_backup = true,
})
v1.0.0-project-info
What's Changed
- Dev: Project related stuff and more by @LintaoAmons in #25
Full Changelog: v0.5.5...v1.0.0-project-info
v0.5.5 Breaking Change Warnning!
Warning
Breaking change!
Dev branch will be merged into main branch next Saturday!
The json file db format will be changed.
To avoid data lose!! Be sure you have backed your current bookmark db file up
Pin the version to v0.5.4 to avoid this error message
v0.5.4
v0.5.3
What's Changed
Full Changelog: v0.5.2...v0.5.3