![]() |
#1 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,710
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Resizing booklist columns
Quote:
Yes I would have to apply as required, but that's okay by me. BR |
|
![]() |
![]() |
![]() |
#2 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,729
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Ahhh now I see… I missed your “all” columns emphasis (was still waking up) for a moment as I was trying to figure out what value this would add over the existing column menu.
Really what you are asking for isn’t actually “technically” a view manager function in that you want the existing calibre functionality for single columns extended to support all columns with a single click. But of course if Kovid doesn’t see that as something he wants to put in calibre itself then I agree that View Manager is the best fit in plugins to add it to. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The first one is straightforward. The second one isn't clear. What is supposed to happen? Are the columns reduced in proportion? To a fixed size equal to the window size / number of columns? With a minimum size, and if so, what size? What happens if the sum of the minimum sizes doesn't fit in the window? Is this actually a useful function? And no, this doesn't belong in the VM thread. Feel free to move the discussion somewhere. |
|
![]() |
![]() |
![]() |
#4 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,710
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I put my suggestion here for a reason: I can drive VM from book-list context menu with menu and arrow keys,
Due to conflict injuries exacerbated by old-age induced peripheral neuropathy I find clicking column headers difficult, I have to use two hands. I invariably end up sorting the columns. If I could, I'd turn off sorting by clicking column headers. BR |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,710
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
The second option is a consequence of the first. if one resized all columns to fit their content, and there were a couple of very long cells - e.g. Jeffery Sachs' recent report titled "The Lancet Commission on lessons for the future from the COVID-19 pandemic" (70+ chars) and it's list of 41 contributors (900+ chars), the right most columns would be in next door's front parlour, so to speak ![]() Aside: I actually thought this functionality already existed in VM, but when I looked it wasn't there - then I spotted the options in the header context menu - what does "Shrink column if it is too wide to fit" actually do? Idea: - provide a tool that that makes the current cell's column header context menu available in a toolbar or menu, then I could get at it from the book list context menu. BR |
|
![]() |
![]() |
![]() |
#7 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#8 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,710
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() Quote:
Widest column is shrunk (in 2 char bites) until all columns are visible, or are at minimum width. So if col-a was at 80 chars, and col-d was 61 chars, col-a would be shrunk until it was 60 then col-d would be shrunk to 59, then col-a to 58 and so-forth-and-so-on. BR |
||
![]() |
![]() |
![]() |
#9 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,729
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Surely it could be done by just adding a new action that can be bound to a keyboard shortcut that invokes the column header context menu code? I think the "Size all columns to contents" should be added to that menu, not in this plugin. Then the "Shrink column if it is too wide to fit" can be left to you as the user to determine which ones you want to shrink. As chaley says it is too problematic to try to figure out which one makes the most sense to try to shrink and "when to stop" etc. |
|
![]() |
![]() |
![]() |
#10 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,710
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
That's my Book list context menu, pretending I hit the menu key on an Authors cell; chaley did something similar recently with Manage Categories, made it a lot easier for me. BR Last edited by BetterRed; 10-01-2022 at 09:54 AM. |
||
![]() |
![]() |
![]() |
#11 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I don't think this affects the VM, but the discussion has been here so ...
I added a line to the books view header context menu: Selecting it gets you this dialog, which doesn't require using the mouse. These changes plus the action permitting opening the header context menu with a keyboard accelerator make it possible to resize columns without using the mouse. |
![]() |
![]() |
![]() |
#13 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 439
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Hum,
I'm testing this in the source and I think it would be nice to add 2 buttons "Shrink if to wide" and "Resize to contents" to this dialog (since we can't access the context menu entry) Yes, you can do it before, but if you create a special dialog for width colum, you might as well put all of them in it. Also, I have the impression that "Shrink colum if to wide" does not work (image) Calibre 6.6.1 / Source ; Windows 10 In any case, the autistic that I am, I will be able to adjust either colum pixel perfect as I want, or with pretty multiple of 50 (150, 200...300...) A big thank you ![]() ![]() Last edited by un_pogaz; 10-03-2022 at 01:08 PM. |
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Moderator Notice
Moved the resizing posts to their own thread |
![]() |
![]() |
![]() |
#15 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
It shrinks columns that are larger than the book list viewport. It doesn't shrink to fit, which is what it looks like you were expecting. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ratings Custom Columns Created From other Columns | Tanjamuse | Library Management | 4 | 09-28-2020 12:57 AM |
Help Needed for Custom Columns Created From other Columns | Tanjamuse | Library Management | 5 | 09-02-2018 06:19 PM |
CBC Booklist | Barcey | Reading Recommendations | 11 | 07-16-2014 09:39 AM |
PRS-950 Where did my booklist go? | Arpadams | Sony Reader Dev Corner | 0 | 08-14-2011 12:00 PM |
booklist refresh | fbdev | Kindle Developer's Corner | 2 | 08-01-2011 12:08 PM |