XEDIT(1)
π NAME π
okay bestie, this is XEDIT(1) from the General Commands Manual β literally the page for xedit, the simple text editor for X. Thatβs the whole name-and-vibe situation. π
β¨ SYNTAX β¨
The synopsis is exactly this:
xedit [ -toolkitoption ... ] [ filename ... ]
π¦ DESCRIPTION π¦
Xedit gives you one window with these four areas, and yes, youβre gonna know all of them:
- Commands Section β a set of commands that allow you to exit
xedit, save the file, or load a new file into the edit window. - Message Window β displays
xeditmessages. In addition, this window can also be used as a scratch pad. - Filename Display β displays the name of the file currently being edited, and whether this file is Read-Write or Read Only.
- Edit Window β displays the text of the file that you are editing or creating.
πΈ OPTIONS πΈ
xedit accepts all of the standard X Toolkit command line options (see X(7)). The order of the command line options is not important β cute, right? β¨
filenameβ Specifies the file(s) that are to be loaded during start-up. This is the file which will be edited. If a file is not specified,xeditlets you load files or create new files after it has started up.
π EDITING π
The Athena Text widget is used for the three sections of this application that allow text input. The characters typed will go to the Text widget that has the input focus, or the Text widget that the pointer cursor is currently over. Focus era. β¨
The following keystroke combinations are defined:
Ctrl-aβ Beginning Of LineMeta-bβ Backward WordCtrl-bβ Backward CharacterMeta-fβ Forward WordCtrl-dβ Delete Next CharacterMeta-iβ Insert FileCtrl-eβ End Of LineMeta-kβ Kill To End Of ParagraphCtrl-fβ Forward CharacterMeta-qβ Form ParagraphCtrl-gβ Keyboard ResetMeta-vβ Previous PageCtrl-hβ Delete Previous CharacterMeta-yβ Insert Current SelectionCtrl-jβ Newline And IndentMeta-zβ Scroll One Line DownCtrl-kβ Kill To End Of LineMeta-dβ Delete Next WordCtrl-lβ Redraw DisplayMeta-Dβ Kill WordCtrl-mβ NewlineMeta-hβ Delete Previous WordCtrl-nβ Next LineMeta-Hβ Backward Kill WordCtrl-oβ Newline And BackupMeta-<β Beginning Of FileCtrl-pβ Previous LineMeta->β End Of FileCtrl-rβ Search/Replace BackwardMeta-]β Forward ParagraphCtrl-sβ Search/Replace ForwardMeta-[β Backward ParagraphCtrl-tβ Transpose CharactersCtrl-u [number]β Multiply by 4 or numberMeta-Deleteβ Delete Previous WordCtrl-vβ Next PageMeta-Shift Deleteβ Kill Previous WordCtrl-wβ Kill SelectionMeta-Backspaceβ Delete Previous WordCtrl-yβ UnkillMeta-Shift Backspaceβ Kill Previous WordCtrl-zβ Scroll One Line UpMeta-zβ Scroll One Line DownCtrl-_β UndoEscapeβ Line Edit Mode
Yes, Meta-z is listed twice in the original. I didnβt invent it; Iβm just reporting the lore. π
In addition, the pointer may be used to cut and paste text:
Button 1 Downβ Start SelectionButton 1 Motionβ Adjust SelectionButton 1 Upβ End Selection (cut)Button 2 Downβ Insert Current Selection (paste)Button 3 Downβ Extend Current SelectionButton 3 Motionβ Adjust SelectionButton 3 Upβ End Selection (cut)
π§ LINE EDIT MODE π§
Line edit mode enables several shortcut commands for searching and replacing text in a xedit buffer. Line edit mode commands have the format:
[line-number[,line-number]]command[parameters]
Line number may be specified as:
.β The current text line.$β The last line of the file.numberβ The literal line number.-or^β The previous line. Equivalent to-1.-numberor^numberβ The current line minusnumber.+β The next line. Equivalent to+1.+numberβ The current line plusnumber.,or%β From the first to the last line. Equivalent to1,$.;β From the current to the last line. Equivalent to.,$.
Command may be specified as:
sβ Substitute text in the specified lines./re/β Search forward for the regular expression patternre.?re?β Search backward for the regular expression patternre.
Parameters may be specified as:
/re/β Works as a parameter toior as a command./re/text/β Search forward forreand substitute bytext.
Options may follow or be parameters, known values are:
iβ Case insensitive search.gβ Global match when replacing text. Unless specified, only thenth match β andndefaults to1β will be replaced.cβ Confirm before replacing text.numberβ Replace only the occurrence referenced bynumber.
Commands accept some variations, examples:
/pattern/i
i/pattern/
i/pattern
Search forward for pattern.
,sc/pattern/text
,sc/pattern/text/
,s/pattern/text/c
Search the entire buffer and ask confirmation to replace pattern with text.
,s/pattern/text/number
Replace the match number in the text line. If not specified, defaults to the first occurrence.
When searching for text, type <Return> to go to the next match. When interactively replacing text, type y or Y to accept the change, and n or N to ignore it and go to the next match. iykyk. π«Ά
π COMMANDS π
Quitβ Quits the current editing session. If any changes have not been saved,xeditdisplays a warning message, allowing the user to save them.Saveβ If file backups are enabled (see RESOURCES, below)xeditstores a copy of the original, unedited file in<prefix>file<suffix>, then overwrites the file with the contents of the edit window. The filename is retrieved from the Text widget directly to the right of the Load button.Loadβ Loads the file named in the text widget immediately to the right of this button and displays it in the Edit window.
π RESOURCES π
okay bestie, for xedit the available resources are:
tagsName(ClassTagsName) β says what tags file to search when you load a new file. Default value istags.loadTags(ClassLoadTags) β boolean that enables or disables searching for tags files. Default isTrue.enableBackups(ClassEnableBackups) β when edits to an existing file get saved,xeditcopies the original version to<prefix>file<suffix>before saving the changes. The default value ison, stating that backups should be created. protective icon behavior π«ΆbackupNamePrefix(ClassBackupNamePrefix) β a string to prepend to the backup filename. Default is that no string shall be prepended.backupNameSuffix(ClassBackupNameSuffix) β a string to append to the backup filename. Default is to use~as the suffix.positionFormat(ClassFormat) β format string for displaying the cursor position. It usesprintf(3)-like notation:%lprints the line number,%cprints the column number,%pprints the insert position offset, and%sprints the current file size. You can also specify field sizes with%-?[0-9]+. Default format string isL%l, which showsLfollowed by the line number.hints(ClassHints) β a list of strings, separated by new lines, displayed in thebc_labelwindow. little rotating lore drops β¨hintsInterval(ClassInterval) β interval in seconds at which the hint string in thebc_labelwindow will be changed.changedBitmap(ClassBitmap) β name of the Bitmap displayed in thefileMenuwhen the file being edited is changed.autoReplace(ClassReplace) β useful for automatically correcting common misspelling errors, but also usable for simple macros. Format is{non-blanks}{blanks}[{string}]. Fields are separated by newlines. Example of use:
nto not\n\
/macro some long string with \\\n newlines \\\n
Will automatically replace the word nto by not, and /macro by some long string with newlines when you type that words. (Yes, that words β the page said it like that π«Ά)
ispell.dictionaries(Classispell.Dictionary) β a list of dictionary names, separated by spaces, available to the ispell program. Default value is"american americamed+ english".ispell.dictionary(Classispell.Dictionary) β the default dictionary to use.ispell*<DICTIONARY>.wordChars(Classispell*Chars) β a set of characters that can be part of a legal word. The<DICTIONARY>field is one of the dictionaries specified in thedictionariesresource.ispell.ispellCommand(Classispell.CommandLine) β path to the ispell program, and possibly additional arguments. You don't need to specify the-woption nor the-a=option. Refer to theispell(1)manpage for more information on ispell options.ispell.formatting(Classispell.TextFormat) β which text formatting to use while spell checking the file. Available formats aretextandhtml.ispell*text.skipLines(Classispell*text.Skip) β lines starting with one of the characters in this string will not be spell checked. This resource is only used in text mode.ispell.terseMode(Classispell.Terse) β when enabled, runs ispell in terse mode, not asking user interaction for words generated through compound formation (when using theispel -Coption), or words generated through affix removal. Default value isFalse.ispell.lookCommand(Classispell.CommandLine) β path to the program to search for alternate words, and possibly additional arguments. Default program used is/usr/bin/egrep.ispell.wordsFile(Classispell.Words) β path to thefile[s]to search for alternate words. Default file is/usr/share/dict/words.ispell.guessLabel(Classispell.Status) β string displayed in the ispell status bar when ispell returns a guess list of one or more words. Default value isGuess.ispell.missLabel(Classispell.Status) β string displayed in the ispell status bar when ispell returns a list of one or more words to match a misspelled one. Default value isMiss.ispell.rootLabel(Classispell.Status) β string displayed in the ispell status bar when the word is not in the dictionary but can be formed through a root one. Default value isRoot:, followed by a space and the root word.ispell.noneLabel(Classispell.Status) β string displayed in the ispell status bar when there is no near misses. Default value isNone.ispell.compoundLabel(Classispell.Status) β string displayed in the ispell status bar when the word being checked is formed by concatenation of two words. Default value isCompound.ispell.okLabel(Classispell.Status) β string displayed in the ispell status bar when the checked word is in the dictionary. This string is only displayed when using the check button in the xedit ispell interface. Default value isOk.ispell.eofLabel(Classispell.Status) β string displayed in the ispell status bar when the end of the file is reached. Default value isEnd Of File.ispell.repeatLabel(Classispell.Status) β string displayed in the ispell status bar when two identical words are found together in the file. Default value isRepeat.ispell.lookLabel(Classispell.Status) β string displayed in the ispell status bar after displaying the results of the Look command. If no results are found, the value of theispell.noneLabelresource is shown.ispell.workingLabel(Classispell.Status) β string displayed in the ispell status bar while xedit is communicating with ispell. Default value is.....
π§ WIDGETS π§
To specify resources, it is useful to know the hierarchy of the widgets which compose xedit. In the notation below, indentation indicates hierarchical structure. The widget class name is given first, followed by the widget instance name.
Xedit xedit
Paned paned
Paned buttons
Command quit
Command save
Command load
Text filename
Label bc_label
Text messageWindow
Label labelWindow
Text editWindow
π ENVIRONMENT π
DISPLAYβ to get the default host and display number.XENVIRONMENTβ to get the name of a resource file that overrides the global resources stored in theRESOURCE_MANAGERproperty.
π FILES π
/usr/share/X11/app-defaults/Xeditβ specifies required resources.
π¦ SEE ALSO π¦
π RESTRICTIONS π
Xedit is not a replacement to Emacs. Periodt. No cap. π
π AUTHORS π
- Chris D. Peterson, MIT X Consortium
- Paulo Cesar Pereira de Andrade, The XFree86 Project
That's the whole page, bestie. The footer wraps it with X Version 11, xedit 1.2.5, and the XEDIT(1) page β official source/version + date energy, iconic and done π
β¨π
π¦ where this page comes from
- arch rolling: xorg-xedit 1.2.5-1 Β· LicenseRef-xedit
- fedora 43: xedit 1.2.5-2.fc43 Β· MIT AND BSD-3-Clause
- fedora 44: xedit 1.2.5-2.fc44 Β· MIT AND BSD-3-Clause
- Copyright (c) 1994 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms