Bookmark browser (#14899)

* Add BookmarkBrowser widget

* filemanager: add bookmark browser

* filemanagercollection: add bookmark browser

* filemanagerhistory: add bookmark browser

* readerui: add after_open_callback to showReader()

* filemanager_menu_order: add bookmark browser

* reader_menu_order: add bookmark browser

* dispatcher: add bookmark browser

* util: add stringLower()

* bookmarkbrowser: show chapter in bookmark details

* bookmarkbrowser: detect currently opened new book

* readerbookmark: fix updating BookInfo cache on removing a bookmark
This commit is contained in:
hius07 authored and GitHub committed 2026-02-03 08:02:07 +02:00
1 parent 323e6223a0
commit 08ea73f733
10 files changed
+1019 -24

No files matched your search

@@ -479,14 +479,13 @@ function ReaderBookmark:removeItem(item, item_idx)
end
function ReaderBookmark:removeItemByIndex(index)
local item = self.ui.annotation.annotations[index]
local item = table.remove(self.ui.annotation.annotations, index)
local item_type = self.getBookmarkType(item)
if item_type == "highlight" then
self.ui:handleEvent(Event:new("AnnotationsModified", { item, nb_highlights_added = -1, index_modified = -index }))
elseif item_type == "note" then
self.ui:handleEvent(Event:new("AnnotationsModified", { item, nb_notes_added = -1, index_modified = -index }))
end
table.remove(self.ui.annotation.annotations, index)
self.view.footer:maybeUpdateFooter()
end