SeX allows you to mark logical places in the file. The mark will move with text as the file is edited. There are ten independent marks, though only five are accessible via the Edit menu; the other marks need to be used via the keyboard (see Command summary, Chapter 4). The marks are not remembered the next time you edit the same file.
You set a mark, and then you can go to it. There is no visible feedback of where the marks are. To find out where a mark is, go to it.
Marks are useful when you often need to go to certain places, or when you need
to check some other part of the file, and then return back to where you where.
This chapter will explain the special features of pasting into menu buttons.
Some of the names of the menus on the menu bar at the top of the window are special: you can paste some text into them, and SeX will do something useful with the text. The special buttons are:
All of these actions can be done traditionally via the menus, but the shortcuts
make some common operations faster.
The Pipe entry in the Edit menu allows you to filter the selected text
through a Unix command. It pops up a dialog box, where you can enter any valid
command line for the /bin/sh
shell. The selected text will be the
standard input of the command. The text will be replaced with the standard
output of the command.
This could be used to sort lines, to convert tabs to spaces, or to remove lines
that match some pattern. The possibilities are endless.
Key bindings are configured via X resources, using the usual syntax. You need to be careful with the order, when binding to sequences of keys.
The following list describes all actions that can be bound to events (keys, usually) via X resources. At the moment, the list is rather incomplete.
SeX reads the configuration file ~/.sexrc when it starts up. This file can define various variables. The general syntax is
variablename = value
Comments and empty lines are allowed. Comments begin with `#' and continue to the end of the line. Each variable has one of the following types:
If the configuration file tries to assign the wrong kind of value to a variable, SeX will not start. The variables that can be defined are (the type is indicated inside parentheses):
It is not necessary to assign all variables, but SeX will not start if you have
invalid variables.
liw@iki.fi