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 608713 - Command line 'Highlight search' appears to do nothing
Command line 'Highlight search' appears to do nothing
Status: RESOLVED FIXED
Product: gnote
Classification: Applications
Component: main
0.7.x
Other Linux
: Normal minor
: ---
Assigned To: Aurimas Černius
gnote-maint
Depends on:
Blocks:
 
 
Reported: 2010-02-01 19:15 UTC by Sebastiaan Mathot
Modified: 2010-12-23 22:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix open note file with search. (3.15 KB, patch)
2010-12-18 21:20 UTC, Aurimas Černius
none Details | Review

Description Sebastiaan Mathot 2010-02-01 19:15:25 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.
Comment 1 Vincas Dargis 2010-08-05 12:46:17 UTC
In 0.7.3 it's --search=text, and it seems to work.
Comment 2 Sebastiaan Mathot 2010-08-20 10:24:31 UTC
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!
Comment 3 Aurimas Černius 2010-12-18 21:17:49 UTC
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
Comment 4 Aurimas Černius 2010-12-18 21:20:34 UTC
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.
Comment 5 Aurimas Černius 2010-12-23 22:27:57 UTC
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.