debian/0000755000000000000000000000000012202032445007160 5ustar debian/searchmonkey.menu0000644000000000000000000000032312202032445012534 0ustar ?package(searchmonkey):\ needs="X11" \ section="Applications/File Management" \ title="Searchmonkey" \ command="searchmonkey" \ icon="/usr/share/pixmaps/searchmonkey.xpm" debian/searchmonkey.xpm0000644000000000000000000001435712202032445012410 0ustar /* XPM */ static char *searchmonkey[] = { /* columns rows colors chars-per-pixel */ "32 32 256 2", " c #15100B", ". c #3E3509", "X c #37322C", "o c #2B2B2B", "O c #4B2E09", "+ c #4A370E", "@ c #4C3D12", "# c #553E1A", "$ c #543B16", "% c #463421", "& c #1C5B0F", "* c #205E0E", "= c #3B520F", "- c #215F10", "; c #345411", ": c #3A5510", "> c #3C5B12", ", c #19620F", "< c #0A710F", "1 c #0A6D11", "2 c #176A10", "3 c #0C7B13", "4 c #0B7411", "5 c #1A7813", "6 c #21600E", "7 c #2C6814", "8 c #386615", "9 c #287A17", "0 c #3F7419", "q c #42410D", "w c #50440D", "e c #484511", "r c #574215", "t c #544814", "y c #475716", "u c #6B4C0F", "i c #6A4515", "p c #654C13", "a c #6E4A15", "s c #644C19", "d c #6E4B1C", "f c #67471B", "g c #734B14", "h c #734E1C", "j c #68561B", "k c #75501B", "l c #417B1D", "z c #4B6D18", "x c #5F4420", "c c #654923", "v c #6C4D26", "b c #604520", "n c #6A522D", "m c #715D2A", "M c #795628", "N c #726134", "B c #2B3846", "V c #4A4A4A", "C c #4A5C6D", "Z c #586674", "A c #656362", "S c #757575", "D c #8C4F04", "F c #82510D", "G c #945102", "H c #9A5401", "J c #9A5A0C", "K c #815211", "L c #86591F", "P c #8B5C1E", "I c #885719", "U c #915813", "Y c #905916", "T c #9E641E", "R c #A0651E", "E c #865B23", "W c #8C5E23", "Q c #875F2D", "! c #8D632C", "~ c #86602E", "^ c #93652C", "/ c #9B6A2C", "( c #87663E", ") c #946A33", "_ c #966A35", "` c #94703F", "' c #A16C2A", "] c #9B7444", "[ c #8D785D", "{ c #83674B", "} c #AA7B43", "| c #A07948", " . c #0E8414", ".. c #0E8914", "X. c #138314", "o. c #118C16", "O. c #108518", "+. c #128C1A", "@. c #1A8B19", "#. c #1E8818", "$. c #129217", "%. c #13941A", "&. c #159B1B", "*. c #1A971C", "=. c #2A881C", "-. c #35831C", ";. c #249E1F", ":. c #16A31D", ">. c #18A61E", ",. c #19AC1F", "<. c #17A91E", "1. c #22A31E", "2. c #169920", "3. c #1A9C23", "4. c #179721", "5. c #19A521", "6. c #1AAD21", "7. c #1EAA29", "8. c #1CB423", "9. c #1DBC24", "0. c #1FB329", "q. c #1FBD28", "w. c #26A821", "e. c #2EB726", "r. c #21B42C", "t. c #22BB2D", "y. c #35A623", "u. c #1FC225", "i. c #23C527", "p. c #23C32D", "a. c #22CB2A", "s. c #27C528", "d. c #24D32C", "f. c #26DB2D", "g. c #25C730", "h. c #26CC30", "j. c #27D231", "k. c #28D632", "l. c #28DB32", "z. c #27D931", "x. c #27E02E", "c. c #28E62F", "v. c #29E332", "b. c #2AEA32", "n. c #27E430", "m. c #2CF234", "M. c #2EFA36", "N. c #8C8148", "B. c #AE814A", "V. c #B0824A", "C. c #AC8351", "Z. c #B58B55", "A. c #B28959", "S. c #BA905C", "D. c #9F8465", "F. c #A38766", "G. c #AA8F6F", "H. c #B28E60", "J. c #BE9465", "K. c #BB9C7D", "L. c #B89774", "P. c #CE914F", "I. c #C2945D", "U. c #CA965B", "Y. c #E19D57", "T. c #E19F59", "R. c #DDA05F", "E. c #E2A15D", "W. c #C99C69", "Q. c #C39B73", "!. c #C7A37B", "~. c #CEA474", "^. c #DAAA74", "/. c #E3A562", "(. c #E4A768", "). c #E4AA6B", "_. c #E4A867", "`. c #E5AD73", "'. c #E6B176", "]. c #E7B47C", "[. c #E8B57F", "{. c #8A8A8A", "}. c #848484", "|. c #9E938A", " X c #878C91", ".X c #969492", "XX c #AA9A8B", "oX c #A49B93", "OX c #AAA198", "+X c #B2A699", "@X c #BEA891", "#X c #8396AD", "$X c #8A98AA", "%X c #859AB2", "&X c #899CB3", "*X c #8B9FBA", "=X c #969CA4", "-X c #98A2AC", ";X c #9BA6B5", ":X c #ACABAC", ">X c #A9A8A7", ",X c #B0A9A3", ".; m } T J H H H H J R } m = 3 UX9.UXUXUX,.d.UX", ":.UX6.d.9.UX$.9.: ] / D D G H H H H H D D ' ] y o.9.UXUX,.a.<.UX", ":.9.u.f.UXUX3 ; ] Y ^ Z.Z.^ U H H U / S.Z.^ Y ] l $.,.u.:.u.<.UX", "8.c.$.UXUX..;.N P V.eX'.].[.S.U J I.[.'.'.eXC.P N 1.b.6.,...9.o.", "f.f.o.. + 9 ; _ ^ [.^.fXCXZXCXG.V.'._._.).).wX) _ > y.= -.o.:.8.", "f.*.e F F a # W W.8XGXvX*X%X*XGXiXR.E.E.E./.(.W.W r a F F e s.u.", "M.= F a ~ h r P ~.GX%XmXLXLXmX#XDX@XY.Y.Y.E.T.^.P f h ~ u k y $.", "d.@ g U.E.E.c P fX;XnXIXIXDXFX1X%XHXC.E./.T.T.`.P c E.).I.g t ..", "=.u h _.E._.c P BX%XFXGXAXmX;X=X#XLXo % ).(.(.^.P c E./.'.h p 2 ", "1.u a E.E.'.v W BX#XAXAX1X-XC X$XHXV `.`.).W.! v ).E.`.v s 1.", "..w a P._.[.v Q gX*X1X2XZ B B :X$XGXX { wX].tX) ! v ).Y.U.a w i.", "b.: g i _ M r P +XSX&X:XoXA XX:XbXpXyXyXtXeXtXJ.P r M ^ i h : &.", "&.X.+ h h + E C.qXVXMX%X;X:X;XbXPX>X@XdXaXaXtXyXH.E O h h e @.f.", ":.6.3.7 : $ L tXwX7X3XPXDXSXPXVXNXS .XXXdXdXaXtXsXL @ > 7 5.n.d.", "8.:.&.$.& f ! tXqXtXyX0XiXiXiXxXoXNXS {.|.dXaXtXdX) s s.>.&.9.6.", ":.6.<.$., f ^ aXeXrXaXjXlXcXcXJXKX+XnX}.{.oXaXtXdX_ s e.&.9.M.u.", " .6.m.u.1.# L aXqXQ.Q.0XlXcXcXJXKXKX9X2XNXgXL.tXjXL y X.c.c.:.9.", "x.8...u.f.q L 5XtXyXrXL.F.K.8XkXkX8XL.[ .XXXaXaX6Xz i.u.x.u.u.3 ", "m.d.m.m.X.5 s E uXtXyXaXdX6XK.F.F.K.8XjXhXaXyX0Xl #.M.u.$. .d.8.", "$.$.c.M.u.f.5 d ! sXaXaXaXaXdXjXjXjXjXdXsXjXuX=.b.m.M.d.8.a.m.c.", ".. .x.M.M.9.&.5.y L C.sXdXdXdXaXaXdXjXjXzXN.=.=.8.b.m.d.f.$.8.u.", "a.:.&.b.b.b.v.l.7.7 i L ) B.H.!.!.H.| _ j =.j.l.l.b.b.6.9.+.5.%.", "p.g.5.u.b.8.j.l.i.O.%.- 8 t p u g g i r - r.j.k.5.>.6.:.o.3 UXUX", "g.r.4.&.+.p.l.k.3.t.3.&.v.3 #.9 ; 8 -.+.4.O.0.k.l.i.+.3 4 &.< p.", "r.3 4.3 6.8.t.j.g.g.t.r.2.v.v.l.0.o.1 +.0.g.h.h.%.$.< 4.p.k.d.a.", "UXUX3.O.a.8.d.k.h.g.t.7.O.%.l.l.5.4.+.r.r.t.g.h.j.+.t.+.h.k.8.v.", "UXUXUX1 +.6.6.o.t.t.t.3 4.4.5.l.h.4.+.3.r.t.0.3 3.5.t.h.h.g.a.3 " }; debian/control0000644000000000000000000000163212202032445010565 0ustar Source: searchmonkey Section: utils Priority: optional Maintainer: Varun Hiremath Uploaders: Benjamin Kerensa Build-Depends: debhelper (>= 7), cdbs, pkg-config, libgtk2.0-dev Standards-Version: 3.9.4 Homepage: http://sourceforge.net/projects/searchmonkey/ Vcs-Git: git://git.debian.org/users/varun/searchmonkey.git Vcs-Browser: http://git.debian.org/?p=users/varun/searchmonkey.git;a=summary Package: searchmonkey Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: search files using regular expressions aiming to replace find/grep tools SearchMonkey is a light-weight Gtk application that aims to replace the cumbersome find/grep with a slick user interface that quickly provides a mark-up showing locations and quantity of text matches. The goal is to provide a simple to use and accessible search tool for end-users, and software developers alike. debian/docs0000644000000000000000000000000712202032445010030 0ustar README debian/copyright0000644000000000000000000000205012202032445011110 0ustar This package was debianized by Varun Hiremath on Tue, 12 Sep 2006 23:37:57 +0530. It was downloaded from Upstream Author: Adam Cottrell Copyright: © 2006 Adam Cottrell License: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. On Debian systems, you can find the LGPL license in: /usr/share/common-licenses/LGPL The Debian packaging is © 2006, Varun Hiremath and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/watch0000644000000000000000000000013312202032445010206 0ustar version=3 http://sf.net/searchmonkey/ searchmonkey-(.*)\.tar\.gz debian debian/orig-tar.sh debian/rules0000755000000000000000000000063312202032445010242 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk install/searchmonkey:: dh_install debian/searchmonkey.desktop /usr/share/applications/ dh_install debian/searchmonkey.xpm /usr/share/pixmaps/ dh_link /usr/share/pixmaps/searchmonkey/searchmonkey-48x48.png /usr/share/pixmaps/searchmonkey.png get-orig-source: -uscan --upstream-version 0 --rename debian/orig-tar.sh0000644000000000000000000000033212202032445011236 0ustar #!/bin/sh -e # called by uscan with '--upstream-version' # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $3 $origDir echo "moved $3 to $origDir" fi exit 0 debian/compat0000644000000000000000000000000212202032445010356 0ustar 7 debian/changelog0000644000000000000000000000674212202032445011043 0ustar searchmonkey (0.8.1-9) unstable; urgency=low [ Benjamin Kerensa ] * Add self as co-maintainer [ Varun Hiremath ] * Fix a typo in the desktop file (Closes: #663661) * Add a patch fix-crash.diff to fix crashes, thanks to Peter (Closes: #625643) * Update build.diff patch to fix broken link (Closes: #705849) * Update Standards-Version to 3.9.4 -- Varun Hiremath Sun, 11 Aug 2013 20:06:47 -0400 searchmonkey (0.8.1-8) unstable; urgency=low * Add patches/fix-format-security.diff, thanks to Peter Green , fixes FTBFS (Closes: #646490) * Bump Standards-Version to 3.9.2 * Add searchmonkey menu file (Closes: #587793) -- Varun Hiremath Sun, 13 Nov 2011 00:40:42 -0500 searchmonkey (0.8.1-7) unstable; urgency=low * Switch to source format 3.0 * Clean up debian/rules and the build procedure (Closes: #577359) * debian/control: + Remove Torsten Werner from Uploaders, as requested + Bump Standards-Version to 3.8.4 * Fix debian/copyright -- Varun Hiremath Sun, 11 Apr 2010 20:37:16 -0400 searchmonkey (0.8.1-6) unstable; urgency=low * debian/control: + Add Homepage header and replace XS-Vcs with Vcs + Bump up Standards-Version to 3.7.3 + Build-Depend on debhelper >= 6 * debian/compat: Bump to 6 * Remove encoding field from desktop file -- Varun Hiremath Sat, 19 Jan 2008 12:27:23 +0530 searchmonkey (0.8.1-5) unstable; urgency=low * Add searchmonkey.desktop (Closes: #442178) * debian/rules: implement get-orig-source -- Varun Hiremath Fri, 14 Sep 2007 11:18:18 +0530 searchmonkey (0.8.1-4) unstable; urgency=low * Remove config.guess and config.sub in clean target. (Closes: #424265) -- Torsten Werner Wed, 16 May 2007 19:24:03 +0200 searchmonkey (0.8.1-3) unstable; urgency=low * Clean up debian/rules. -- Torsten Werner Wed, 7 Mar 2007 07:28:49 +0100 searchmonkey (0.8.1-2) unstable; urgency=low * Fix a broken symlink in the package. Closes: #413667 -- Torsten Werner Tue, 6 Mar 2007 21:09:19 +0100 searchmonkey (0.8.1-1) unstable; urgency=low * New upstream release -- Varun Hiremath Mon, 12 Feb 2007 21:06:49 +0530 searchmonkey (0.7.3-1) experimental; urgency=low * New upstream release -- Varun Hiremath Fri, 1 Dec 2006 05:28:27 +0530 searchmonkey (0.7.2-1) experimental; urgency=low [ Varun Hiremath ] * New upstream release * Update debian/watch file [ Torsten Werner ] * Uploading to experimental because Debian is in soft freeze. -- Torsten Werner Sun, 19 Nov 2006 10:57:28 +0100 searchmonkey (0.7.1-1) unstable; urgency=low * New upstream release * Add XS-X-Vcs-Svn header in debian/control * Add debian/watch file -- Varun Hiremath Fri, 3 Nov 2006 18:20:38 +0530 searchmonkey (0.6.3-1) unstable; urgency=low * New upstream release. -- Varun Hiremath Sun, 8 Oct 2006 23:51:37 +0530 searchmonkey (0.6.2-1) unstable; urgency=low * New upstream release. * Add myself to Uploaders: in debian/control. -- Torsten Werner Fri, 6 Oct 2006 15:43:25 +0200 searchmonkey (0.6.1-1) unstable; urgency=low * Initial release (Closes: #386960) -- Varun Hiremath Tue, 12 Sep 2006 23:37:57 +0530 debian/source/0000755000000000000000000000000012202032445010460 5ustar debian/source/format0000644000000000000000000000001412202032445011666 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012202032445010607 5ustar debian/patches/series0000644000000000000000000000006312202032445012023 0ustar build.diff fix-format-security.diff fix-crash.diff debian/patches/fix-format-security.diff0000644000000000000000000000442112202032445015363 0ustar Index: searchmonkey-0.8.1/src/systemio.c =================================================================== --- searchmonkey-0.8.1.orig/src/systemio.c 2007-02-05 22:55:51.000000000 +0000 +++ searchmonkey-0.8.1/src/systemio.c 2011-11-10 21:50:27.000000000 +0000 @@ -199,7 +199,7 @@ (GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT), GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, - error->message); + "%s",error->message); gtk_dialog_run(GTK_DIALOG(errMsg)); gtk_widget_destroy(errMsg); g_free(filename); @@ -282,7 +282,7 @@ (GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT), GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, - error->message); + "%s",error->message); gtk_dialog_run(GTK_DIALOG(warnDialog)); g_error_free(error); error = NULL; @@ -388,7 +388,7 @@ (GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT), GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, - error->message); + "%s",error->message); g_error_free(error); error = NULL; gtk_dialog_run(GTK_DIALOG(warnDialog)); Index: searchmonkey-0.8.1/src/misc.c =================================================================== --- searchmonkey-0.8.1.orig/src/misc.c 2007-02-05 22:55:51.000000000 +0000 +++ searchmonkey-0.8.1/src/misc.c 2011-11-10 21:57:26.000000000 +0000 @@ -424,7 +424,7 @@ GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, - msg); + "%s",msg); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); g_free(errorString); debian/patches/fix-crash.diff0000644000000000000000000001011512202032445013323 0ustar Origin: Mateusz Balbus Reviewed-by: Peter Blackman Description: Fix crash (x86_64) when clicking in left hand results pain Bug-Debian: http://bugs.debian.org/625643 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/searchmonkey/+bug/178701 Last-Update: 2013-05-20 Index: src/savestate.c =================================================================== --- searchmonkey-0.8.1.orig/src/savestate.c +++ searchmonkey-0.8.1.orig/src/savestate.c @@ -28,7 +28,7 @@ extern GtkWidget *mainWindowApp; /* Holds pointer to the main searchmonkey GUI. Declared in main.c */ extern GStaticMutex mutex_Data; /* Created in search.c to control access to search results data. */ extern GStaticMutex mutex_Control; /* Created in search.c to control access to search controls. */ - +extern gchar *gDirectory; /* Crated in main.c to store directory argument from command line */ /************************************************************** * Keyfile interface commands **************************************************************/ @@ -210,13 +210,21 @@ tmpCombo = GTK_COMBO_BOX(lookup_widget(widget, "lookIn")); g_assert(tmpCombo != NULL); - if (gtk_tree_model_get_iter_first(gtk_combo_box_get_model(tmpCombo), &iter) == FALSE) { + + // add row from command line + if (gDirectory != NULL) { + addUniqueRow(GTK_WIDGET(tmpCombo), gDirectory); + } else if (gtk_tree_model_get_iter_first(gtk_combo_box_get_model(tmpCombo), &iter) == FALSE) { addUniqueRow(GTK_WIDGET(tmpCombo), g_get_home_dir()); /* Set default look in folder */ } tmpCombo = GTK_COMBO_BOX(lookup_widget(widget, "lookIn2")); g_assert(tmpCombo != NULL); - if (gtk_tree_model_get_iter_first(gtk_combo_box_get_model(tmpCombo), &iter) == FALSE) { + + // add row from command line + if (gDirectory != NULL) { + addUniqueRow(GTK_WIDGET(tmpCombo), gDirectory); + } else if (gtk_tree_model_get_iter_first(gtk_combo_box_get_model(tmpCombo), &iter) == FALSE) { addUniqueRow(GTK_WIDGET(tmpCombo), g_get_home_dir()); /* Set default look in folder */ } @@ -1427,7 +1435,7 @@ gchar *tmpString2; GtkTextIter txtIter, tmpIter; GtkTextIter start, end; - gsize count, tmpCount; + gsize count = 0, tmpCount; guint matchIndex; gint i = 0; gint lineCount = 2; /* Heading, plus options (i.e. 2-lines) */ Index: src/main.c =================================================================== --- searchmonkey-0.8.1.orig/src/main.c +++ searchmonkey-0.8.1.orig/src/main.c @@ -20,7 +20,14 @@ GtkWidget *mainWindowApp = NULL; /* Holds pointer to the main window (global) */ gchar *gConfigFile = NULL; /* created by main(), destroyed by destroyGKeyFile() */ +gchar *gDirectory = NULL; /* directory parameter from command line */ +/* Command line arguments */ +static GOptionEntry entries[] = +{ + { "directory", 'd', 0, G_OPTION_ARG_FILENAME, &gDirectory, "Path do search directory", "DIRECTORY" }, + { NULL } +}; /* * Searchmonkey entry point */ @@ -28,12 +35,9 @@ { GdkPixbuf* pixBuf; gchar *tmpStr; + GOptionContext *context; + GError *error = NULL; - /* Initiate threads */ - g_thread_init (NULL); - gdk_threads_init (); - gdk_threads_enter (); - #ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); @@ -42,8 +46,18 @@ /* Handle GTK command line options and the locale settings */ gtk_set_locale (); - gtk_init (&argc, &argv); + // parse arguments + context = g_option_context_new ("- search files using regular expressions aiming to replace find/grep tools\n"); + g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE); + g_option_context_add_group (context, gtk_get_option_group (TRUE)); + g_option_context_parse (context, &argc, &argv, &error); + + /* Initiate threads */ + g_thread_init (NULL); + gdk_threads_init (); + gdk_threads_enter (); + /* Create main window, and load (create) ini config file */ add_pixmap_directory (PACKAGE_DATA_DIR "/pixmaps/" PACKAGE); /* New location for all pixmaps */ add_pixmap_directory (PACKAGE_DATA_DIR "/pixmaps"); /* Gnome users /usr/share/pixmaps folder */ debian/patches/build.diff0000644000000000000000000000270412202032445012543 0ustar Author: Varun Hiremath Last Modified: Sun, 11 Apr 2010 20:40:24 -0400 Description: Fix a broken symlink Index: searchmonkey/Makefile.am =================================================================== --- searchmonkey.orig/Makefile.am 2013-08-11 21:05:37.000000000 -0400 +++ searchmonkey/Makefile.am 2013-08-11 21:05:37.000000000 -0400 @@ -18,7 +18,6 @@ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \ fi \ done; \ - ln -sf $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE)/searchmonkey-48x48.png $(DESTDIR)$(datadir)/pixmaps/searchmonkey.png; \ fi dist-hook: Index: searchmonkey/Makefile.in =================================================================== --- searchmonkey.orig/Makefile.in 2013-08-11 20:26:22.000000000 -0400 +++ searchmonkey/Makefile.in 2013-08-11 21:05:50.000000000 -0400 @@ -218,7 +218,7 @@ stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h -$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ @@ -609,7 +609,6 @@ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \ fi \ done; \ - ln -sf $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE)/searchmonkey-48x48.png $(DESTDIR)$(datadir)/pixmaps/searchmonkey.png; \ fi dist-hook: debian/searchmonkey.desktop0000644000000000000000000000036112202032445013243 0ustar [Desktop Entry] Name=Searchmonkey Comment=Regular expression power search utility Exec=searchmonkey Icon=/usr/share/pixmaps/searchmonkey/searchmonkey-32x32.png Type=Application StartupNotify=false Terminal=false Categories=TextTools;Utility debian/manpages0000644000000000000000000000002612202032445010674 0ustar debian/searchmonkey.1 debian/searchmonkey.10000644000000000000000000002004512202032445011733 0ustar .TH SEARCHMONKEY 1 "September 12, 2006" .SH NAME SEARCHMONKEY \- search files using regular expressions aiming to replace find/grep tools .SH INTRODUCTION \fBsearchMonkey\fP is a GTK+ application designed to replace the find/grep command line tools. The aim of this utility it to provide fast, slick text search ability to the GTK community. .SH The User Interface This section describes every button, window, table and what it shows or does. .PP \fBThe Main-Menu\fP .SS .SS File Menu .SS .TP .B New Starts a brand new search (losing previous search history). .TP .B Open Criteria Opens a previously saved search criteria. .TP .B Close Close a child criteria window, but not the main application. .TP .B Save Criteria Saves a search criteria (excluding the results). .B Save Criteria As As Save Criteria, but brings up a save-as dialog. .TP .B Save Results Saves the results to a custom XML file. Only available when search complete. .TP .B Print Print the search results in a well formatted way. .TP .B Print Preview Brings up a display of what would have been printed. .TP .B Print Setup Brings up the system's printer setup dialog. .SS .SS Edit Menu .SS .TP .B Word Wrap When selected, allow the results text to wrap instead of keeping to strict lines. .TP .B Set Font Brings up a font dialog to adjust the results window base font. .TP .B Set Color Brings up a color selection dialog to adjust the highlight colour for the match results. .TP .B Clear History Remove search history from drop down criteria. .TP .B Select All Selects all file name matches in the left results pane. .TP .B Delete Deletes the selected file name(s) forever (once confirmed). .TP .B Copy Copies the selected file name(s) to clipboard. .SS .SS View Menu .SS .TP .B Toolbar If selected, the tool bar is shown. .TP .B Status Bar If selected, the status bar is shown. .TP .B Sort by Within sub-menu, choose sort criteria e.g. file name, file size, modified date. .SS .SS Search Menu .SS .TP .B Start Starts the search. .TP .B Stop Stops the search. Enabled when search is running. .TP .B One phase searching Allows content matches to be displayed immediately, instead of waiting for all files to be found. .TP .B Configuration Brings up application configuration dialog. .SS .SS Test Menu .SS .TP .B Reg. Expression Allows a regular expression to be entered, along with sample text as a way of checking that your expression returns the expected results. .SS .SS Window Menu .SS .TP .B SearchXX Allows quick switching between open search criteria/results windows. .TP .B Help Menu Description .TP .B User Guide Brings up this web address from your default browser .TP .B Support Brings up the searchMonkey support page from Sourceforge .TP .B About Brings up a dialog showing version number, license, and author's email. .SH The Toolbar Can be hidden from the main-menu (view->toolbar). .TP .B New Starts a brand new search (losing previous search history). .TP .B Open Opens a previously saved search criteria. .TP .B Save Saves a search criteria (excluding the results). .TP .B Save Results Saves the results to a custom XML file. Only available when search complete. .TP .B Play Start the search. .TP .B Stop Stop the search. Only available when search in progress. .TP .B Print Print the search results in a well formatted way. .TP .B Forums Starts a new browser instance to the searchMonkey Forums .SH The Advanced Search Tab Displayed when Expert User is enabled. .TP .B File Name Type a new regular expression for file name searching. .TP .B Containing Text Type a new regular expression for (text-only) contents searching. Disable this field with check button. .TP .B Expr. Wizard Brings up a regular expression helper dialog. Makes typing new regular expressions easier. .TP .B Look In Type a new starting location for search. Disable recurse directories with check button. .TP .B Open/Multi Brings up a folder search dialog. Multi allows multiple folders to be selected for expert searches. .TP .B More/Less Than Type a file size (in KBytes) to narrow searches to files less-than and/or more-than specified size. .TP .B More/Less Than Type a date expression (e.g. dd/mm/yyyy or dd mmm yyyy) to narrow searches to files modified before and/or after specified date. .SH The Options Tab Available at all times from the main screen. .TP .B Specifies Not Expression Inverts the search i.e. finds everything except your regular expression. Status bar shows [INV] to indicate inverted. .TP .B Match case When disabled allows case insensitive searching of file names and/or content. .TP .B Regular Expression When selected allows regular expressions to be used. .TP .B DOS Expression When selected allows file names to be found using DOS/Glob style pattern matching i.e. * and ?. .TP .B Open/Multi Brings up a folder search dialog. Multi allows multiple folders to be selected for expert searches. .TP .B More/Less Than Type a file size (in KBytes) to narrow searches to files less-than and/or more-than specified size. .TP .B More/Less Than Type a date expression (e.g. dd/mm/yyyy or dd mmm yyyy) to narrow searches to files modified before and/or after specified date. .SH File Name Results This pane is only filled when matches are found. Left clicking on a match will bring up content matches (displayed in the Context Results pane, if any), and right-clicking the row will bring up a sub-menu. .SS .SS Right Click Menu .SS .TP .B Open Opens the file name in your preferred text editor. See configuration. .TP .B Copy Copies the full file name into the clipboard for use elsewhere. .TP .B Delete Deletes the selected file forever, once confirmed. .TP .B Explore Opens your preferred file browser that contains the selected file .SH Context Results This pane is only filled when text matches are found, and a result has been selected. The line that matches the search expression will be shown in full, and the actual match text will be highlighted. Once text has been selected with the left-button, the right button will allow copy options, or select-all to be performed on the text. These allow text to be copied from the results window, and pasted elsewhere. .SH Advanced File Name and/or Contents Searching To find files, using regular expressions can be achieved by filling out the File Name and Look In boxes. The starting file name can be typed, copied or selected by using the Open dialog. To search a single folder, uncheck the Search Subfolders box. If you want to find a specific regular expression within a text file, then fill out the Containing Text box with a regular expression. Note: significantly less files are shown when Containing Text is added because binary files are skipped. For a more specific search, add in min/max file size, and the after/before modified date (if known). Once ready, press Play to start the search process. Results (if any) immediately start appearing in the File name results table, and once complete the total number of matches is shown in the status bar .SH Status Bar Describes what is currently going on. * Phase 1 searching is the gathering of files that match the filename, size and modified date criteria. * Phase 2 searching is the internal checking of text files to match the search strings. * Upon completion, the number of hits is displayed, along with whether this was an inverse filename search [inv] or [cancelled] by the user .SH Tips and Tricks This section gives examples of some cool things to do with searchMonkey. .SS .SS Regular Expressions .TP Some examples of regular expressions are given here: .TP .B (\\.[ch])$ Finds all of the C source code, plus headers. .TP .B ^(make) Finds every make file instance. .TP .B ^(void function_name)(;)$ Finds a function declaration, as opposed to the definition .TP .B \e([a-zA-Z0-9\es]+\e) Highlights all text within brackets .SH SearchMonkey User Guide Online To view the same guide in HTML please visit .SH AUTHOR This manual page was written by Varun Hiremath , for the Debian project (but may be used by others).