跳到主要内容

Release log

v1.2.0-treeview

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

line-highlight

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

backup

Config
require("bookmarks").setup({
json_db_path = vim.fn.stdpath("data") .. "/bookmarks.db.json",
enable_backup = true,
})