Feature Request: infer/default bookmark name
First of all, I love this plugin and use it daily for keeping track of and jumping around different large codebases.
I often create bookmarks for functions or structs, and if would as such be great if bookmarks could use treesitter or similar to look up the name of the current function/ident and prefill the popup for the bookmark name with the ident of it.
Thank you
you can use telescope with:
-- config:
local present, telescope = pcall(require, "telescope")
if present then
telescope.setup {
extensions = {
fzf = {
fuzzy = false,
override_generic_sorter = true,
override_file_sorter = true,
case_mode = "smart_case",
},
},
}
telescope.load_extension "fzf"
telescope.load_extension "bookmarks"
end
-- map:
map("n", "<leader>fb", "<Cmd>Telescope bookmarks list<CR>", opt)
Oh, I might have been unclear.
This is only for listing them and showing a preview of their location.
What I am after is having the annotation of a bookmark be deduced from the current function or context, rather than writing the annotation yourself