After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 319556 - Add abilty to search by filename, comment, exif data, etc
Add abilty to search by filename, comment, exif data, etc
Status: RESOLVED WONTFIX
Product: f-spot
Classification: Other
Component: Browsing
CVS
Other Linux
: Normal enhancement
: ---
Assigned To: F-spot maintainers
F-spot maintainers
gnome[unmaintained]
: 323838 380963 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-10-23 20:53 UTC by Thomas Van Machelen
Modified: 2018-07-12 00:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch adding basic find functionality (4.57 KB, patch)
2005-10-23 20:54 UTC, Thomas Van Machelen
none Details | Review
New Source file: FindBox.cs (3.14 KB, text/plain)
2005-10-23 20:55 UTC, Thomas Van Machelen
  Details
patch adding findbar (15.76 KB, patch)
2005-11-20 18:16 UTC, Thomas Van Machelen
none Details | Review
same as before, but find now works like banshee/rhythmbox search (14.28 KB, patch)
2005-11-21 21:55 UTC, Thomas Van Machelen
none Details | Review
Screenshot (387.31 KB, image/png)
2005-11-22 06:59 UTC, Thomas Van Machelen
  Details
Update fixing Jakub's crash (14.70 KB, patch)
2005-11-27 20:19 UTC, Thomas Van Machelen
none Details | Review
New version (6.17 KB, application/x-compressed-tar)
2005-12-12 19:25 UTC, Thomas Van Machelen
  Details

Description Thomas Van Machelen 2005-10-23 20:53:59 UTC
Hi all,

In attachment a basic proof-of-concept patch for adding a firefox-like search
bar to f-spot, with autocompletion.  I know there is some kind of search bar
attached to the Tag Selection Widget, but this implementation puts the search
bar below the photo window.  An approach worth considering?

Suggestions are welcome:
* is below the photos a good place to show a find dialog?
* what kind of searches (besides seaching for Tags)?
* ...

Please treat it as "work in progress".  The FindBox.cs file goes into the src
directory.

Best Regards,
Thomas
Comment 1 Thomas Van Machelen 2005-10-23 20:54:54 UTC
Created attachment 53807 [details] [review]
Patch adding basic find functionality
Comment 2 Thomas Van Machelen 2005-10-23 20:55:33 UTC
Created attachment 53808 [details]
New Source file: FindBox.cs
Comment 3 Gabriel Burt 2005-10-25 23:00:24 UTC
I like the idea of the pop-up search bar, but I think it would be more
appropriate to search images, not tags.

The tags are listed in a TreeView, which automatically provides for "interactive
searches" on it (and which was recently fixed to actually work, see bug #316051).

It would be awesome if such a search bar could search the image (file) name,
description, and other meta data.  It could have autocomplete type affordances
to make meta-data searching very simple (eg tab complete month/day/tag names). 
Smart auto-complete for specific meta-data looking entries (such as exposure,
ISO, image size, etc) could be used so learning the "syntax" for querying based
on such metadata could be painless.  The less-elegant (IMO) solution would be a
huge search dialog allowing the user to explicitly set each possible search
field etc etc..but a search bar that just worked and was easy and smart would rock.
Comment 4 Thomas Van Machelen 2005-11-20 18:16:24 UTC
Created attachment 54980 [details] [review]
patch adding findbar
Comment 5 Thomas Van Machelen 2005-11-20 18:17:12 UTC
I have taken Gabriel's suggestions into account and came up with a search bar
that allows you to search for photo filenames and descriptions.  The searching
of tags has been removed.  

The find bar can be accessed with the 'f' key, like Nat's tagging bar can be
accessed through 't'.  I also tried to keep the look of the findbar and the
tagbar consistent.  As before, further suggestions / additions are still
welcome!  The new attachment makes the two older ones obsolete.
Comment 6 Jakub Steiner 2005-11-21 18:35:15 UTC
I actually disagree with gabriel on the tag search. Personally I would prefer
the google-like search to the tags sidebar that doesn't scale very much. Search
entry like the one in Rhythmbox or Banshee would be better than the
in-document-like search that firefox/evince/epiphany have. The latter is more
about highlighting a match in some content. This is more like filtering content.
Comment 7 Thomas Van Machelen 2005-11-21 21:55:00 UTC
Created attachment 55055 [details] [review]
same as before, but find now works like banshee/rhythmbox search

Patch that makes the findbar work like the banshee/rhythmbox find bars.  I
didn't change the position of the bar, and it is still accessed through 'f'
Comment 8 Jakub Steiner 2005-11-21 22:56:17 UTC
applying this on HEAD and trying to type 

f, doma 

quickly will crash right before typing 'a'. Typing it slowly will not crash.

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
in <0x00062> FSpot.PhotoImageView:HandlePixbufPrepared
(object,System.EventArgs)in <0x00041> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x00056> FSpot.AsyncPixbufLoader:HandleAreaPrepared (object,System.EventArgs)
in <0x00041> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x00093> GLib.Signal:voidObjectCallback (intptr,intptr)
in <0x0002a> (wrapper native-to-managed) GLib.Signal:voidObjectCallback
(intptr,intptr)
in (unmanaged) 0xb6f6dab2
in <0x00004> (wrapper managed-to-native)
Gdk.PixbufLoader:gdk_pixbuf_loader_write (intptr,byte[],uintptr,intptr&)
in <0x0003f> Gdk.PixbufLoader:Write (byte[],ulong)
in <0x000fc> FSpot.AsyncPixbufLoader:AsyncRead ()
in <0x00037> (wrapper delegate-invoke) System.MulticastDelegate:invoke_bool ()
in <0x0002e> FSpot.Delay:HandleOperation ()
in <0x00037> (wrapper delegate-invoke) System.MulticastDelegate:invoke_bool ()
in <0x0002a> IdleProxy:Handler ()
in <0x0002b> (wrapper native-to-managed) IdleProxy:Handler ()
in (unmanaged) 0xb7f4674f
in <0x00004> (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00007> Gtk.Application:Run ()
in <0x00007> Gnome.Program:Run ()
in <0x003ca> Driver:Main (string[])
Comment 9 Jakub Steiner 2005-11-21 23:01:56 UTC
Next interesting question is the shortcut for this. My favorites are:

* Ctrl+K (global/google search in firefox, it's also specced for the nautilus'
beagle search, not sure if already implemented)
* Ctrl+F (find in evince, epiphany, firefox) - may be the same problem as I've
outlined above. Consistent behavior with the other apps would be selecting
results, navigating through result hits, not filtering. But maybe it's more
obvious/less evil than Ctrl+K
Comment 10 Thomas Van Machelen 2005-11-22 06:59:51 UTC
Created attachment 55065 [details]
Screenshot

Added screenshot on Gabriel's request.

It looks like the crash Jakub mentioned, has something to do with the refresh
not happening quick enough.  Will have to study it :(
Comment 11 Thomas Van Machelen 2005-11-23 21:40:43 UTC
After more research, the version of the patch that works like banshee searching
seems to crash quite randomly; and I can't seem to track it down.  The only
constant I can find is the fact that crashing mostly happens when you type quickly.

Larry, could you have a look at this?
Comment 12 Thomas Van Machelen 2005-11-27 20:19:38 UTC
Created attachment 55291 [details] [review]
Update fixing Jakub's crash

New version of the patch, fixing Jakub's crash.  Nothing else added, I first
wanted to solve Jakub's problem, and maybe wait for more input.

Thanks for checking out.
Comment 13 Thomas Van Machelen 2005-12-12 19:25:49 UTC
Created attachment 55907 [details]
New version

This tar contains a new version of the patch.  Following changes have been
applied:

1. findbar is now accessed through Ctrl-K
2. add timeout to the input field to prevent massive & unnecessary querying
when user is typing fast.
3. improved the layout inspired by Banshee's search entry.

Please comment.
Comment 14 Gabriel Burt 2005-12-13 02:46:35 UTC
*** Bug 323838 has been marked as a duplicate of this bug. ***
Comment 15 Bengt Thuree 2006-02-20 04:30:37 UTC
Relevant information about meny based search in Bug #139796
Comment 16 Bengt Thuree 2006-02-20 04:33:49 UTC
Why did you go with CTRL-K?
To most people I think CTRL-F stands for Find. (Internet Explorer, Windows Explorer etc in the windows world for instance)
CTRL-K might stand for Google Find, but what has Google to do with F-Spot?
Comment 17 Larry Ewing 2006-02-20 06:17:11 UTC
I think it is worth considering making a search entry like this use beagle directly.  I've put a fair amount of work into making beagle index image metadata including raw files (and will continue that work) and so leveraging it to search inside f-spot makes a lot of sense at least.
Comment 18 Bengt Thuree 2006-02-20 06:21:50 UTC
Just that I am not certain that we should build in a dependency upon Beagle.
Will it always be installed?
Will it search outside F-Spot as well?
Comment 19 Anders Bo Rasmussen 2006-04-19 21:01:28 UTC
The original comment/bug description asked for suggestions for what kind of searches should be possible. I think searching in the Exif tags could be usefull. For instance searching on Camera used og focal length.

Sometumes I remember that I have taken a picture and I can remember that the focal length was high or the shutter time was fast, then it would be great if I could search on both the tags for the image and the exiftags.
Comment 20 Bengt Thuree 2006-05-18 07:51:30 UTC
Is this one same as bug #139796 - selecting multiple tags should limit query (use AND not OR)
Especially in regards to Comment #30 from Thomas Van Machelen  
Comment 21 Thomas Van Machelen 2006-05-18 10:06:46 UTC
No these pathces are not the same, but yes they are related.  They are both attempts/experiments to add some kind of search bar to f-spot, because i think that searching through typing would be a great addition.  Currently i consider the one at bug 139796 to be the most useful one, but maybe the different attempts can be integrated when the query branch lands into head.  We'll see...
Comment 22 Gabriel Burt 2006-10-06 03:18:25 UTC
It's now landed, and includes a type-to-find bar, but it only searches tags.  Renaming this bug to focus on adding the features that are missing - searching filename, description, time, etc.
Comment 23 Stephane Delcroix 2006-11-30 22:24:18 UTC
*** Bug 380963 has been marked as a duplicate of this bug. ***
Comment 24 Милош Поповић 2008-01-06 11:33:04 UTC
It would be nice to add searching of some standard tags as city, state, creator... For example:

      <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">
        <rdf:Seq>
          <rdf:_1>Miloš Popović</rdf:_1>
        </rdf:Seq>
      </dc:creator
Comment 25 Brian J. Murrell 2008-09-18 14:38:57 UTC
I guess the work started in here has stagnated.  :-(

Metadata (i.e. EXIF and other directories) and filename search really the cat's ass of this RFE I think.
Comment 26 Stefan Ebner 2009-05-10 11:09:08 UTC
*Push*

Searching by filename would be really useful!
Comment 27 Nicolas 2009-11-18 22:06:33 UTC
Personnaly I'm more interested by searching for EXIF metadata (focal, shutter speed, lens, camera ...) and I'd like to see this feature in F-Spot.

An alternate way could be by importing EXIF metadata into F-Spot tags. This could be done when importing new files, and the list of EXIF metadata that will be imported should be configurable.
Comment 28 Brian J. Murrell 2009-11-19 12:05:08 UTC
(In reply to comment #27)
> Personnaly I'm more interested by searching for EXIF metadata (focal, shutter
> speed, lens, camera ...)

Yeah, having just gone through a process where I used external tools to find all of the photos by camera type so that I could fix the incorrect time stamps from a handful of different photographers of a single event, I can concur that being able to search for exif tags in f-spot would have been much sweeter.

As it is now, I have tags for the different cameras and all photos have a "which camera" tag on them now.

> and I'd like to see this feature in F-Spot.

Ditto.
 
> An alternate way could be by importing EXIF metadata into F-Spot tags. This
> could be done when importing new files, and the list of EXIF metadata that will
> be imported should be configurable.

Indeed.  Interesting idea.  Implicitly adding tags to photos for exif data.

In addition to having a configuration item about which exif data to create tags for, if one adds a new exif data item to create tags for, f-spot should scan all existing photos and fill in that new tag for them.

Or perhaps this exif tagging should always only be done on selected photos, which could include the current import set.

Maybe a UI flow such as: select photo(s)->create tag->for exif->choose exif items to create tags for.
Comment 29 traaf 2010-08-01 13:14:28 UTC
(In reply to comment #28)
> (In reply to comment #27)
> > Personnaly I'm more interested by searching for EXIF metadata (focal, shutter
> > speed, lens, camera ...)
> 
> I can concur that
> being able to search for exif tags in f-spot would have been much sweeter.

i'd also like to have this feature in f-spot

> Maybe a UI flow such as: select photo(s)->create tag->for exif->choose exif
> items to create tags for.

interesting idea
Comment 30 Stephan Ritscher 2010-09-04 12:31:56 UTC
One more vote for filename search (including full path)!
Comment 31 André Klapper 2018-07-12 00:04:54 UTC
F-Spot has moved to https://github.com/f-spot/f-spot/issues

If this Bugzilla ticket is still valid in a recent version of F-Spot, please feel free to post this topic as a ticket in the F-Spot project on GitHub.

Closing this report as WONTFIX as part of Bugzilla Housekeeping as we are planning to shut down GNOME Bugzilla in favor of GNOME Gitlab.