Closed Kungsgeten closed 4 years ago
This is similar to #11 but I haven't changed ebuku--search-helper
yet. I think that's more suitable as a separate PR, if this is accepted. This version of ebuku-gather-bookmarks
is probably slower, but more powerful. It can also be used when refactoring ebuku--search-helper
.
I haven't added myself as an author, but maybe it can be mentioned in the README. I have a plan to add the following:
ebuku--search-helper
, since its pretty big at the moment.ebuku-complete-open
command which uses completing-read
to choose a bookmark and open it.counsel-buku
and maybe helm-buku
to provide more features.Thanks! Now merged, with a few small changes:
i've updated the minimum required Emacs version from 24.3 to 25.1, due to the use of map-put
. i'm aware that there are still some people on 24.x, but 25.1 (which i know quite a few people are still using) seems to be a reasonable minimum - let's see if it turns out to be an issue for anyone.
i've removed the ebuku-gather-bookmarks-format
defcustom, as it's no longer needed.
i've made some layout changes in terms of code locations, for consistency with the rest of the code (user-facing functions go in the appropriate section, definitions within a section are in alphabetical order).
Thanks again!
ebuku-gather-bookmarks
is now a function (non-interactive). Its purpose is to search buku and return Emacs suitable data from it. This data could later be used/added in other functions/commands (likeebuku--search-helper
). It is not a "private" function since its pretty modular and could be used in other packages.ebuku-bookmarks
is now updated by theebuku-update-cache
command instead. This command takes the same arguments asebuku-gather-bookmarks
, but by default will take its arguments fromebuku-cache-default-args
. The default is to get data from all buku bookmarks.Unfortunately the README and top of file comments haven't been updated.