1XEDIT(1)                    General Commands Manual                   XEDIT(1)
2
3
4

NAME

6       xedit - simple text editor for X
7

SYNTAX

9       xedit [ -toolkitoption ... ] [ filename ... ]
10

DESCRIPTION

12       Xedit provides a window consisting of the following four areas:
13
14       Commands Section         A  set  of  commands  that  allow  you to exit
15                                xedit, save the file, or load a new file  into
16                                the edit window.
17
18       Message Window           Displays  xedit  messages.  In  addition, this
19                                window can be also used as a scratch pad.
20
21       Filename Display         Displays the name of the file currently  being
22                                edited, and whether this file is Read-Write or
23                                Read Only.
24
25       Edit Window              Displays the text of the  file  that  you  are
26                                editing or creating.
27

OPTIONS

29       Xedit  accepts  all of the standard X Toolkit command line options (see
30       X(7)).  The order of the command line options is not important.
31
32       filename
33               Specifies the file(s) that are to be  loaded  during  start-up.
34               This  is the file which will be edited. If a file is not speci‐
35               fied, xedit lets you load files or create new  files  after  it
36               has started up.
37

EDITING

39       The  Athena Text widget is used for the three sections of this applica‐
40       tion that allow text input.  The characters typed will go to  the  Text
41       widget  that  has  the input focus, or the Text widget that the pointer
42       cursor is currently over.
43
44       The following keystroke combinations are defined:
45
46
47       Ctrl-a                 Beginning Of Line
48       Meta-b                 Backward Word
49       Ctrl-b                 Backward Character
50       Meta-f                 Forward Word
51       Ctrl-d                 Delete Next Character
52       Meta-i                 Insert File
53       Ctrl-e                 End Of Line
54       Meta-k                 Kill To End Of Paragraph
55       Ctrl-f                 Forward Character
56       Meta-q                 Form Paragraph
57       Ctrl-g                 Keyboard Reset
58       Meta-v                 Previous Page
59       Ctrl-h                 Delete Previous Character
60       Meta-y                 Insert Current Selection
61       Ctrl-j                 Newline And Indent
62       Meta-z                 Scroll One Line Down
63       Ctrl-k                 Kill To End Of Line
64       Meta-d                 Delete Next Word
65       Ctrl-l                 Redraw Display
66
67       Meta-D                 Kill Word
68       Ctrl-m                 Newline
69       Meta-h                 Delete Previous Word
70       Ctrl-n                 Next Line
71       Meta-H                 Backward Kill Word
72       Ctrl-o                 Newline And Backup
73       Meta-<                 Beginning Of File
74       Ctrl-p                 Previous Line
75       Meta->                 End Of File
76       Ctrl-r                 Search/Replace Backward
77       Meta-]                 Forward Paragraph
78       Ctrl-s                 Search/Replace Forward
79       Meta-[                 Backward Paragraph
80       Ctrl-t                 Transpose Characters
81       Ctrl-u [number]        Multiply by 4 or number
82       Meta-Delete            Delete Previous Word
83       Ctrl-v                 Next Page
84       Meta-Shift Delete      Kill Previous Word
85       Ctrl-w                 Kill Selection
86       Meta-Backspace         Delete Previous Word
87       Ctrl-y                 Unkill
88       Meta-Shift Backspace   Kill Previous Word
89       Ctrl-z                 Scroll One Line Up
90       Meta-z                 Scroll One Line Down
91       Ctrl-_                 Undo
92       Escape                 Line Edit Mode
93
94       In addition, the pointer may be used to cut and paste text:
95
96       Button 1 Down     Start Selection
97       Button 1 Motion   Adjust Selection
98       Button 1 Up       End Selection (cut)
99
100       Button 2 Down     Insert Current Selection (paste)
101
102       Button 3 Down     Extend Current Selection
103       Button 3 Motion   Adjust Selection
104       Button 3 Up       End Selection (cut)
105
106
107

LINE EDIT MODE

109       Line edit mode enables several  shortcut  commands  for  searching  and
110       replacing  text  in  a  xedit buffer.  Line edit mode commands have the
111       format:
112
113                      [line-number[,line-number]]command[parameters]
114
115       Line number may be specified as:
116
117       .       The current text line.
118
119       $       The last line of the file.
120
121       number  The literal line number.
122
123       - or ^  The previous line. Equivalent to -1.
124
125       -number or ^number
126               The current line minus number.
127
128       +       The next line. Equivalent to +1.
129
130       +number The current line plus number.
131
132       , or %  From the first to the last line. Equivalent to 1,$.
133
134       ;       From the current to the last line. Equivalent to .,$.
135
136
137       Command may be specified as:
138
139       s       Substitute text in the specified lines.
140
141       /re/    Search forward for the regular expression pattern re.
142
143       ?re?    Search backward for the regular expression pattern re.
144
145
146       Parameters may be specified as:
147
148       /re/    Works as a parameter to i or as a command.
149
150       /re/text/
151               Search forward for re and substitute by text.
152
153
154       Options may follow or be parameters, known values are:
155
156       i       Case insensitive search.
157
158       g       Global match when replacing text. Unless  specified,  only  the
159               nth, that defaults to 1, match will be replaced.
160
161       c       Confirm before replacing text.
162
163       number  Replace only the occurrence referenced by number.
164
165       Commands accept some variations, examples:
166                      /pattern/i
167                      i/pattern/
168                      i/pattern
169       Search forward for pattern.
170
171                      ,sc/pattern/text
172                      ,sc/pattern/text/
173                      ,s/pattern/text/c
174       Search  the  entire buffer and ask confirmation to replace pattern with
175       text.
176
177                      ,s/pattern/text/number
178       Replace the match number in the text line. If not  specified,  defaults
179       to the first occurrence.
180
181
182       When  searching  for text, type <Return> to go to the next match.  When
183       interactively replacing text, type y or Y to accept the change,  and  n
184       or N to ignore it and go to the next match.
185
186

COMMANDS

188       Quit    Quits the current editing session. If any changes have not been
189               saved, xedit displays a warning message, allowing the  user  to
190               save them.
191
192       Save    If file backups are enabled (see RESOURCES, below) xedit stores
193               a copy of the original, unedited file in  <prefix>file<suffix>,
194               then  overwrites the file with the contents of the edit window.
195               The filename is retrieved from the Text widget directly to  the
196               right of the Load button.
197
198       Load    Loads  the  file  named  in  the text widget immediately to the
199               right of the this button and displays it in the Edit window.
200

RESOURCES

202       For xedit the available resources are:
203
204       tagsName (Class TagsName)
205               Specifies the name of the tags file to search  when  loading  a
206               new file.  Default value is tags.
207
208       loadTags (Class LoadTags)
209               Boolean  value to enable or disabling searching for tags files.
210               Default is True.
211
212       enableBackups (Class EnableBackups)
213               Specifies that, when edits made to an existing file are  saved,
214               xedit  is  to  copy  the original version of that file to <pre‐
215               fix>file<suffix> before it  saves  the  changes.   The  default
216               value  for this resource is ``on,'' stating that backups should
217               be created.
218
219       backupNamePrefix (Class BackupNamePrefix)
220               Specifies a string that is to be prepended to the backup  file‐
221               name.  The default is that no string shall be prepended.
222
223       backupNameSuffix (Class BackupNameSuffix)
224               Specifies  a  string that is to be appended to the backup file‐
225               name.  The default is to use ``~'' as the suffix.
226
227       positionFormat (Class Format)
228               Specifies a format string used to display the cursor  position.
229               This  string  uses printf(3) like notation, where %l prints the
230               line number, %c prints the column number, %p prints the  insert
231               position  offset,  and  %s prints the current file size.  It is
232               also  allowed  to  specify  field  sizes,  with  the   notation
233               %-?[0-9]+  .  The default format string is ``L%l'', which shows
234               the character ``L'' followed by the line number.
235
236       hints (Class Hints)
237               Specifies a list of strings, separated by new lines, that  will
238               be displayed in the bc_label window.
239
240       hintsInterval (Class Interval)
241               Specifies the interval in seconds, which the hint string in the
242               bc_label window will be changed.
243
244       changedBitmap (Class Bitmap)
245               Specifies the name of the Bitmap that will be displayed in  the
246               fileMenu, when the file being edited is changed.
247
248       autoReplace (Class Replace)
249               This  resource  is  useful to automatically correct common mis‐
250               spelling errors, but can also be used to create simple  macros.
251               The  format is {non-blanks}{blanks}[{string}]. Fields are sepa‐
252               rated by newlines.  Example of use:
253
254               nto              not\n\
255               /macro some long string with \\\n newlines \\\n
256
257               Will automatically replace the word nto by not, and  /macro  by
258               some long string with
259                newlines when you type that words.
260
261       ispell.dictionaries (Class ispell.Dictionary)
262               Specifies  a  list  of  dictionary  names, separated by spaces,
263               available to the ispell program. The default value is "american
264               americamed+ english".
265
266       ispell.dictionary (Class ispell.Dictionary)
267               Specifies the default dictionary to use.
268
269       ispell*<DICTIONARY>.wordChars (Class ispell*Chars)
270               Specifies a set of characters that can be part of a legal word.
271               The <DICTIONARY> field is one of the dictionaries specified  in
272               the dictionaries resource.
273
274       ispell.ispellCommand (Class ispell.CommandLine)
275               The  path to the ispell program, and possibly, additional argu‐
276               ments. You don't need to specify the ``-w'' option, neither the
277               ``-a''  option.  Refer to the ispell(1) manpage for more infor‐
278               mation on ispell options.
279
280       ispell.formatting (Class ispell.TextFormat)
281               Specifies which text formatting to use while spell checking the
282               file. The available formats are text and html.
283
284       ispell*text.skipLines (Class ispell*text.Skip)
285               Lines  starting  with one of the characters in this string will
286               not be spell checked. This resource is only used in text mode.
287
288       ispell.terseMode (Class ispell.Terse)
289               When enabled, runs ispell in terse mode, not asking user inter‐
290               action  for  words  generated  through compound formation (when
291               using the ispell ``-C'' option),  or  words  generated  through
292               affix removal. The default value is False.
293
294       ispell.lookCommand (Class ispell.CommandLine)
295               The path to the program to search for alternate words, and pos‐
296               sibly,  additional  arguments.  The  default  program  used  is
297               /usr/bin/egrep.
298
299       ispell.wordsFile (Class ispell.Words)
300               The  path  to  the  file[s]  to search for alternate words. The
301               default file is /usr/share/dict/words.
302
303       ispell.guessLabel (Class ispell.Status)
304               String displayed in the ispell status bar when ispell returns a
305               guess list of one or more words. The default value is Guess.
306
307       ispell.missLabel (Class ispell.Status)
308               String displayed in the ispell status bar when ispell returns a
309               list of one or more  words  to  match  a  misspelled  one.  The
310               default value is Miss.
311
312       ispell.rootLabel (Class ispell.Status)
313               String  displayed in the ispell status bar when the word is not
314               in the dictionary, but it can be formed through a root one. The
315               default value is Root:, and is followed by a space and the root
316               word.
317
318       ispell.noneLabel (Class ispell.Status)
319               String displayed in the ispell status bar when there is no near
320               misses. The default value is None.
321
322       ispell.compoundLabel (Class ispell.Status)
323               String  displayed  in the ispell status bar when the word being
324               checked is formed by concatenation of two  words.  The  default
325               value is Compound.
326
327       ispell.okLabel (Class ispell.Status)
328               String displayed in the ispell status bar when the checked word
329               is in the dictionary.  This string is only displayed when using
330               the  check  button  in  the xedit ispell interface. The default
331               value is Ok.
332
333       ispell.eofLabel (Class ispell.Status)
334               The string displayed in the ispell status bar when the  end  of
335               the file is reached.  The default value is End Of File.
336
337       ispell.repeatLabel (Class ispell.Status)
338               The  string displayed in the ispell status bar when two identi‐
339               cal words are found together in the file. The default value  is
340               Repeat.
341
342       ispell.lookLabel (Class ispell.Status)
343               The  string displayed in the ispell status bar after displaying
344               the results of the Look command. If no results are  found,  the
345               value of the ispell.noneLabel resource is shown.
346
347       ispell.workingLabel (Class ispell.Status)
348               The  string  displayed  in the ispell status bar while xedit is
349               communicating with ispell. The default value is ....
350

WIDGETS

352       In order to specify resources, it is useful to know  the  hierarchy  of
353       the  widgets  which  compose xedit.  In the notation below, indentation
354       indicates hierarchical structure.   The  widget  class  name  is  given
355       first, followed by the widget instance name.
356
357       Xedit  xedit
358               Paned  paned
359                       Paned  buttons
360                               Command  quit
361                               Command  save
362                               Command  load
363                               Text     filename
364                       Label  bc_label
365                       Text   messageWindow
366                       Label  labelWindow
367                       Text   editWindow
368
369

ENVIRONMENT

371       DISPLAY             to get the default host and display number.
372
373       XENVIRONMENT        to  get  the name of a resource file that overrides
374                           the global resources stored in the RESOURCE_MANAGER
375                           property.
376

FILES

378       /usr/share/X11/app-defaults/Xedit
379                           specifies required resources
380

SEE ALSO

382       X(7), xrdb(1), Athena Widget Set
383

RESTRICTIONS

385       Xedit is not a replacement to Emacs.
386
388       Copyright 1988, Digital Equipment Corporation.
389       Copyright 1989, X Consortium
390       Copyright 1998, The XFree86 Project
391       See X(7) for a full statement of rights and permissions.
392

AUTHORS

394       Chris D. Peterson, MIT X Consortium
395       Paulo Cesar Pereira de Andrade, The XFree86 Project
396
397
398
399X Version 11                      xedit 1.2.2                         XEDIT(1)
Impressum