Commit Graph
1539 Commits
Author SHA1 Message Date
Tomáš Janoušek 91df6f27ba Wallabag: update history and collections when archiving (#15960)
Unintuitively, FileManager:deleteFile updates history and collections,
but FileManager:moveFile doesn't, so we need to do it manually (like
movetoarchive.koplugin does).

Otherwise, articles added to Favourites (or any other collection) will
either

a) crash koreader if someone tries to open it from the collection immediately
b) disappear from the collection after koreader restart
2026-08-29 15:26:34 +02:00
Tomáš Janoušek 6a371263b8 Wallabag: skip archive/delete if it's the currently opened document (#15961)
Moving (or deleting) the file while it's still being open in the reader
causes problems: its metadata will be written to the old location when
it's eventually closed, and I think I've seen crashes as well (don't
quite remember but something like switching to File Browser and then
using the Open Last Book function or something).

The simplest solution is to just not archive it while it's still open.
It will be archived on the next sync anyway.

Alternatively, we could do what movetoarchive.koplugin does, and ask the
user whether they want to open it from the new location (if archiving)
or switch back to File Browser:
https://github.com/koreader/koreader/blob/8c4d6c0a3ab8449ac65b413187d27d54f50fd946/plugins/movetoarchive.koplugin/main.lua#L153-L161
I don't think it's worth the complexity though — Move to Archive doing
nothing is bad UX, obviously, but a Wallabag sync skipping one article
until the next sync is fine, IMO.

I suspect this might also be related to this TODO note:
https://github.com/koreader/koreader/blob/8c4d6c0a3ab8449ac65b413187d27d54f50fd946/plugins/wallabag.koplugin/main.lua#L1428
2026-08-28 18:47:00 +02:00
hius07 de903b3d41 Cloud storage WebDAV: default namespace support (#15923) 2026-08-28 12:21:54 +03:00
Commodore64user a902e6734b decouple Home button (nt) and Home key (physical keyboard) 2026-08-25 14:28:15 +01:00
Frans de Jonge 1d3375cdd5 Add httpasync module for faster image downloads in NewsDownloader and Wikipedia (#15877) 2026-08-22 19:33:47 +02:00
hius07 50231877a3 Exporter improvement (#15861) 2026-08-19 08:31:43 +03:00
hius07 c889c5a1de opdsbrowser: fix detecting OPDS 2.0 (#15895) 2026-08-18 13:38:37 +02:00
Frans de Jonge 199efbf934 [plugin] SSH: avoid killing children (#15878)
Regression caused by my suggestion in <https://github.com/koreader/koreader/pull/15338#discussion_r3194639427>.
2026-08-16 18:24:23 +02:00
Nihaal Sangha 78e851adf7 SSH.koplugin: fix failing to kill server with no connections (#15868)
The `pkill -P` fails if there are no child processes (no connections), so the `kill` is never hit. This makes killing the child processes optional.
2026-08-15 23:47:38 +02:00
Igor Velkov be181acfa2 Menu, TouchMenu, ListMenu: thicken the focus underline on lower DPI devices (#15801) 2026-08-15 17:19:59 +02:00
hius07 1762ab7a66 AutoDim: fix updating status bar (#15866) 2026-08-14 16:56:31 +03:00
3milioD 0b6beff322 Fix sharing highlights as JSON (#15865) 2026-08-13 09:26:56 +02:00
hius07 e2ce247a8d CloudStorage: preserve sync server settings - #15856 (#15856)
- Closes #15851
2026-08-11 08:19:52 +02:00
Brendan LeFebvre 8faf6b8ef1 OPDS: fix duplicate PDF download button (#15850)
The arxiv .pdf-suffix workaround ran unconditionally after the rel
handling, so an acquisition link with type="application/pdf" and no
.pdf suffix was added twice. Only apply it when the link produced no
acquisition above.

Fixes #15849
2026-08-10 16:26:21 +02:00
Igor Velkov 77882d374f InputDialog: close on Back when there is no Close button (#15830)
InputDialog binds the Back key group, but its handler only presses a button
carrying id "close" and does nothing when the dialog has none, so on a
non-touch device those dialogs cannot be dismissed with the key at all: the
only way out is to aim the cursor at Cancel.

Dialogs that can lose work should get that button (_addSaveCloseButtons adds
it alongside save_callback, and its callback is what asks about unsaved
changes), so the rest can simply close, as ButtonDialog does with the same key.
2026-08-07 21:09:18 +02:00
hius07 8055c4b666 Remove CloudStorage app (#15793) 2026-08-04 21:49:22 +03:00
Commodore64user 3a3ffe4efd Hotkeys: support rename presets/profiles when plugin is idle 2026-08-03 17:53:45 +01:00
Commodore64user ff6aeee306 Hotkeys: add support for hotplugging keyboards 2026-08-03 17:53:45 +01:00
Igor VelkovandClaude Opus 5 f77b35f8cd timesync: bound the NTP client's runtime (#15740)
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-02 21:09:50 +02:00
hius07 8e26ac7b57 Highlight: custom colors (#15676) 2026-08-01 20:09:33 +03:00
Tomáš Janoušek 9192014d8b Wallabag: skip archive dir in recursive scan (#15767)
Including the archive dir in the result of Wallabag:getLocalArticles
causes all archived articles' statuses to be synced with Wallabag every
time. That leads to an increase in sync times from seconds to minutes
(or even more if one's archive is larger than hundreds…).

The fix is simple: skip the archive dir when scanning.

(As a side effect, this allows one to organise their archive dir using
subdirs, which is similar to the motivation of the PR that broke this…)

Fixes: 896646bf8b ("Reworked the Wallabag plugin to recursively scan the download directory (#15558)")
Fixes: https://github.com/koreader/koreader/pull/15558#issuecomment-5136923551
2026-07-31 14:51:24 +02:00
hius07 820ad724ac opdsbrowser: fix OPDS2.0 author (#15770)
Closes #15766
2026-07-31 11:14:49 +02:00
hius07 1c8b619a08 Fix OPDS 2.0 http header (#15751) 2026-07-27 19:55:01 +02:00
Denis Malinovsky 6296a3cc7f Flash when displaying covers to reduce ghosting (#15724)
Fixes #11602 again (my fix was overwritten).
Fixes #14805 as well.
2026-07-24 22:40:06 +02:00
hius07 e72fe823d0 OPDS 2.0 basic support (#15696) 2026-07-24 18:07:58 +03:00
Alejandro Lorite Mora 213e0220b6 WebDAV sync: fix infinite 412 loop on weak ETags (#15715) 2026-07-22 18:35:37 +03:00
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