Commit Graph
1513 Commits
Author SHA1 Message Date
hius07 5c8826a2a1 cloudstorage: add natural sort (#15662) 2026-07-11 16:45:16 +03:00
collaed 009367df7a KOSync: queue failed progress updates for retry on reconnect (#15324)
When the sync server is unreachable (offline reading, intermittent WiFi,
server down), progress updates are now queued locally instead of being
silently dropped. Queued items are drained on the next successful network
connection.

Queue behavior:
- One entry per document per day (preserves daily reading statistics)
- Entries expire after 4 weeks
- Hard cap of 200 entries as safety net
- Auth failures (401) are not queued (won't resolve by retrying)
- Queue is cleared on logout

Integration points:
- updateProgress: queues on pcall failure or non-auth callback failure
- _onNetworkConnected: drains queue before pulling remote progress
- _onCloseDocument: queues immediately if offline instead of blocking
  with goOnlineToRun (avoids WiFi prompts on document close)

Fixes #9267, fixes #10678, fixes #11105
2026-07-08 19:27:10 +02:00
d0nizam 96e9e1e9cd SSH.koplugin: add force‑close toggle for stop (#15338)
* Adds an optional setting to kill all dropbear processes when stopping the server, giving users control over whether active sessions are terminated.

* Modify signal sending to use pkill and kill
2026-07-08 19:11:50 +02:00
Christo dfbe99e457 OPDSParser: handle self-closing content tags (#15515)
A self-closing content tag (`<content type="text"/>`) has no `">` of its own,
so the lazy `.-` in the `<content type=".-">` rewrite runs forward to the next
entry's content tag and collapses everything in between -- links included --
into a single `<content>`. luxl then parses a mangled tree: entries are dropped
and covers get paired with the wrong titles.

Normalize self-closing content tags to an empty `<content />` element before
that rewrite. Adds a regression test with a self-closing content tag between
two entries.

Fixes #15511
2026-07-08 19:06:33 +02:00
hius07 0d5a2724a5 QuickMenu position (#15640) 2026-07-07 17:35:25 +03:00
Grigorii Ioffe 5549f8ac6c Move kosync plugin settings into a separate file (#15591) 2026-06-26 17:07:59 +02:00
Benoit Pierre a4aeb322c7 plugin/terminal: remove FFI cdefs
Now provided by `ffi/posix_h` too.
2026-06-26 14:57:14 +02:00
hius07 16d97965b2 TextViewer: view html, markdown (#15588) 2026-06-26 08:38:58 +03:00
Grigorii Ioffe 49caca9481 NewsDownloader: fix for shadowing _() (#15597)
Actual fix for #15573.
2026-06-25 17:15:31 +02:00
Grigorii Ioffe 78c7c9b04d NewsDownloader: check relative urls using socket.url.parse() (#15595)
Closes #15573.
2026-06-25 17:04:14 +02:00
hius07 fe6e2b30e7 cloudstorage: fix servers order when adding new server (#15580) 2026-06-23 13:10:05 +03:00
Commodore64user c03625c5d5 insert book_title_button only in vocab_builder widget 2026-06-22 23:00:59 +01:00
Evan 896646bf8b Reworked the Wallabag plugin to recursively scan the download directory (#15558)
looking for article files. Only scans the directory once per operation.
This allows you to sort articles into subdirectories once they have been
downloaded if you want to.
2026-06-22 08:22:57 +02:00
lyluqo 0f55687a4d [plugin] NewsDownloader: fix behavior when there's no HTTP status code (#15578) 2026-06-21 22:49:32 +02:00
skitty 20a666bd92 fix(vocabbuilder): leaked db conn breaking sync (#15531)
closes #14002
2026-06-14 17:43:45 +02:00
weijiuqiao 6b567a2bfc vocabbuilder.koplugin: Add "got it" button in "Vocabulary exists" popup window (#15534)
Added got it functionality per follow-up request in https://github.com/koreader/koreader/issues/15291#issuecomment-4682605447
2026-06-13 13:01:37 +02:00
skitty 3f479943a7 fix(cloudstorage): choose folder not showing for empty dirs (#15533) 2026-06-13 09:05:08 +02:00
skitty 221547722b fix(cloudstorage): webdav not listing folders (#15532)
my webdav server (using [dav-server](https://crates.io/crates/dav-server/)) returns
```xml
<D:collection></D:collection>
```
instead of
```xml
<D:collection/>
```
2026-06-13 08:12:25 +02:00
hius07 5598a6ee44 Cloud storage: download/delete selected files (#15522) 2026-06-11 20:31:21 +03:00
hius07 290a232887 BookShortcuts main: fix open folder from Reader (#15517) 2026-06-09 10:20:30 +03:00
Frans de Jonge fa6b3cde8f [SDL,plugin/hotkeys] Process gamepad events (#15449)
Gives Hotkeys the ability to configure gamepads, at least to a degree. Advanced users might wish to use a shoulder button or a trigger as a modifier like in Tony Hawk or Devil May Cry. But in that case I suggest they might be advanced enough to make a follow-up PR as well. It's out of scope for this one anyway.

Things like deadzones might prefer to be independently configurable in the future, but then again it's a reader app.

Depends on <https://github.com/koreader/koreader-base/pull/2376>.
2026-06-06 20:56:55 +02:00
hius07 9c5e596098 Exporter clip: exclude page bookmarks (#15493) 2026-06-02 19:09:32 +03:00
Commodore64user 952ebafe2d KeySelection: add new event handlers and call startIndicator from keyselection instead of readerui 2026-05-27 14:21:26 +02:00
Commodore64user 41c562c4c4 KeySelection: move text selection from readerhighlight to readerkeyselection 2026-05-27 14:21:26 +02:00
hius07 b984f94f76 DocSettingTweak main: path patterns (#15440) 2026-05-25 12:32:40 +03:00
hius07 ed773c6f01 Profiles: auto-executing list; path patterns (#15439) 2026-05-23 10:29:14 +03:00
hius07 676b26fc4c QRClipboard main: fix extending highlight to sentence (#15431) 2026-05-21 18:51:39 +03:00
hius07 21ead54aaf CloudStorage: save 'upload folder' (#15408) 2026-05-19 17:04:26 +03:00
hius07 a8336db203 Statistics main: fix pic documents; enable deleting settings (#15387) 2026-05-19 17:03:52 +03:00
hius07 7b4b759678 getHomeFolder() (#15400) 2026-05-18 10:27:50 +03:00
hius07 fd986fa119 BookShortcuts: fix settings (#15392) 2026-05-17 17:03:25 +03:00
AndyHazz f37f66c58b plugins/calibre: preserve author_sort in slim metadata (#15398)
Calibre's author_sort field carries the curated "Surname, Forename"
form for each author -- distinct from the display string in authors,
and the only reliable way to get surname-ordering right for compound
names, particles, and inverted-naming cultures (CJK, Hungarian).

slim() currently strips this field when writing the device-side
.metadata.calibre after a wireless transfer, even when desktop Calibre
includes it in the transfer payload. Downstream plugins that want
correct surname ordering can't get at it for libraries synced via the
Calibre Companion plugin -- reported in the Bookshelf koplugin issue
tracker by a user with ~2250 books all showing empty author_sort
after sync, despite their desktop Calibre having the field populated
on every book.

Add "author_sort" to the used_metadata whitelist so it's preserved on
the device-side file. Books without the field continue to load
cleanly (slim's "or rapidjson.null" handles missing fields); on-disk
size grows by a small per-book constant.

search_used_metadata stays unchanged -- search displays the author
string, not the sort form.
2026-05-17 10:19:56 +02:00
hius07 f51eb40d70 Perception expander: minor fixes (#15364) 2026-05-16 13:08:18 +03:00
hius07 4a66d792a9 OPDS: 'crawlable' relation (#15384) 2026-05-15 07:40:45 +03:00
hius07 c5687b320a NewsDownloader main: enable deleting plugin settings (#15382) 2026-05-15 07:40:14 +03:00
hius07 225fe6b8de Wallabag main: settings fixes (#15383) 2026-05-15 07:39:49 +03:00
hius07 09da1ee0aa KoSync main: enable deleting plugin settings (#15379) 2026-05-14 07:43:29 +03:00
hius07 ebfad3f6b9 BatteryStat main: enable deleting plugin settings (#15378) 2026-05-14 07:43:07 +03:00
hius07 9bcad05e8c QR from clipboard: enable highlight button on devices without clipboard (#15363) 2026-05-12 20:41:01 +03:00
hius07 649a2668f6 HttpInspector: enable deleting plugin settings (#15373) 2026-05-12 20:40:05 +03:00
hius07 8c1c241aa5 VocabBuilder main: sync action; enable deleting settings (#15372) 2026-05-12 20:39:28 +03:00
hius07 fe3775b077 DocSettingsTweak main: open settings file when needed only (#15355) 2026-05-10 08:26:30 +03:00
David ed695fe34f [DictQuickLookup] add custom button layout (#15184)
Provides an API for plugins and patches to add buttons to dictionary widget
2026-05-04 22:34:40 +01:00
hius07 02a474d301 Profiles: external auto-exec triggers (#15329) 2026-05-03 20:00:09 +03:00
Иван Vandot 41c9e02b5b NewsDownloader: per-feed max_age option (#15322) 2026-05-02 10:49:38 +02:00
hius07 76330cae5d Folder shortcuts: standard folders (#15323) 2026-05-02 09:58:22 +03:00
Lucas Zampieri e083b09aad feat: ExternalKeyboard: allow plugin to load on Kindle (#15248)
The externalkeyboard plugin was unconditionally disabled on Kindle
because it gates on Kobo-specific OTG sysfs paths (ci_hdrc.0/role,
usbc0/otg_role). However, the keyboard detection and hotplug handling
machinery (findAndSetupKeyboards, onEvdevInputInsert, setupKeyboard)
is already fully generic — it uses fbink_input which works on Kindle.

With the companion koreader-base patch adding a uevent listener to
input-kindle.h, EvdevInputInsert events now fire on Kindle when UHID
devices are created (e.g., by kindle-hid-passthrough). This patch
lets the plugin load on Kindle to handle those events.

Changes:
- Replace the OTG-only gate with a check that allows Kindle through
- Guard OTG role management (init, menu, onExit) behind has_otg_role
  so it only runs on platforms with OTG sysfs knobs
- On Kindle init, scan for any keyboards already present
- Hide OTG menu items on Kindle (only show Help)

Kobo behavior is completely unchanged.

Closes: https://github.com/koreader/koreader/issues/14359
2026-05-01 09:53:31 +02:00
Nick Perez 5941d022a4 KOSync: optionally send document metadata with progress sync (#15306)
Send a metadata object (filename, title, authors) with progress sync
requests when the user opts in via a new 'Send document metadata' toggle
(default off). The metadata is silently ignored by the official sync
server but can be used by custom sync servers.

Closes #13810
Ref: #8764
2026-04-29 12:59:52 +02:00
hius07 ae8dbee9f6 Gestures: keep settings in the base class (#15278) 2026-04-28 20:20:41 +03:00
David 1e0e859ba8 [Hotkeys] add single-key shortcuts (#14867) 2026-04-28 15:09:12 +01:00