The Tycho Glimpse browser uses the glimpse
program to search
the sources for patterns. glimpse
is a binary that is not
shipped with the Tycho sources, you can get glimpse
sources from
http://glimpse.cs.arizona.edu.
In Tycho, $TYCHO/makefile contains
a glimpse
rule that will update $TYCHO/.glimpse_index
if glimpse
is installed.
Note that the Glimpse browser uses the tcl exec
command, which is unavailable on the Macintosh, so the Glimpse browser
is not present on that platform. Note further that we have not tested
the Glimpse browser under Windows.
If your Tycho distribution is located in a directory with a
pathname that includes a space, then the glimpseindex
command may fail. The workaround is to move Tycho to a pathname that
does not include a space.
The Glimpse browser is a window that prompts for a pattern to search
for. Clicking the Find
button passes the pattern to the
glimpse
binary and then places the output into a Tycho
index browser.
If you click on the entry in the index browser, an editor is opened at the
line where the pattern matched.
If $PTOLEMY/src/.glimpse_index
is exists, then two
additional buttons are created, one to set the glimpse_index
to $PTOLEMY/src/.glimpse_index
, one to set it to
$TYCHO/.glimpse_index
The Update Tycho DB
button will run make glimpse
for you, and update $TYCHO/.glimpse_index
.