Re: Commentations on the blog of Frans
Reply #21 –
It's not hugely complicated in principle, no. With a bit of experimentation you could add a few buttons here.
https://github.com/koreader/koreader/blob/d7c00c586f88910dd532d6a59ab2abb48f7b958e/frontend/apps/reader/modules/readergoto.lua#L56-L96
The main issue is that if you do that, you have to apply your personal hacks to every update. That's why it's normally preferable to support something like this, but the beauty of Lua is that it's quite simple for anyone to make relatively simple adjustments.
For getting the book map to show, this should work.
UIManager:broadcastEvent(Event:new("ShowBookmap"))
Or in full to be absolutely clear:
{
text = _("Bookmap"),
callback = function()
UIManager:broadcastEvent(Event:new("ShowBookmap"))
end,
}
There's already an overview of all such event names in https://github.com/koreader/koreader/blob/d7c00c586f88910dd532d6a59ab2abb48f7b958e/frontend/dispatcher.lua