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-14-2013, 03:28 AM   #46
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,863
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by chaley View Post
When you create a new VL you can click on a link to help construct a search from authors, tags, etc. I am considering adding saved searches to that list.
Sounds good. I recreated one VL by pulling up a saved search first then going into the Create VL menu and just adding a VL name.

Quote:
Originally Posted by chaley View Post
Question 1: is it worth the trouble? Probably, but every choice adds just that much more complexity.
I think it is. My current default VL that I created using the Create VL option uses a saved search in part of the string.

Quote:
Originally Posted by chaley View Post
Question 2: if added, then should the search text be populated with a reference to the saved search (search:"foo") or with the search that "foo" contains (e.g., author:bar or author:mumble)?
I would vote for the bare bones search. In case it makes a difference I have one saved search that contains a previous saved search. I tripped over converting the whole thing back to its original pieces.

Finished Library: not tags:"=working" and search:"=Main Library"
Main Library: not tags:"=Adult" or not tags:"=Non-Fiction"

Quote:
Originally Posted by chaley View Post
Populating with the search preserves the indirection, is both a good and bad thing. The good: the VL will follow changes to the search, which the user might expect when changing the search. The bad: the VL will follow changes to the search, which might confuse things if the user has forgotten that the search is referenced in the VL. Deleting the search will break the VL.
It never occurred to me that if I deleted or changed a saved search I might be breaking a VL. I vote for removing the coupling.

Quote:
Originally Posted by chaley View Post
I tend toward copying the underlying search string in order to avoid future mysteries if the saved search is changed or deleted, but can be easily convinced to do it the other way. Thoughts?
As long as the search within a search can be properly parsed (even though this basic thing kicked my ass I have to believe it is easy) then I'm all for decoupling Saved searches from VLs.
DoctorOhh is offline   Reply With Quote
Old 04-14-2013, 10:12 AM   #47
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,900
Karma: 5880479
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
I vote for using Saved Search names. But is it possible to have a Balloon Help with the actual saved term? (I know how to see it using the long way )
theducks is online now   Reply With Quote
 
Enthusiast
Old 04-14-2013, 11:06 AM   #48
chaley
"chaley", not "charley"
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: 5,686
Karma: 1137958
Join Date: Jan 2010
Location: France
Device: Many android devices
Quote:
Originally Posted by theducks View Post
But is it possible to have a Balloon Help with the actual saved term? (I know how to see it using the long way )
Not in any of the popup menus. Tool tips aren't supported there. That leaves the edit/create dialog, which would imply detecting that the mouse pointer is over a reference to a saved search. I don't know if there is a way to see a "hover" and parsing the text to identify referencing a saved search at exactly that point in the text would be"interesting". So unless I misunderstood you, it isn't likely.
chaley is offline   Reply With Quote
Old 04-14-2013, 11:19 AM   #49
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,900
Karma: 5880479
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by chaley View Post
Not in any of the popup menus. Tool tips aren't supported there. That leaves the edit/create dialog, which would imply detecting that the mouse pointer is over a reference to a saved search. I don't know if there is a way to see a "hover" and parsing the text to identify referencing a saved search at exactly that point in the text would be"interesting". So unless I misunderstood you, it isn't likely.
Thanks,
it was just an idea.
theducks is online now   Reply With Quote
Old 04-14-2013, 02:17 PM   #50
Kirtai
Addict
Kirtai ought to be getting tired of karma fortunes by now.Kirtai ought to be getting tired of karma fortunes by now.Kirtai ought to be getting tired of karma fortunes by now.Kirtai ought to be getting tired of karma fortunes by now.Kirtai ought to be getting tired of karma fortunes by now.Kirtai ought to be getting tired of karma fortunes by now.Kirtai ought to be getting tired of karma fortunes by now.Kirtai ought to be getting tired of karma fortunes by now.Kirtai ought to be getting tired of karma fortunes by now.Kirtai ought to be getting tired of karma fortunes by now.Kirtai ought to be getting tired of karma fortunes by now.
 
