Home | Mailing List | Installation | Source Code | Bugs | Screenshots

Diggler 0.9 supports a new feature - user defined tools.

Tools are a way for you to add your own menu items to the Diggler drop down. Each tool consists of:

  1. A name (that can also be the menu label)
  2. A regular expression pattern to match against
  3. An action to perform when the URL matches the regular expression

For example, if you want to see how many sites link to the current URL, you could create a tool by going into the Diggler Options dialog, clicking Add... and entering:

  1. "Search for links using Google" as the name
  2. "^http://(+*)$" as the pattern
  3. "$1&btnG=Search" as the action

The pattern is what you want to match against. In this case the pattern matches against any URL beginning with "http://". The action is the URL you wish to load when the pattern fires. In this case the action contains a $1. The $1 is replaced by the bracketed section of the regular expression. e.g. if the URL was then $1 would contain

If the current URL does not match the regular expression (e.g. the address begins with ftp:// when the expression is matching against http://), the tool is not shown in the menu. So the pattern also acts as the context that hides or shows the menu item.

For more info regular expressions, see some of the links at the bottom of this page.

The Diggler tool dialog has a combo which includes some commonly used patterns

Your action may also expand out of specific parts of the original URL, by using these macros:

So for example, the action "javascript:alert("Your domain was $h")", applied to would display "Your domain was".


The diggler project can be contacted through the mailing list or the member list.
Copyright © 2000-2019. All rights reserved. Terms of Use & Privacy Policy.