browse.nvim
browse.nvim copied to clipboard
feature: description for bookmarks
Rather than a simple list of URLs, it would be nice to be able to add a description for each URL.
@corani, not sure how useful it will be. If you have an idea of how to implement this, go ahead and raise the PR.
It would be useful with long opaque URLs, where it's not clear from the URL itself what it is pointing to. As to implementation, I suppose you could do something like:
bookmarks = {
["https://some.nested/website"] = "Description",
"https://github.com/lalitmee/browse.nvim",
}
or even using a nested table:
bookmarks = {
{ ["url"] = "https://some.nested/website", ["description"] = "Some description" },
{ ["url"] = "https://github.com/lalitmee/browse.nvim" },
}
Implemented in 3336967066f57af56e6d2a8c07ac09acce351cd5
local bookmarks = {
["github"] = {
["name"] = "search github from neovim", -- description of the group
["code_search"] = "https://github.com/search?q=%s&type=code",
["repo_search"] = "https://github.com/search?q=%s&type=repositories",
["issues_search"] = "https://github.com/search?q=%s&type=issues",
["pulls_search"] = "https://github.com/search?q=%s&type=pullrequests",
},
}