Release log
v1.2.0-treeview
Config
require("bookmarks").setup({
treeview = {
bookmark_format = function(bookmark)
return bookmark.name
.. " ["
.. bookmark.location.project_name
.. "] "
.. bookmark.location.relative_path
.. " : "
.. bookmark.content
end,
keymap = {
quit = { "q", "<ESC>" },
refresh = "R",
create_folder = "a",
tree_cut = "x",
tree_paste = "p",
collapse = "o",
delete = "d",
active = "s",
copy = "c",
},
},
-- ...
})
v1.1.0-line-highlight-and-db-backup
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",
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",
enable_backup = true,
})