![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,444
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Changes to the custom column dialogs
I made a few rather fundamental changes to Preferences / Add your own columns. If you run from source then please post here if you find things that don't work.
Some of the changes:
|
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,721
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Only if easy:
Make the list sortable by row-number, lookup-name, header-name and type -- would default and revert to row-number. Sorting by anything other than row-number would presumably need to disable the up/down arrows. Maybe a button to sort by row-number to get the arrows back. I sometimes 'lose sight' of a column, so I recreate it. BR |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,970
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I think I requested that a while back because I wanted to sort by column type. It was marked as wontfix. Might be worth look at again though?
EDIT: https://bugs.launchpad.net/calibre/+bug/1933568 Last edited by ownedbycats; 01-05-2022 at 06:41 PM. |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
![]() @chaley: It all looks good here. And it's amazing how useful adding the tooltip is. |
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,444
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
The attached file implements sortable headings. I would be grateful if some of you who run from source could try it.
You will note that the up and down arrows turn on and off. A possible surprise: you can't move new columns. Reason: they don't exist yet so their order cannot be stored. Decompress it and put it in <calibre source>/src/calibre/gui2/preferences, replacing the existing columns.py. I will submit it to Kovid once someone other than me has tried it. I suggest you make a backup of your library just in case something is broken. For example, my first version threw away all column order information. The only way to get it back was to restore from backup. ![]() EDIT: zip file removed. The changes are now in calibre source. Last edited by chaley; 01-06-2022 at 10:24 AM. Reason: Remove the python file. The changes are in calibre source |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
![]() The only question related to the changes is if the Status is in the correct place. It will normally be empty and having it were it is feels like it is wasting space. Would you like to hide it until a change is made? Though that might be confusing. The other thing that occurred to me is that none of the core columns have descriptions. A description on the not-so-obvious one could be good. And no, I'm not volunteering ![]() |
|
![]() |
![]() |
![]() |
#7 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,444
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Quote:
![]() EDIT: I decided to submit the changes to Kovid. EDIT 2: The changes are now in calibre source Last edited by chaley; 01-06-2022 at 10:23 AM. |
|||
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,444
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I found several bugs while further testing. In particular, reordering the list while reverse sorted doesn't work well at all. There are also a few problems with editing columns while not in the default sort. I suggest that if you use it then you make changes while sorted by row number ascending.
I have submitted changes to fix these problems. I would be surprised if Kovid doesn't merge them in tomorrow AM (his time), especially if he intends to make a release (I don't know about that). |
![]() |
![]() |
![]() |
#9 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,721
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Goodness, thought it was just me - thanks to all.
Maybe I can try mentioning another long standing niggle, the only way to get to a set of Preferences - e.g. Tweaks… is by clicking on an icon. I get into Preferences via Ctrl+P, I then have to use a mouse (or some other point and click device) to open the Preferences I want. One solution would be that the Preferences panel had a hierarchical context menu that I could access via the keyboard using the ≡ key or Shift+F10, it would pop something like this. Code:
Interface→ Look & Feel Behaviour ... Conversion→ Input options Common options ... ... ... Advanced→ Plugins Tweaks ... Template functions Aside - the Preferences panel reminds me of Windows 3.0 Program Manager ![]() BR |
![]() |
![]() |
![]() |
#10 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
I was going to say that you had not swapped the width of the two columns. But, I realised they were saved. Which is fine as they should be good for new users. But, it did discover that the widths are only saved if the "Apply" button is pressed and that means a column has to be changed. I'm not sure if there is a good fix for that. Quote:
![]() |
|||
![]() |
![]() |
![]() |
#11 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,970
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
![]() |
![]() |
![]() |
#12 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,970
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
For some of the Look & Feel preferences, you can also get there by right-clicking the toggle-view icons in the lower right. |
|
![]() |
![]() |
![]() |
#13 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,721
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Added: Perhaps a better way would be to allow traversing the preferences icon grid with arrow keys and enter on the panel one wants, so for Tweaks ↓↓↓↓→ ↵ BR Last edited by BetterRed; 01-06-2022 at 10:29 PM. |
|
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,444
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I have considered always enabling the button. It doesn't hurt anything to press it when no changes have been made. |
|
![]() |
![]() |
![]() |
#15 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
But, on another topic, guess how I got these errors: Code:
Traceback (most recent call last): File "E:\Development\GitHub\calibre\src\calibre\gui2\preferences\main.py", line 319, in show_plugin File "E:\Development\GitHub\calibre\src\calibre\gui2\preferences\columns.py", line 31, in genesis ValueError: max() arg is an empty sequence Code:
Traceback (most recent call last): File "calibre_plugins.goodreads_sync.action", line 929, in show_configuration File "E:\Development\GitHub\calibre\src\calibre\customize\__init__.py", line 166, in do_user_config File "calibre_plugins.goodreads_sync.__init__", line 65, in config_widget File "calibre_plugins.goodreads_sync.config", line 946, in __init__ File "calibre_plugins.goodreads_sync.config", line 1166, in get_custom_columns File "calibre_plugins.goodreads_sync.config", line 1386, in get_create_new_custom_column_instance File "E:\Development\GitHub\calibre\src\calibre\gui2\preferences\create_custom_column.py", line 790, in __init__ ValueError: max() arg is an empty sequence ![]() |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using RE to extract pattern from custom column into another custom column | activedirectory | Library Management | 1 | 12-15-2019 08:07 PM |
Adding custom column with any lookup-name gives me empty column as a result? | Ahu Lee | Library Management | 16 | 06-09-2019 12:14 PM |
Move selected data from series column to a new custom column | fvdham | Library Management | 3 | 06-02-2017 03:49 PM |
Custom column returns value based on value of another custom column? | calvin-c | Calibre | 3 | 09-14-2013 02:24 PM |
how to move value(s) of tag column to a custom made column | zoorakhan | Library Management | 0 | 12-08-2012 03:53 AM |