NC(1)
π NC(1) β nedit-client, straight out of the NEdit documentation π
πΈ NAME πΈ
nedit-client β the client program for the NEdit text editor, periodt. That's the whole vibe. π
β¨ SYNOPSYS β¨
nedit-client [-read] [-create] [-line n | +n] [-do command]
[-ask] [-noask] [-svrname name] [-svrcmd command]
[-lm languagemode]
[-geometry geometry | -g geometry] [-icon | -iconic]
[-display [host]:server[.screen]]
[-timeout seconds] [-wait] [-xrm resourcestring]
[-tabbed] [-untabbed] [-group]
[-V | -version] [-h | -help] [--] [file...]
π¦ DESCRIPTION π¦
So nedit-client is the client interface to the NEdit text editor. A server can be started explicitly by running NEdit in server mode:
nedit -server
If no server is running, nedit-client will start one unless configured otherwise. Client/server mode is useful for integrating NEdit with software development environments, mailers, and other programs; or just as a quick way to open files from the shell command line without starting a new NEdit session. Honestly? Iconic behavior. π₯
π OPTIONS π
-readβ Opens the file read-only regardless of the actual file protection. No cap, you're just looking bestie. π«Ά-createβ Don't warn about file creation when a file doesn't exist. It's giving "make it happen" energy. β¨-line n,+nβ Go to line number n. Straight to the tea, no scrolling. β-do commandβ Execute an NEdit macro or action on the file following the-doargument on the command line. π«
If you use this command without a filename, nedit-client would randomly choose one window to focus and execute the macro in. Lowkey chaotic but okay. π
-ask,-noaskβ Instructsnedit-clientwhether to automatically start a server if one is not available. This overrides the X resourcenc.autoStart. Choose your fighter. π-svrname nameβ Explicitly instructsnedit-clientwhich server to connect to, an instance ofnedit(1)with a corresponding-svrnameargument. By naming servers, you can run several simultaneously, and direct files and commands specifically to any one. Main character server energy fr fr. π-svrcmd commandβ The command whichnedit-clientuses to start an NEdit server. It is also settable via the X resourcenc.serverCommand, by default,"nedit -server". π οΈ-lm languagemodeβ Initial language mode used for editing succeeding files. Set the vibe before you edit. π-geometry geometry,-g geometryβ The initial size and/or location of editor windows. The argument geometry has the form:
[<width>x<height>][+|-][<xoffset>[+|-]<yoffset>]
where <width> and <height> are the desired width and height of the window, and <xoffset> and <yoffset> are the distance from the edge of the screen to the window, + for top or left, - for bottom or right. -geometry can be specified for individual files on the command line. Window placement but make it fashion. π
-icon,-iconicβ Initial window state for succeeding files. Tiny window energy. π§-display [host]:server[.screen]β The name of the X server to use. host specifies the machine, server specifies the display server number, and screen specifies the screen number. host or screen can be omitted and default to the local machine, and screen 0. πΈ-timeout secondsβ Basic time-out period (in seconds) used in communication with an NEdit server. Default: 10 seconds. Also settable via the X resourcenc.timeOut. β³
Under rare conditions (such as a slow connection), it may be necessary to increase the time-out period. In most cases, the default is fine. Don't overthink it bestie. π«Ά
-waitβ Instructsnedit-clientnot to return to the shell until all files given are closed. π
Normally, nedit-client returns once the files given in its command line are opened by the server. When this option is given, nedit-client returns only after the last file given in this call is closed. Note that this option affects all files, not only the ones following this option in the command line. It's got main character energy and affects the whole group chat. π
-xrm resourcestringβ Set the value of an X resource to override a default value. Customize the vibe. β¨-tabbedβ Open all subsequent files in new tabs. Resets-groupoption. Tabs are literally the best. ποΈ-untabbedβ Open all subsequent files in new windows. Resets-groupoption. Windows bestie, separate but together. πͺ-groupβ Open all subsequent files as tabs in a new window. Group project but actually good. π―-V,-versionβ Prints version and build information, to be mentioned when reporting bugs and problems. Receipts for the bug report, love that. π§Ύ-h,-helpβ Prints the command line help and then exits. When you need a little guidance. π--β Treats all subsequent arguments as file names, even if they start with a dash. This is so NEdit can access files that begin with the dash character. Protecting the dash-starting files out here. π‘οΈ
π ENVIRONMENT π
DISPLAYβ NEdit requires an X-based workstation or X-Terminal. If you have usedtelnetorrloginto access the host Unix system, set the Unix environment variable for your display:
% setenv DISPLAY devicename:0
Set the display, get the look. π»β¨
π₯ NOTES π₯
Communication between nedit-client(1) and nedit(1) is through the X display. So as long as X windows is set up and working properly, nedit-client will work properly as well. nedit-client uses the DISPLAY environment variable, the machine name and your user name to find the appropriate server, meaning, if you have several machines sharing a common file system, nedit-client will not be able to find a server that is running on a machine with a different host name, even though it may be perfectly appropriate for editing a given file. That's just how it is, bestie. π
In typical Unix style, arguments affect the files which follow them on the command line, for example:
incorrect:
nedit-client file.c -line 25
correct:
nedit-client -line 25 file.c
Order matters, periodt. π―
For more information see NEdit's online help, or nedit.doc in the NEdit distribution kit.
π SEE ALSO π
nedit(1), X(1), mwm(1), ctags(1), etags(1)
π AUTHORS π
NEdit was written by Mark Edel, Joy Kyriakopulos, Christopher Conrad, Jim Clark, Arnulfo Zepeda-Navratil, Suresh Ravoor, Tony Balinski, Max Vohlken, Yunliang Yu, Donna Reid, Arne Forlie, Eddy De Greef, Steve LoBasso, Alexander Mai, Scott Tringali, Thorsten Haude, Steve Haehn, Andrew Hood, Nathaniel Gray, and TK Soh. Legends only. π
π COPYRIGHT π
Okay legal tea time, here's the exact wording bestie π΅
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. In addition, as a special exception to the GNU GPL, the copyright holders give permission to link the code of this program with the Motif and Open Motif libraries (or with modified versions of these that use the same license), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than linking with Motif/Open Motif. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License in the Help section "Distribution Policy" for more details.
k bye bestie, this whole page is from NEdit 5.7, dated 2022-01-20, manual NC(1) β love u, stay slaying, and may all ur servers be found on the first try β¨ππ¦
π¦ where this page comes from
- epel 9: nedit 5.7-12.el9 Β· GPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms