Commit Graph

46909 Commits

Author SHA1 Message Date
Kovid Goyal 8b9f0ad1db ... 2023-04-26 21:29:12 +05:30
Kovid Goyal 059dd97a8e more regex escape porting 2023-04-26 21:20:21 +05:30
Kovid Goyal 453fc7baa2 ... 2023-04-26 21:07:09 +05:30
Kovid Goyal 2108ddd6f2 Add a rudimentary syntax highlighter for the markdown editor widget
Somebody that cares is welcome to improve it
2023-04-26 20:51:13 +05:30
Kovid Goyal 1b9759a4ef ... 2023-04-26 19:52:54 +05:30
Kovid Goyal 06df19f1f3 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-04-26 19:50:52 +05:30
Charles Haley 1299110a11 Add lock/unlock mouse column movement to the column heading context menu 2023-04-26 13:36:56 +01:00
Kovid Goyal e9f3b50fd6 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-04-26 16:24:31 +05:30
Charles Haley c26bcb26db Remove the column heading tweak.
Also add not setting a delegate for non-editable standard columns
2023-04-26 11:47:23 +01:00
Kovid Goyal 55b6205d84 ... 2023-04-26 14:12:46 +05:30
Kovid Goyal 2a58a4b1a8 Forgot to restore current index before restoring current_id/current_row which was preventing the current column from being preserved 2023-04-26 14:09:55 +05:30
Kovid Goyal ef13a51774 Cleanup previous PR 2023-04-26 12:35:21 +05:30
Kovid Goyal 83fa5e1647 Merge branch 'markdown-editor-preview' of https://github.com/un-pogaz/calibre 2023-04-26 09:45:48 +05:30
Kovid Goyal 3fb819da03 Fix styling of tabs at the bottom in dark mode 2023-04-26 09:39:20 +05:30
Kovid Goyal 13191a08c7 Ensure that all sorting of the books list via calibre APIs preserves selected indices and current index and horizontal position
I dont think there any sorts done without going through the view
functions. But we will see.
2023-04-26 09:27:22 +05:30
Kovid Goyal f5b35bb97e Remove list of chrome/firefox versions from user agent data
The upstream data source (Wikipedia) was deleted and these arent currently used
anyway
2023-04-26 08:51:57 +05:30
Kovid Goyal 809ce3dc44 Fix #2017708 [6.16.1*: New columns missing from column icon dropdown](https://bugs.launchpad.net/calibre/+bug/2017708) 2023-04-26 08:41:44 +05:30
Kovid Goyal b319a1ceaa ... 2023-04-26 08:38:07 +05:30
Kovid Goyal 646982e3d4 Fix #2017709 [6.16.1*: alternate_column_names don't show in MDE](https://bugs.launchpad.net/calibre/+bug/2017709) 2023-04-26 08:34:42 +05:30
Kovid Goyal d1d4f06ca2 Special case display of path field name in book details preferences to match dual use as "folders/path" 2023-04-25 22:30:38 +05:30
Kovid Goyal eede10c998 set_current_row() should preserve the current column and the horizontal scroll position 2023-04-25 22:21:32 +05:30
Kovid Goyal eff5ec46d0 Proper fix for initial scroll to right when Id column at right bug 2023-04-25 22:18:34 +05:30
un-pogaz b990609ac1 Enhancement #2017403: Add a preview tab to Markdown "long text" editor (https://bugs.launchpad.net/calibre/+bug/2017403) 2023-04-25 18:15:53 +02:00
Kovid Goyal 6c9bd54cb6 Scan sub-folders recursively when showing the data files link 2023-04-25 20:38:38 +05:30
Kovid Goyal 82392bdd61 ... 2023-04-25 11:03:33 +05:30
Kovid Goyal 1457f8ecc9 Use a NamedTuple for the list of extra files 2023-04-25 11:00:39 +05:30
Kovid Goyal 0437378bfa The template functions shouldn't assume the name of the data folder 2023-04-25 10:49:56 +05:30
Kovid Goyal 6cfbfb0f51 Implement workaround for incorrect initial horz scroll position of book list 2023-04-25 10:39:09 +05:30
Kovid Goyal ca1143f7ff Merge branch 'master' of https://github.com/cbhaley/calibre 2023-04-25 07:19:30 +05:30
Charles Haley d0ba1ada16 Fix for the string changes fix for this file. Both the original and the changed file were incorrect. 2023-04-24 21:05:01 +01:00
Kovid Goyal 8a450c458a String changes 2023-04-24 23:07:32 +05:30
Kovid Goyal cfe2ff3c4b Add a comment explaining why we regex the markdown output 2023-04-24 22:42:00 +05:30
Kovid Goyal 8d6b2750b8 Merge branch 'fix-comments-markdown' of https://github.com/un-pogaz/calibre 2023-04-24 22:41:55 +05:30
Kovid Goyal 300c68b1e4 Scan opened book/data folders for changes to extra files for a few minutes after they are opened, updating caches and the GUI as changes are detected 2023-04-24 22:37:54 +05:30
Kovid Goyal 79cd85af35 Only show the Data files link if there is an actual file in the data folder, ignore sub-folders 2023-04-24 22:28:47 +05:30
Kovid Goyal 6a0b6f46de Ignore files for which stat() fails when listing extra files 2023-04-24 22:25:47 +05:30
Kovid Goyal 0b9064bcc6 Dont list directories in list_extra_files() 2023-04-24 22:24:38 +05:30
un-pogaz 93c161e96f fix comments markdown
in v4, the switch to QtWebEngine introduced a bug where, in "HTML comments", paragraphs with a single <br> produced an visual extra gap in the render, problem will have been solved by using non-breaking space <p>&nbsp;</p>
(topic https://www.mobileread.com/forums/showthread.php?t=325991)

However, the "calibre.library.comments > markdown" still produces HTML with <p><br></p> causing the rendering of "Markdown comments" in Book Details (and Book Info) to still have this extra gap.
This commit is to fix this and do a more consistent rendering between "HTML comments" and "Markdown comments"
2023-04-24 17:55:49 +02:00
Kovid Goyal 27bb04c2bd DRYer 2023-04-24 20:13:26 +05:30
Kovid Goyal 18a7145a15 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-04-24 20:12:26 +05:30
Charles Haley 663ccc2166 Prevent calling edit metadata from locked book details windows. EM edits the currently selected book, which is almost certainly not the book in the locked window. 2023-04-24 13:19:30 +01:00
Charles Haley cdc4a0a4d3 The formatter functions to support extra book files. 2023-04-24 11:31:40 +01:00
Kovid Goyal 259a8555db ... 2023-04-24 11:50:22 +05:30
Kovid Goyal 14e7acc6f4 Import fonttools only on demand
Fixes #2017476 [Error when using 'Edit metadata' hotkey from locked details window](https://bugs.launchpad.net/calibre/+bug/2017476)
2023-04-24 11:48:15 +05:30
Kovid Goyal 8a0088f50d ... 2023-04-24 11:01:45 +05:30
Kovid Goyal f4878d0509 Cleanup previous PR
I dont think we need to enforce unique column titles. If a user wants to
have columns with the same titles, that's up to them. Also avoids the
performance penalty.
2023-04-24 10:52:22 +05:30
Kovid Goyal c04b7dd482 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-04-24 10:29:12 +05:30
Charles Haley 7b5024b97a Two semi-dependent changes:
1) Add a tweak to change the heading for standard columns
2) Add "id", "formats", and "path" as standard columns. They are by default hidden, like "languages"
2023-04-23 20:47:43 +01:00
Kovid Goyal bd483ab92c Forgot to change the structure of extra_files_cache to allow easy eviction by book_id 2023-04-23 22:05:33 +05:30
Kovid Goyal 9e5bb7a5ea Also clear extra files cache when viewing folder by id 2023-04-23 22:02:26 +05:30