View Single Post
Old 06-11-2017, 03:57 AM   #472
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,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by eschwartz View Post
When I click it, it does absolutely nothing at all, but I thought it sounded like it should copy the actual search string that the saved search resolves to, either to the clipboard or the searchbar.
It doesn't do "nothing at all". If it can't figure out what saved search is being used or if the search name is invalid then it puts an error in the status line.

Quote:
Originally Posted by JimmXinu View Post
I feel the same way about the tag browser. Didn't even know it could show saved searches.

Update: "Get saved search text" does work if you typed in a saved search like:

search:"Search Name"

"Get saved search text" does not work if the search in the bar is:

search:"=Search Name"

...which is what tag browser puts up there. The = is the difference.
It is actually my bad.

There are five ways to refer to a saved search:
  • search:="fff"
  • search:"=fff"
  • search:fff
  • search:=fff
  • search:"fff"
All of these are equivalent if the search name does not contain a space.

I was lazy in my testing. My original code handled #1, which is what clicking on a search in the drop down produces. Kovid's fix picked up #2, which is what the tag browser produces. I just submitted a change to pick up the last 3.

Note: the equals sign has no significance at all when referring to a saved search and can always be left out. The quotes are necessary only if the search name contains spaces.
chaley is offline   Reply With Quote