Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-01-2022, 05:01 AM   #1
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 18,667
Karma: 20849785
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Resizing booklist columns

Quote:
Originally Posted by kiwidude View Post
@BetterRed - you mean make those options for a view so that if they were ticked they get applied whenever that view is selected? As of course they depend on whatever search data you have displayed at the time - so you would need to keep “reapplying” your view at times if you have outliers in your search results with extra long values.
I was thinking of options in the drop down, not the config, a'la:

Click image for larger version

Name:	Screenshot 2022-10-01 174621.jpg
Views:	54
Size:	45.2 KB
ID:	196891

Yes I would have to apply as required, but that's okay by me.

BR
BetterRed is offline   Reply With Quote
Old 10-01-2022, 07:27 AM   #2
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,419
Karma: 1810960
Join Date: Oct 2010
Location: London, UK
Device: Kindle Oasis, iPad Pro
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.
kiwidude is offline   Reply With Quote
Old 10-01-2022, 07:57 AM   #3
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
chaley's Avatar
 
Posts: 10,806
Karma: 4599395
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
Suggestion:

When I right-click on a Column header I get this popup:

Attachment 196889

Would it be possible to add something similar to those I've boxed to VM, i.e.

Resize all columns to fit contents
Shrink widest columns so that all columns fit the window

BR
Responding a bit to @kiwidude's "it should be in calibre" comment ...

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.
chaley is offline   Reply With Quote
Old 10-01-2022, 08:14 AM   #4
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 18,667
Karma: 20849785
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
BetterRed is offline   Reply With Quote
Old 10-01-2022, 08:16 AM   #5
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
chaley's Avatar
 
Posts: 10,806
Karma: 4599395
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
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
Fair enough. I will back out of this discussion.
chaley is offline   Reply With Quote
Old 10-01-2022, 08:55 AM   #6
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 18,667
Karma: 20849785
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
...
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?
This deserves a response.

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
BetterRed is offline   Reply With Quote
Old 10-01-2022, 09:00 AM   #7
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
chaley's Avatar
 
Posts: 10,806
Karma: 4599395
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
This deserves a response.

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
The questions I asked before are still unanswered. Kiwidude will run into the same problems.
Quote:
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?
It shrinks the column to the size of the viewport less a few pixels.
chaley is offline   Reply With Quote
Old 10-01-2022, 09:49 AM   #8
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 18,667
Karma: 20849785
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
The questions I asked before are still unanswered. Kiwidude will run into the same problems.

It shrinks the column to the size of the viewport less a few pixels.
Took me a moment to figure out how to make a column wider than the viewport - make it wide, then shrink window


Quote:
Originally Posted by chaley View Post
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?
The goal is to reduce need for (even eliminate) horizontal scrolling, and having to manipulate the column header bar with the mouse. I'll use characters as the illustrative unit.

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
BetterRed is offline   Reply With Quote
Old 10-01-2022, 10:03 AM   #9
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,419
Karma: 1810960
Join Date: Oct 2010
Location: London, UK
Device: Kindle Oasis, iPad Pro
Quote:
Originally Posted by BetterRed View Post
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
I honestly think this touches on the underlying solution. If calibre can improve it's accessibility by implementing such support then that is half your problem solved. Having had to do some accessibility work in my day job for a website I got some experience of just how difficult that can be to make everything truly keyboard accessible for instance.

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.
kiwidude is offline   Reply With Quote
Old 10-01-2022, 10:47 AM   #10
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 18,667
Karma: 20849785
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BetterRed View Post
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
Quote:
Originally Posted by kiwidude View Post
I honestly think this touches on the underlying solution. If calibre can improve it's accessibility by implementing such support then that is half your problem solved. Having had to do some accessibility work in my day job for a website I got some experience of just how difficult that can be to make everything truly keyboard accessible for instance.

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.
I was thinking along the lines of a tool, so that it can be used like this, or from a toolbar even:

Click image for larger version

Name:	column tools.jpg
Views:	399
Size:	52.6 KB
ID:	196899

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 10:54 AM.
BetterRed is offline   Reply With Quote
Old 10-02-2022, 05:34 AM   #11
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
chaley's Avatar
 
Posts: 10,806
Karma: 4599395
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kiwidude View Post
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 added this. It is in calibre source now.
Quote:
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.
I am not going to do either of size all columns or shrink all columns. I don't think the first is useful enough to do, and in any event can now be done column by column using the shortcut to open the context menu. I don't see any way to get the second one right. There would be no end of "It didn't do what I want" reports.
chaley is offline   Reply With Quote
Old 10-03-2022, 09:47 AM   #12
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
chaley's Avatar
 
Posts: 10,806
Karma: 4599395
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:
Click image for larger version

Name:	Clipboard01.jpg
Views:	24
Size:	34.7 KB
ID:	196954

Selecting it gets you this dialog, which doesn't require using the mouse.
Click image for larger version

Name:	Clipboard03.jpg
Views:	23
Size:	29.1 KB
ID:	196955

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.
chaley is offline   Reply With Quote
Old 10-03-2022, 01:23 PM   #13
un_pogaz
Chalut o/
un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.un_pogaz is the One.
 
un_pogaz's Avatar
 
Posts: 339
Karma: 101903
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
Attached Thumbnails
Click image for larger version

Name:	Shrink colum if to wide.png
Views:	22
Size:	39.3 KB
ID:	196962  

Last edited by un_pogaz; 10-03-2022 at 02:08 PM.
un_pogaz is offline   Reply With Quote
Old 10-03-2022, 01:57 PM   #14
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
chaley's Avatar
 
Posts: 10,806
Karma: 4599395
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Moderator Notice
Moved the resizing posts to their own thread
chaley is offline   Reply With Quote
Old 10-03-2022, 01:59 PM   #15
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
chaley's Avatar
 
Posts: 10,806
Karma: 4599395
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by un_pogaz View Post
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.
Makes sense. I will submit the changes.
Quote:
Originally Posted by un_pogaz View Post
Also, I have the impression that "Shrink colum if to wide" does not work (image 2) Calibre 6.6.1 / Source ; Windows 10
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.
chaley is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ratings Custom Columns Created From other Columns Tanjamuse Library Management 4 09-28-2020 01:57 AM
Help Needed for Custom Columns Created From other Columns Tanjamuse Library Management 5 09-02-2018 07:19 PM
CBC Booklist Barcey Reading Recommendations 11 07-16-2014 10:39 AM
PRS-950 Where did my booklist go? Arpadams Sony Reader Dev Corner 0 08-14-2011 01:00 PM
booklist refresh fbdev Kindle Developer's Corner 2 08-01-2011 01:08 PM


All times are GMT -4. The time now is 04:08 AM.


MobileRead.com is a privately owned, operated and funded community.