Linux.com

Feature

Searchmonkey balances command-line power and desktop ease of use

By Bruce Byfield on November 06, 2006 (8:00:00 AM)

Share    Print    Comments   

Searchmonkey, formerly known as Xsearch, is a graphical search tool whose main page describes it as the combining of Beagle's simplicity of use with the exactness of the find and grep commands. With its recent release of version 0.6.2, Searchmonkey has yet to fully match any of these rivals, but shows considerable promise, especially in its potential for encouraging users to explore and learn regular expressions.

According to the documentation, Searchmonkey is supposed to come in basic and expert user modes, but the Debian package installs with the check box for expert user mode already selected and grayed out. However, since the basic user mode apparently lacks support for regular expressions, it sounds roughly comparable to the Find applet for the GNOME panel -- that is, useful, but nothing unusual -- so users are probably not missing much. At any rate, the expert user mode is what makes Searchmonkey worth watching.

Searchmonkey
Searchmonkey - click to enlarge

Compared to Beagle, Searchmonkey in expert mode is unaesthetic, and may be even overwhelmingly cluttered for inexperienced users at first. However, a closer look reveals a greater functionality. At the top of the window, users enter the text and regular expressions for a search, and can choose a selection of find and grep options, such as the directory in which to start the search, whether to include subfolders, and files' size and last modification times. Search results are displayed below, with file results on the left and text matches within the currently selected file on the right. This arrangement of results is noticeably easier to browse than Beagle's single-pane results. From a file result's right-click window, you can open the file in a text editor or a file manager of your choice -- or "file explorer," as Searchmonkey calls it for some reason -- or delete it from the hard drive. From the main menu, you can also save search results for later user.

Searchmonkey has fewer options than either find or grep, but greater ease of use. Unlike find, it has yet to include options for following symbolic links, setting the directory depth, or designating the file type in the search; unlike grep, it does not allow control of the number of lines before or after that are displayed, or allow binary files to be searched as though they were text. However, Searchmonkey does have a reasonable selection of controls, such as making a search case-specific or setting excluded text, even if the controls are, for no functional reason, divided between the Options tab and the pair of expression wizards available in the top page.

The expression wizards are the strongest feature of Searchmonkey. With one for file names and another for context text, Searchmonkey's wizards open the possibilities of regular expressions to even novice users by allowing them to make choices from a series of drop-down lists. In fact, by making changes to the drop-down lists and observing the differences in the Resulting Expression field at the bottom of the wizard, users can actually teach themselves more about regular expressions. Later, as their comfort grows, they can use the dialogue in the test menu to test the regular expressions that they construct for themselves. Since regular expressions are one of the advantages that tend to be lost in the migration from the command line to the desktop, the usefulness and precision that these wizards make possible can hardly be overestimated. Even experienced users may find that exploring the wizards adds to their knowledge.

Some features, such as printing, have yet to be implemented in Searchmonkey. For modern desktop use, it also needs to be able to search for hidden files, and for contents within files in such formats as OpenOffice.org and PDF.

Still, even in its unfinished state, Searchmonkey is worth a look, if only because it runs counter to some of the most common faults in desktop applications. Too often, desktop translations of command-line tools either represent a loss of power and flexibility, especially for anything more than the most basic of functions, or offer an interface in which the attempt to include everything produces a confusing clutter. The development of Searchmonkey seems an attempt to find a balance between these two extremes. In the current version, that balance is sometimes tenuous or not quite right, but the intent to find it is obvious. I suspect that when Searchmonkey reaches its 1.0 release, it will find its way onto a lot of desktops, including mine.

Bruce Byfield is a computer journalist who writes regularly for Linux.com.

Share    Print    Comments   

Comments

on Searchmonkey balances command-line power and desktop ease of use

Note: Comments are owned by the poster. We are not responsible for their content.

No good?

Posted by: Anonymous Coward on November 07, 2006 12:03 AM
I don't see what its good for. Regular expressions are useful when parsing text, but I don't see what good they are when searching for files, regular wildcards like '?' and '*' should be good enough for pretty much anything, or?

Eitherway, an interesting addition to it might be syntax highlighting for the regex.

#

Re:No good?

Posted by: Anonymous Coward on November 07, 2006 07:07 AM
From the searchMonkey website

A fast real-time search engine for displaying regular expression matches (both file name and content) across multiple directories.

So searchMonkey does search for files and content.

#

Re:No good?

Posted by: Anonymous Coward on November 16, 2006 06:57 AM
You are correct in stating that regular expressions are overkill for filename matching - it was always my intention to add glob searching to the filename box, but it was quicker to use regular expressions for both.

That said, you can do some pretty clever things with regular expressions, such as search for three specific base file names (e.g. "test|orThis|ThatToo") which would take three separate searches in the glob world!

Look out for revision 0.8.x as it will allow filename wildcards!

#

Searchmonkey does not index files

Posted by: Anonymous Coward on November 07, 2006 04:02 PM
The comparison with Beagle seems somewhat inappropriate... or biased. Beagle can be much quicker than Searchmonkey for queries in a huge set of files because it uses an index, updated as often as possible (as a matter of fact : as soon as a file modification is detected).

#

Re:Searchmonkey does not index files

Posted by: Anonymous Coward on November 16, 2006 06:51 AM
I agree that Beagle will always be much quicker, and when it works correctly should always be able to index files as soon as they are updated, but in practice I find that I cannot be sure that recently modified files will always be indexed when I search.

In addition, if I search for obscure - programming related - searches, then Beagle does not always find them as it can only index things that it is expecting.

Lastly, Beagle tends to return too many hits! Especially when you are searching for a very specific line of text.

That's not to say that searchmonkey is better, because its not, but I believe they both address different search markets.

On my system, I use Beagle to quickly find emails, PDFs and Web Sites that I thought were lost. When it comes to software development, I use searchmonkey as it will only find exactly what I am looking for!

#

A response from the coder!

Posted by: Anonymous Coward on November 14, 2006 04:08 AM
Hi, and thank you for taking the time to review and discuss searchmonkey, its not often that coders get to see the views and opions of the Linux community.

I wrote searchmonkey to help me with my day job (embedded linux), as coming from the Window's world I missed having a quick method of "power searching" through code.

Whilst I do make comparison to Beagle, I am not trying to make another version - searchmonkey aims to search the old fashioned way, which is perfect for software that is constantly changing.

Keep making your views, opions, and critisisms here, and I'll try to keep the software in line with your requiments and expectations!

Kind regards,
Adam Cottrell - searchmonkey.sf.net

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya