JED(6)
NAME
jed − Jot EDitor for TNT with a textedit feel and styled text
SYNOPSIS
jed [ generic-tool-arguments ] [ -s pointsize ] [ -p ] filename ]
DESCRIPTION
jed is a mouse-based text editor similar to textedit(1) from OpenWindows. In addition, jed has the ability to apply different styles to arbitrary spans of text. This includes changing fonts, the text color, underline, pointsize, bold, italic, etc. jed can display variable with fonts and do full justification. Finally it is possible to print documents created in jed.
OPTIONS
generic-tool-arguments
jed accepts most of the generic tool arguments described in the Reference Manual.
-s specify the pointsize to use instead of the default 13 point font
-p force a JED package reload (for debugging).
BASIC USAGE
You fire up jed with a file name, and it displays the file for editing. If the file was previously saved by jed with styled information in it, jed will read that style information by default. Text is inserted and deleted in the same way as in textedit. Insert characters by typing them and they will appear at the caret. To delete characters press the delete key.
jed has a different idea of what undo means than textedit. The way undo works is by keeping a history of editing operations. To undo an insertion the corresponding deletion is performed. To undo a deletion, the deleted characters are reinserted. Undoing an operation can be thought of as going backward in time through the edit history. Redoing can be thought of as going forward in time, or back to the future. Once back in time, starting new editing operations will erase the future. jed remembers the last 50 edit operations. In jed, consecutive insertions are grouped into a single undoable operation. The same goes for consecutive deletions. When a new file is loaded, the edit history is erased and a new one is started.
Many of the keyboard commands for moving the caret available in textedit are not available in jed. Where jed does allow keyboard commands, they are often similar to the EMACS command set. All the commands that jed knows about have long names. Below is a list of all the built-in commands and their default key bindings.
backward-character^B, Left Arrow
beginning-of-fileESC <
beginning-of-line^A
delete-backwardDelete
delete-forward^D
delete-word-backwardESC Delete
delete-word-forwardESC D/d
end-of-fileESC >
end-of-line^E
execute-kbd-macro^X^E
forward-character^F, Right Arrow
insert-newline^M
load-fileESC L
next-line^N, Down Arrow
previous-line^P, Up Arrow
redo^R
save-current-file^X^S
self-insert<printable characters>
start-remembering^X(
stop-remembering^X)
undo^U
write-file^X^W
print^X^P
In addition to the command names, there are also some variables. These variables can be set in your ~/.miterc (see below). They are:
fontdefault font to use
font-sizesize of the default font
STYLE USAGE
Right now the only interface to making style changes is to make a selection, and then bring the Font Attributes popup (from the Styles menu) and play with the current settings. When you have some settings you like, you can simply hit the Apply key and it will make the selection have those attributes. If you want to see what the current attributes are for a given position, move the caret to that position and press the Reset button and the popup window will update itself.
If you apply a style and change your mind, just hit the UNDO key (or type ^U). If you decide that you rather liked it, type the AGAIN key (or ^R) which means redo. jed will remember the last 50 major operations, so you can play around with the undo history and watch how it works with styles. It’s pretty neat.
CUSTOMIZATION
jed will read a file called .miterc in your home directory if it exists. Your .miterc file will contain commands to set the value of some variables or bind some commands to arbitary key sequences. Here’s an example:
set font Helvetica
set font-size 16
bind forward-character ^[[C
This is fairly primitive right now, so make sure your line does not begin with white space. The "^[[C" is actually 4 characters in your .miterc: ’^’ ’[’ ’[’ ’C’. jed parses this and turns it into the three characters ’ESC’ ’[’ ’C’ which is what a lot of terminal emulators generate when you type the right arrow key. The key bindings can be arbitrary key sequences so you should have no problem binding commands to the Sun function keys.
The file is called .miterc because some time in the future all this work might appear in a program called mite.
BUGS
Right now there are boundery conditions that make using the styles somewhat painful. If you are at the either end of a style and start typing, the new text will not have those attributes. The only way to make that work is by starting your typing some place in the middle of the style, or one character in from either end.
Rulers exist but there is no UI to define a new ruler, or insert an existing one into the document.
jed is having a hard time deciding between being a textedit replacement and being a simple document editor.
There are no user defined tabstops, so using jed to line up columns is a pain.
FILES
~/.miterc personal customization file.
SEE ALSO
textedit(1) to get a general idea of what to expect from jed.
The NeWS Toolkit Reference Manual
NeWS 2.1 Programmer’s Guide
OPEN LOOK Graphical User Interface Functional Specification
NOTES
NeWS is a trademark of Sun Microsystems, Inc.
OPEN LOOK is a trademark of AT&T.
OpenWindows 3.0 — Last change: 8 Mar 1991