Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: infer/default bookmark name #11

Open
ten3roberts opened this issue Aug 10, 2023 · 2 comments
Open

Feature Request: infer/default bookmark name #11

ten3roberts opened this issue Aug 10, 2023 · 2 comments

Comments

@ten3roberts
Copy link

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

@tomasky
Copy link
Owner

tomasky commented Aug 21, 2023

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)

@ten3roberts
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants