GNOME Bugzilla – Bug 608713
Command line 'Highlight search' appears to do nothing
Last modified: 2010-12-23 22:27:57 UTC
Example: I open a note containing the word 'test' and run the following command from the command line: gnote --highlight-search=test I expect Gnote to search for 'test' in the open note, but nothing happens. There is no terminal output either.
In 0.7.3 it's --search=text, and it seems to work.
There are actually two commands. One is --search, which opens the search dialog and works fine. The other is --highlight-search, which should highlight and search in the currently opened note (as I understand it from the help), but does nothing. I have tested this today again (Aug 20, 2010) with the stable and unstable PPA and I have compiled the latest source from GIT. It does not appear to work, which is a shame. Otherwise it's a great program!
An option --highlight-search only work with --open-note. The combination of these two opens a note and highlights search in it. But there are two bugs: 1. This only works with uris (--open-note=note://gnote/<uri>), not with files. 2. Bug 637536
Created attachment 176683 [details] [review] Fix open note file with search. With this patch applied, --highlight-search also works, when argument for --open-note is a file of existing note.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.