Posts: 300
Karma: 2454436
Join Date: Sep 2008
Device: PRS-505, PRS-650, iPad, Samsung Galaxy SII (JB), Google Nexus 7 (2013)
Quote:
Originally Posted by chaley View Post
I tend toward copying the underlying search string in order to avoid future mysteries if the saved search is changed or deleted, but can be easily convinced to do it the other way. Thoughts?
I'd suggest copying the string to preserve the principle of least surprise. Changing something in one part of calibre shouldn't change or break things in a seemingly unconnected part. Also, you want to change the search and VL separately. e.g. start a VL with a saved search then tweak it.
Kirtai is offline   Reply With Quote
Old 04-14-2013, 10:23 PM   #51
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,863
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Kirtai View Post
I'd suggest copying the string to preserve the principle of least surprise. Changing something in one part of calibre shouldn't change or break things in a seemingly unconnected part.
I agree, copying the underlying search string is the way to go. If you don't do that then weeks or months later when a user decides to alter or clean up their saved searches they can easily break the VL which as you say is a "seemingly unconnected part."

Quote:
Originally Posted by Kirtai View Post
Also, you want to change the search and VL separately. e.g. start a VL with a saved search then tweak it.
Agreed, you should be able to tweak one without effecting the other.
DoctorOhh is offline   Reply With Quote
Old 04-15-2013, 05:52 AM   #52
chaley
"chaley", not "charley"
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: 5,686
Karma: 1137958
Join Date: Jan 2010
Location: France
Device: Many android devices
Quote:
Originally Posted by theducks View Post
But is it possible to have a Balloon Help with the actual saved term? (I know how to see it using the long way )
I found a way to track the mouse cursor in the text widget, and also realized that a quick-and-dirty parse would be sufficient. The result: what is shown in the dialog below.

If you hover the mouse pointer over the "s" of "search:", it will fill in the box below with the search expression. This is independent of the position of the editing cursor. That saved search expression will remain in the box until you hover over a different search. This lets you hover to get the search expression then copy and do whatever you want with it.

This stuff may not end up in the final release. When playing at this level we sometimes run into problems with gui artifacts on one system or another. Kovid checks for this when he reviews the code and builds the various versions. If it happens here, then the changes will be removed.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	44
Size:	49.4 KB
ID:	104398  
chaley is offline   Reply With Quote
Old 04-15-2013, 09:00 AM   #53
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,900
Karma: 5880479
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by chaley View Post
I found a way to track the mouse cursor in the text widget, and also realized that a quick-and-dirty parse would be sufficient. The result: what is shown in the dialog below.

If you hover the mouse pointer over the "s" of "search:", it will fill in the box below with the search expression. This is independent of the position of the editing cursor. That saved search expression will remain in the box until you hover over a different search. This lets you hover to get the search expression then copy and do whatever you want with it.

This stuff may not end up in the final release. When playing at this level we sometimes run into problems with gui artifacts on one system or another. Kovid checks for this when he reviews the code and builds the various versions. If it happens here, then the changes will be removed.
Chaley
You never cease to amaze me
theducks is online now   Reply With Quote
Old 04-15-2013, 12:52 PM   #54
chaley
"chaley", not "charley"
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: 5,686
Karma: 1137958
Join Date: Jan 2010
Location: France
Device: Many android devices
Kovid wanted me to do the display of saved searches differently.

The first image is what you see if there aren't any saved searches in the expression:
Click image for larger version

Name:	Clipboard02.jpg
Views:	42
Size:	45.7 KB
ID:	104440
As you can see, it is not different from what it was before.

The next one is what you see if there are (recognizable) saved searches in the expression:
Click image for larger version

Name:	Clipboard01.jpg
Views:	43
Size:	50.9 KB
ID:	104441
The saved search text can be selected with the mouse and copied to the clipboard. You would do this if you want to convert the saved search reference to the associated search expression.

This code is in trunk for those of you who run from source.
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
"Sharpness" and "Kobo Styling" question? EldRick Kobo Reader 3 11-19-2012 09:25 AM
Question about disable indexing permanently by disabling access to "Search Indexes" WS64 Kindle Developer's Corner 1 12-17-2011 05:51 PM
E-Books Achat d'E.books & "restriction géographique" choup Forum Français 112 07-19-2010 11:52 AM
Question - Does iLiab have the "search" & "annotation, highlighting" features? HiSoC8Y iRex 5 07-01-2009 04:37 PM


All times are GMT -4. The time now is 09:26 AM.


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