Control
Common grammars
Special grammars
 Excel
 Keystrokes
 Repeat
  Actions
  Searching
  Nederlands
 Latex
 Oops
Unimacro test

Actions needed for this Grammar

Searching:

The search uses actions, which can be specialised for different programs.

The basic action is SEARCH, which must be called with and action ('up' or 'down') and an optional text. The repeat grammar only uses the variant in which the optional text is NOT given. When inside the action SEARCH several detail actions are used for this case:

 
search forward (default <> followed by <>, but preferably overruled e.g. by {F3})
search back    (default not there, but overruled e.g. by {shift+f3})
 
leftafterforwardsearch n
leftafterbacksearch n

these last two variables take a count, which is the length of the search string. In most programs this count can be ignored, and both commands result in a simple {left}.

In emacs for example leftafterforwardsearch must do {left n}, and leftafterbacksearch must do nothing.

I can imagine the commands are extended with rigthafterforwardsearch and rigthafterbacksearch, in order to position the cursor after the search text.

See the sections on actions and link("/grammars/globalgrammars/general/index.html", "grammar general") for more details.