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 04-13-2023, 07:21 AM   #1
BetterRed
null operator (he/him)
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: 21,565
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Prevent editing composite columns in the book list

Is there a setting/tweak to prevent the Template Editor popping if F2 is pressed on a composite column cell?

BR
BetterRed is offline   Reply With Quote
Old 04-13-2023, 07:47 AM   #2
chaley
Grand Sorcerer
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.
 
Posts: 12,302
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
No. There is only the option you asked for to allow editing only with F2.

One of DaltonST's plugins has an option to mark a column read only. I don't know what that would do with a composite.
chaley is offline   Reply With Quote
Advert
Old 04-13-2023, 08:57 AM   #3
BetterRed
null operator (he/him)
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: 21,565
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I felt sure there was something, must have dreamt it - I don't have many virtual columns and I never wanted to show them in the book list before.

DaltonST's Protect column tool is real columns only, but I can unset the editable flag in the database, that'll do me.

BR
BetterRed is offline   Reply With Quote
Old 04-13-2023, 11:17 PM   #4
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,503
Karma: 73517101
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Rather amusingly, it took me a while to realize I could F2 composites and edit them without going through the 'add column' dialog and restarting Calibre every time.
ownedbycats is online now   Reply With Quote
Old 04-14-2023, 12:50 AM   #5
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,185
Karma: 1988646
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Rather amusingly, it took me a while to realize I could F2 composites and edit them without going through the 'add column' dialog and restarting Calibre every time.
Ditto. Slightly off topic, is there a way to edit composites that are not shown in library view without having to restart every time?
capink is offline   Reply With Quote
Advert
Old 04-14-2023, 01:13 AM   #6
BetterRed
null operator (he/him)
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: 21,565
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Ad-hoc - Press H->Show columns-><your column>

oops, 'H' is my shortcut, thought it was default; so, right click a column header.

BR

Last edited by BetterRed; 04-14-2023 at 01:22 AM.
BetterRed is offline   Reply With Quote
Old 04-14-2023, 02:48 AM   #7
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,503
Karma: 73517101
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
There's also a Job Spy option somewhere to show all columns. And if you want, you can save that to a view manager view
ownedbycats is online now   Reply With Quote
Old 04-15-2023, 12:23 AM   #8
BetterRed
null operator (he/him)
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: 21,565
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BetterRed View Post
I felt sure there was something, must have dreamt it - I don't have many virtual columns and I never wanted to show them in the book list before.
I suspect it was this: Preferences->Look & Feel->Edit Metadata->Tab key doesn't edit column templates in the book list.

BR
BetterRed is offline   Reply With Quote
Old 05-07-2023, 11:16 AM   #9
isarl
Addict
isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.
 
Posts: 287
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
Quote:
Originally Posted by BetterRed View Post
I suspect it was this: Preferences->Look & Feel->Edit Metadata->Tab key doesn't edit column templates in the book list.

BR
Thank you so much. I knew I had seen this option before but couldn't find it for the life of me, and Google led me to this thread. Leaving a comment in case anybody else has the same frustration I had.

Although the configuration option says it's about the Tab key, enabling it does pretty much what I want it to: if I click on a composite column in the book list, the Template editor window no longer pops up. The field might seem to enter an edit mode, with placeholder text saying that editing composite columns is disallowed, but this can be dismissed with the ESC key. More importantly, I don't have to dismiss the template editor.

TL;DR: the above-mentioned configuration option affects the behaviour of mouse clicks too, not just the tab key it claims to. (And that's a good thing!)
isarl is offline   Reply With Quote
Old 05-07-2023, 11:41 AM   #10
chaley
Grand Sorcerer
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.
 
Posts: 12,302
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by isarl View Post
Thank you so much. I knew I had seen this option before but couldn't find it for the life of me, and Google led me to this thread. Leaving a comment in case anybody else has the same frustration I had.

Although the configuration option says it's about the Tab key, enabling it does pretty much what I want it to: if I click on a composite column in the book list, the Template editor window no longer pops up. The field might seem to enter an edit mode, with placeholder text saying that editing composite columns is disallowed, but this can be dismissed with the ESC key. More importantly, I don't have to dismiss the template editor.

TL;DR: the above-mentioned configuration option affects the behaviour of mouse clicks too, not just the tab key it claims to. (And that's a good thing!)
What you are seeing is the interaction of this preference and the tweak "Control behavior of the book list (ID: doubleclick_on_library_view)".

It is true that the preference disables editing a composite column via any method other than F2. I will change the documentation and tooltip to say that. However, the tweak can disable editing a column via a single click. Depending on what you want to do, setting one or both of them might be appropriate.

For example, I never want to start editing a field, any field, when I click in it. To accomplish this I set the tweak "double_click_on_library_view" to "edit_cell". This disables single clicks from editing a cell. If you also want to prevent editing a composite when tabbing in from editing the cell just before it then set the option as well.

If you *do* want to edit a cell with a single click then set the tweak appropriately. You can then use the option to prevent editing composites (and only composites) with a single click.
chaley is offline   Reply With Quote
Old 05-07-2023, 11:55 AM   #11
isarl
Addict
isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.
 
Posts: 287
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
Quote:
Originally Posted by chaley View Post
What you are seeing is the interaction of this preference and the tweak "Control behavior of the book list (ID: doubleclick_on_library_view)".

It is true that the preference disables editing a composite column via any method other than F2. I will change the documentation and tooltip to say that. However, the tweak can disable editing a column via a single click. Depending on what you want to do, setting one or both of them might be appropriate.

For example, I never want to start editing a field, any field, when I click in it. To accomplish this I set the tweak "double_click_on_library_view" to "edit_cell". This disables single clicks from editing a cell. If you also want to prevent editing a composite when tabbing in from editing the cell just before it then set the option as well.

If you *do* want to edit a cell with a single click then set the tweak appropriately. You can then use the option to prevent editing composites (and only composites) with a single click.
Thanks a lot for this added explanation. It's certainly food for thought. I'm used to being able to open books by double-clicking them, and do occasionally edit fields by single-clicking them. But there is both a hotkey and a main toolbar button for viewing a book, so I might have to experiment with changing the double-click action to edit_cell. Thanks again!
isarl 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
Display composite columns with comments in book details chaley Library Management 5 03-08-2023 04:01 AM
Composite columns and identifiers ownedbycats Library Management 15 05-26-2022 02:32 PM
How to prevent readers editing an ePub book? jeffwirth ePub 4 02-22-2021 11:01 AM
Quickview and composite columns ownedbycats Library Management 2 12-25-2020 04:43 PM
Can I prevent changing the fields directly in book list? erpol Calibre 8 12-01-2012 03:40 PM


All times are GMT -4. The time now is 04:27 PM.


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