The current directory is always displayed at the top of the spy
window.
The current file is always highlighted in yellow within the spy
window.
The yellow high-light is also known as the cursor. You can move
the cursor within the spy window with the following keys:
J/ K Moves the cursor down or up a line.
H/ L Moves the cursor one column to the left or
right.
The search command moves the cursor move to a file that begins
with the letters you specify.
/ string
Enter
Typing / and a string selects the file that begins with
string. You can use standard unix wildcard characters to
perform pattern searches. For example, entering:
/ Scene1*.pic
Enter
we are telling the search to find "any name starting with
Scene1 and ending with .pic. This works because the *
character is a wildcard character meaning any number or
letters.
Similarly, we could tell the search to find *.txt
, in which
case spy would search for any file that ends with the letters
.txt.
There is a spy option to control search behavior. See
relaxSearch
.
Typing N moves the cursor to the next occurrence of a file
or directory whose name starts with the string specified in the
last search.
If there are more files in a directory than can be displayed in the
spy window, spy indicates it is displaying Page x of y. To flip
between these pages, use the keys:
Each directory can contain files and other directories. Use the
following keys to move down and up between directories.
-
D – If the file that is currently highlighted with the cursor
is a directory, typing D moves down into that directory.
For example, if you were in $HFS/houdini
and the cursor was on the file
sbin, you will then be in $HFS/houdini/sbin
after typing D.
-
U – Moves up one directory level, and enters the
enclosing directory.
For example, if you were in $HFS/houdini/sbin,
you will be in $HFS/houdini after typing U.
⇧ Shift + J Prompts you to jump to another directory. spy
displays a default directory name, which is the previous directory
you jumped from. There are now several choices. Do one of the
following:
-
Typing Enter goes to the displayed default directory.
-
Typing a directory name followed by the Enter key jumps to
that directory. For example, typing: $HFS/demo
Enter, jumps
to the $HFS/demo
directory.
-
Typing E re-displays the default directory, and allows you to
use the J and K keys to scroll through a list of
directories from which you have previously jumped. Type Enter
to jump to the displayed directory.
-
Typing a question mark (⇧ Shift + /) displays a list of
directories from which you have previously jumped. Use the J
and K keys to move down and up the list. Type Enter to
jump to the highlighted directory.
-
Type ⌫ Backspace at any time to abort the jump.
Jump not only allows jumping to a directory, but also to filenames
within the current directory or in another directory (the cursor is
moved to the file). Names differ from directories in that directory
names are preceded with a slash ( / ).
Environment variables can be used in pathnames, you may want to
set up environment variables to lessen the amount of typing
associated with long directory names. Instead of a directory
path, simply type the variable name. For example when performing
a jump (⇧ Shift + J), typing:
will jump to the directory containing the Houdini demo files.
Names of directories stored in environment variables can be
obtained by typing:
!printenv
Enter
In unix, each user has a special directory to store files called the
home directory. This is the directory which is usually displayed
when you first log in to your machine and start spy.
Typing ⇧ Shift + H takes you back to your home directory.
In unix, anywhere a pathname is requested, typing “~” will specify
your home directory. This can be used to rapidly get to any file or
subdirectory within your home directory. For example:
…enters the directory /MyFiles
which is in your home directory.
This can be used in conjunction with the jump command ( ⇧ Shift +
J) to jump back to your home directory.
To search multiple directories for a file, you need to use the unix
find
command. For example, typing:
!find /usr/staff/john -name "Jo*" -print
displays all the files beginning with Jo
that are contained within
any subdirectory of /usr/staff/john
. It is important to note that
the find
is case sensitive.