# HG changeset patch
# User Colin Clark
# Date 1526494932 -3600
# Node ID f2f01d556f516adca798091938a59cc9b561cc33
# Parent db7fa530da47e5e5baa43ed38a205338175ef476
Fix #597: Help file search
https://github.com/BestImageViewer/geeqie/issues/597
Only on-line help files are searched.
Search engine defined in Preferences/General.
Local help files are not searched.
diff -r db7fa530da47 -r f2f01d556f51 doc/docbook/GuideMainWindowMenus.xml
--- a/doc/docbook/GuideMainWindowMenus.xml Wed May 16 10:04:01 2018 +0100
+++ b/doc/docbook/GuideMainWindowMenus.xml Wed May 16 19:22:12 2018 +0100
@@ -1445,6 +1445,20 @@
+ On-line help search
+
+
+
+
+ Use a web browser to search Geeqie's on-line help files. The search engine used is defined in
+ Preferences General
+ .
+
+
+
+
+
+ Keyboard shortcuts
diff -r db7fa530da47 -r f2f01d556f51 doc/docbook/GuideOptionsGeneral.xml
--- a/doc/docbook/GuideOptionsGeneral.xml Wed May 16 10:04:01 2018 +0100
+++ b/doc/docbook/GuideOptionsGeneral.xml Wed May 16 19:22:12 2018 +0100
@@ -222,4 +222,15 @@
+
+ On-line help search
+
+ An internet search engine may be used to search the help files on Geeqie's website. The string used to conduct the search is defined here. In most cases it will be in one of two formats:
+
+ https://www.search-engine.com/search?q=site:geeqie.org/help
+
+ https://www.search-engine.com/?q=site:geeqie.org/help'
+
+
+
diff -r db7fa530da47 -r f2f01d556f51 src/layout_util.c
--- a/src/layout_util.c Wed May 16 10:04:01 2018 +0100
+++ b/src/layout_util.c Wed May 16 19:22:12 2018 +0100
@@ -1125,6 +1125,14 @@
help_window_show("index.html");
}
+static void layout_menu_help_search_cb(GtkAction *action, gpointer data)
+{
+ LayoutWindow *lw = data;
+
+ layout_exit_fullscreen(lw);
+ help_search_window_show();
+}
+
static void layout_menu_help_keys_cb(GtkAction *action, gpointer data)
{
LayoutWindow *lw = data;
@@ -1886,6 +1894,7 @@
{ "SlideShowSlower", GTK_STOCK_FILE, N_("Slower"), "KP_Subtract", N_("Slower"), CB(layout_menu_slideshow_slower_cb) },
{ "Refresh", GTK_STOCK_REFRESH, N_("_Refresh"), "R", N_("Refresh"), CB(layout_menu_refresh_cb) },
{ "HelpContents", GTK_STOCK_HELP, N_("_Contents"), "F1", N_("Contents"), CB(layout_menu_help_cb) },
+ { "HelpSearch", NULL, N_("On-line help search"), NULL, N_("On-line help search"), CB(layout_menu_help_search_cb) },
{ "HelpShortcuts", NULL, N_("_Keyboard shortcuts"), NULL, N_("Keyboard shortcuts"), CB(layout_menu_help_keys_cb) },
{ "HelpKbd", NULL, N_("_Keyboard map"), NULL, N_("Keyboard map"), CB(layout_menu_kbd_map_cb) },
{ "HelpNotes", NULL, N_("_Release notes"), NULL, N_("Release notes"), CB(layout_menu_notes_cb) },
@@ -2189,6 +2198,7 @@
"
-
There are 6 individual marks, any of which can be associated with an image simply by pressing the 1 to 6 keys on the keyboard.
+
There are 10 individual marks, any of which can be associated with an image simply by pressing the 0 to 9 keys on the keyboard, where key 0 represents mark 10.
If the
Show Marks
- menu has been selected, each image will have a set of 6 check-boxes displayed adjacent to it in the file pane in both icon and list mode. In addition a set of 6 check-boxes will be shown at the top of the files pane. Clicking any of these will filter the displayed list.
+ menu has been selected, each image will have a set of 10 check-boxes displayed adjacent to it in the file pane in both icon and list mode. In addition a set of 10 check-boxes will be shown at the top of the files pane. Clicking any of these will filter the displayed list.
+
Moving the mouse over any of the check-boxes at the top of the files pane will show mnemonic text for that mark. The text can be modified by right-clicking on the check box.
If the
Image Overlay
is being displayed, the currently set marks for the image are shown. It is not necessary to include an entry into the overlay template for this to happen.
- A keyword can be associated with a single mark by right-clicking on the keyword in the sidebar panel. When a meta-data write operation for a file is triggered either manually or as defined in
+ A keyword can be associated with a single mark by right-clicking on the keyword in the sidebar panel. When a meta-data write operation for a file is triggered either
+ manually
+ or as defined in
Metadata
, the keyword data indicated by the current set of mark-to-keyword links will be written.
-
Neither marks, nor the associations between keywords and marks, are preserved when Geeqie is shut down.
+
+ The associations between keywords and marks is preserved when Geeqie is shut down. The current setting of marks can also be optionally saved - the setting is in the
+ Behavior tab of Preferences
+ .
+
+ An internet search engine may be used to search the help files on Geeqie's website. The string used to conduct the search is defined here. In most cases it will be in one of two formats:
+