LintaoAmons / bookmarks.nvim

Persistent bookmarks: powerful but simple (one shortcut to add, rename, and remove bookmark)
MIT License
179 stars 8 forks source link

Add telescope keymap binding to delete bookmark #23

Open niba opened 5 months ago

niba commented 5 months ago

Right now, it takes too much time to delete multiple bookmarks. It would be good to have the possibility to configure a keymap that removes bookmarks from Telescope entries while browsing them.

LintaoAmons commented 5 months ago

Yeah~ May find some time to add it~ PR is also very welcome👻

Kailian-Jacy commented 1 week ago

As a super fan of telescope, I think the keymap of project telescope-file-browser (https://github.com/nvim-telescope/telescope-file-browser.nvim) is highly efficiency and suitable for our project:

This largely simplify my workflow, I just bind one keymap as entry, e.g. <leader>fm to list all bookmarks, and operate on items selected, like with /d for deletion. So we don't need multiple steps for frequent operations (open command list -> select command -> list all book marks), only one step is needed: (open all bookmarks).

Personally I think this set of mapping is the best. Bookmarks are just like file system (list, goto, display, add/rename/delete).

LintaoAmons commented 2 days ago

It is available in the refactor-remodel-and-sqlite branch. You can try it(be careful of breaking change and data lose) or wait until it is merged to main.