| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 1 | \input texinfo @c -*-texinfo-*- |
| 2 | @c %**start of header |
| 3 | @setfilename nano.info |
| 4 | @settitle nano Command Manual |
| 5 | @c %**end of header |
| 6 | |
| 7 | @c This file has the new style title page commands. |
| 8 | @c Run `makeinfo' rather than `texinfo-format-buffer'. |
| 9 | @smallbook |
| 10 | @set EDITION 0.1 |
| Chris Allegretta | 38068cd | 2001-04-06 20:04:23 +0000 | [diff] [blame] | 11 | @set VERSION 1.0.1 |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 12 | @set UPDATED 12 Feb 2001 |
| 13 | |
| Chris Allegretta | 7ab3e8f | 2001-03-22 23:12:22 +0000 | [diff] [blame] | 14 | @dircategory Editors |
| 15 | @direntry |
| 16 | * Nano: (nano). Small and friendly text editor. |
| 17 | @end direntry |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 18 | |
| 19 | @c tex |
| 20 | @c \overfullrule=0pt |
| 21 | @c end tex |
| 22 | |
| 23 | @titlepage |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 24 | @title GNU @code{nano} |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 25 | @subtitle a small and friendly text editor. |
| Chris Allegretta | 38068cd | 2001-04-06 20:04:23 +0000 | [diff] [blame] | 26 | @subtitle version 1.0.1 |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 27 | |
| 28 | @author Chris Allegretta |
| 29 | @page |
| 30 | |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 31 | This manual documents GNU @code{nano}, a small and friendly text |
| 32 | editor. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 33 | |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 34 | This manual is part of the GNU @code{nano} distribution.@* |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 35 | @sp4 |
| 36 | Copyright (C) 1999, 2000, 2001 Chris Allegretta. |
| 37 | |
| 38 | Permission is granted to make and distribute verbatim copies of |
| 39 | this manual provided the copyright notice and this permission notice |
| 40 | are preserved on all copies. |
| 41 | |
| 42 | @iftex |
| 43 | Permission is granted to process this file through TeX and print the |
| 44 | results, provided the printed document carries copying permission |
| 45 | notice identical to this one except for the removal of this paragraph |
| 46 | (this paragraph not being relevant to the printed manual). |
| 47 | @end iftex |
| 48 | |
| 49 | Permission is granted to copy and distribute modified versions of this |
| 50 | manual under the conditions for verbatim copying, provided that the entire |
| 51 | resulting derived work is distributed under the terms of a permission |
| 52 | notice identical to this one. |
| 53 | |
| 54 | Permission is granted to copy and distribute translations of this manual |
| 55 | into another language, under the above conditions for modified versions, |
| 56 | except that this permission notice may be stated in a translation approved |
| 57 | by the Foundation. |
| 58 | |
| 59 | You may contact the author by: |
| 60 | e-mail: @email{chrisa@@asty.org}@* |
| 61 | @end titlepage |
| 62 | |
| 63 | @node Top, Introduction, (dir), (dir) |
| 64 | |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 65 | This manual documents GNU nano, a small and friendly text editor. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 66 | |
| 67 | @menu |
| 68 | * Introduction:: |
| 69 | * Editor Basics:: |
| 70 | * Online Help:: |
| 71 | * Feature Toggles:: |
| 72 | * The File Browser:: |
| 73 | * Pico Compatibility:: |
| 74 | * Building and Configure Options:: |
| 75 | @end menu |
| 76 | |
| 77 | @node Introduction, Editor Basics, Top, Top |
| 78 | @chapter Introduction |
| 79 | |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 80 | GNU @code{nano} is a small and friendly text editor. Besides basic |
| 81 | text editing, @code{nano} offers many extra features like an |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 82 | interactive search and replace, goto line number, auto-indentation, |
| 83 | feature toggles, internationalization support, and filename tab |
| 84 | completion. |
| 85 | |
| 86 | @menu |
| 87 | * Overview:: |
| 88 | * Command Line Options:: |
| 89 | @end menu |
| 90 | |
| 91 | @node Overview, Command Line Options, Introduction, Introduction |
| 92 | @section Overview |
| 93 | |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 94 | @code{nano} [GNU long option] [option] +LINE [ @var{ file ...} ] |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 95 | |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 96 | The original goal for @code{nano} was a complete bug-for-bug compatible |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 97 | emulation of Pico, but consistency is now a slightly higher priority. |
| 98 | There is a flag to implement (nearly) complete Pico emulation, (option -p |
| 99 | or GNU long option --pico). This can also be toggled from within |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 100 | @code{nano} by typing Meta-P. @xref{Pico Compatibility}, for more |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 101 | info. |
| 102 | |
| 103 | Email bug reports to @email{nano@@nano-editor.org}. |
| 104 | |
| 105 | @node Command Line Options, , Overview, Introduction |
| 106 | @section Command Line Options |
| 107 | |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 108 | @code{nano} takes the following options from the command line: |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 109 | @table @code |
| 110 | |
| 111 | @item -T [num, --tabsize=[num] |
| 112 | Set the displayed tab length to [num] columns. |
| 113 | |
| 114 | @item -R, --regexp |
| 115 | Turns on regular expression search and search/replace. |
| 116 | |
| 117 | @item -V, --version |
| 118 | Print the version number and copyright and quit. |
| 119 | |
| 120 | @item -c, --const |
| Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 121 | Constantly display the cursor position and line number on the statusbar. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 122 | |
| 123 | @item -h, --help |
| 124 | Print the usage and exit. |
| 125 | |
| 126 | @item -i, --autoindent |
| 127 | Automatically indent new lines to the same number of spaces and tabs as |
| 128 | the previous line. |
| 129 | |
| 130 | @item -k, --cut |
| 131 | Makes ^K cut from the current cursor position to the end of the current |
| 132 | line. |
| 133 | |
| 134 | @item -l, --nofollow |
| 135 | When writing files, if the given file is a symbolic link it is removed |
| 136 | and a new file is created. |
| 137 | |
| 138 | @item -m, --mouse |
| 139 | Enables the use of the mouse to select text (currently only useful for |
| 140 | running under the X window system). |
| 141 | |
| 142 | @item -p, --pico |
| 143 | Emulate Pico as closely as possible, sacrificing consistency for correct |
| 144 | emulation. @xref{Pico Compatibility}, for more info. |
| 145 | |
| 146 | @item -r [#cols], --fill=[#cols]. |
| 147 | Wrap lines at column #cols. By default this is the width of the screen, |
| Chris Allegretta | 6fe6149 | 2001-05-21 12:56:25 +0000 | [diff] [blame] | 148 | less eight. If this value is negative, wrapping will occur at #cols from |
| 149 | the right of the screen, allowing it to vary along with the screen width |
| 150 | if the screen is resized. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 151 | |
| 152 | @item -s [prog], --speller=[prog] |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 153 | Invoke [prog] as the spell checker. By default, @code{nano} uses its |
| 154 | own interactive spell checker that requires the @code{spell} program be |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 155 | installed on your system. |
| 156 | |
| 157 | @item -t, --tempfile |
| 158 | Do not ask whether or not to save the current contents of the file when |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 159 | exiting, assume yes. This is most useful when using @code{nano} as the |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 160 | composer of a mailer program. |
| 161 | |
| 162 | @anchor{Expert Mode} |
| 163 | @item -x, --nohelp |
| 164 | In Expert Mode, the Shortcut Lists will not appear at the bottom of the |
| 165 | screen. This affects the location of the statusbar as well, as in Expert |
| 166 | Mode it is located at the very bottom of the editor. |
| 167 | |
| Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 168 | Note: When accessing the help system, Expert Mode is temporarily disabled |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 169 | to display the help system navigation keys. |
| 170 | |
| 171 | @item -v, --view |
| 172 | Do not allow the contents of the file to be altered. Note that this |
| 173 | flag should NOT be used in place of correct file permissions to implement |
| 174 | a read-only file. |
| 175 | |
| 176 | @item -w, --nowrap |
| 177 | Do not wrap long lines at any length. This option overrides any value for |
| 178 | -r. |
| 179 | |
| 180 | @item -z, --suspend |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 181 | Enable suspend ability of @code{nano} using the system's suspend |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 182 | keystroke (usually ^Z). |
| 183 | |
| 184 | @item +LINE |
| 185 | Start at line number LINE instead of the default of line 1. |
| 186 | @end table |
| 187 | |
| 188 | @node Editor Basics, Online Help, Introduction, Top |
| 189 | @chapter Editor Basics |
| 190 | @menu |
| 191 | * Entering Text:: |
| 192 | * Special Functions:: |
| 193 | * The Titlebar:: |
| 194 | * The Statusbar:: |
| 195 | * Shortcut Lists:: |
| 196 | @end menu |
| 197 | |
| 198 | @node Entering Text, Special Functions, Editor Basics, Editor Basics |
| 199 | @section Entering Text |
| 200 | |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 201 | All key sequences in @code{nano} are entered using the keyboard. |
| 202 | @code{nano} is a "modeless" editor, all keys with the exception of |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 203 | Control and Meta key sequences will enter text into the file being |
| 204 | edited. |
| 205 | |
| 206 | @node Special Functions, The Titlebar, Entering Text, Editor Basics |
| 207 | @section Special Functions |
| 208 | |
| 209 | Special functions use the Control key (displayed in the help and |
| Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 210 | shortcut lists as ^) or the Meta key (displayed as M). |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 211 | |
| 212 | @itemize @bullet |
| 213 | |
| 214 | @item |
| 215 | Control key sequences are entered by holding down the Control key and |
| 216 | pressing the desired letter. |
| 217 | @item |
| 218 | Meta key sequences can be entered in a number of |
| 219 | possible ways: Pressing the Escape key, then releasing it and pressing |
| 220 | the desired key, or holding down the Alt key while pressing the desired |
| 221 | key. This varies from keyboard to keyboard, and certain commercial |
| 222 | operating systems "swallow" the Alt key so that it never reaches the |
| 223 | application. If your operating system does this, you should use the |
| 224 | Escape key to generate Meta key sequences. |
| 225 | @end itemize |
| 226 | |
| 227 | @node The Titlebar, The Statusbar, Special Functions, Editor Basics |
| 228 | @section The Titlebar |
| 229 | |
| 230 | The titlebar is the line displayed at the top of the editor. There are |
| 231 | three sections: left, center and right. The section on the left displays |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 232 | the version of @code{nano} being used. The center section displays the |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 233 | current file name, or "New Buffer" if the file has not yet been named. |
| 234 | The section on the right will display "Modified" if the file has been |
| Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 235 | modified since it was last saved or opened. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 236 | |
| 237 | Special modes: When nano is in "File browser" mode, the center section |
| 238 | will display the current directory instead of the filename. |
| 239 | @xref{The File Browser}. |
| 240 | |
| 241 | @node The Statusbar, Shortcut Lists, The Titlebar, Editor Basics |
| 242 | @section The Statusbar |
| 243 | |
| 244 | The statusbar is located three lines from the bottom of the screen (or the |
| 245 | bottom line in Expert Mode. @xref{Expert Mode}, for more info. |
| 246 | |
| 247 | The Statusbar shows important and informational messages. Any error |
| 248 | messages that occur from using the editor will appear on the statusbar. |
| 249 | Any questions that are asked of the user will be asked on the statusbar, |
| Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 250 | and any user input (search strings, file names, etc) will be input on the |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 251 | statusbar. |
| 252 | |
| 253 | @node Shortcut Lists, , The Statusbar, Editor Basics |
| 254 | @section Shortcut Lists |
| 255 | |
| Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 256 | The Shortcut Lists are the two lines at the bottom of the screen which show |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 257 | some of the more commonly used functions in the editor. The exact |
| 258 | functions which are displayed depend on whether Pico Compatibility Mode mode |
| 259 | is enabled. @xref{Pico Compatibility}, for more info. |
| 260 | |
| 261 | @node Online Help, Feature Toggles, Editor Basics, Top |
| 262 | @chapter Online Help |
| 263 | |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 264 | The online help system in @code{nano} is available by pressing ^G. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 265 | It is fairly self explanatory, documenting the various parts of the |
| 266 | editor and available keystrokes. Navigation is via the ^Y (Page Up) |
| 267 | and ^V (Page Down) keys. ^X exits the help system. |
| 268 | |
| 269 | |
| 270 | @node Feature Toggles, The File Browser, Online Help, Top |
| 271 | @chapter Feature Toggles |
| 272 | |
| 273 | Toggles allow you to change certain aspects of the editor that |
| 274 | would normally be done via command line flags. They are invoked via |
| 275 | certain Meta key sequenced. @xref{Special Functions}, for more info. |
| 276 | The following toggles are available: |
| 277 | |
| 278 | @table @code |
| 279 | |
| 280 | @item Constant Update Toggle (Meta-C) |
| 281 | toggles the -c (--const) command line flag. |
| 282 | |
| 283 | @item Regular Expressions Toggle (Meta-E) |
| 284 | toggles the -R (--regexp) command line flag. |
| 285 | |
| 286 | @item AutoIndent Toggle (Meta-I) |
| 287 | toggles the -i (--autoindent) command line flag. |
| 288 | |
| 289 | @item Cut To End Toggle (Meta-K) |
| 290 | toggles the -k (--cut) command line flag. |
| 291 | |
| 292 | @item Cut To End Toggle (Meta-M) |
| 293 | toggles the -m (--mouse) command line flag. |
| 294 | |
| 295 | @item Pico Mode Toggle (Meta-P) |
| 296 | toggles the -p (--pico) command line flag. |
| 297 | @xref{Pico Compatibility}, for more info. |
| 298 | |
| 299 | @item AutoWrap Toggle (Meta-W) |
| 300 | toggles the -w (--nowrap) command line flag. |
| 301 | |
| 302 | @item Expert/Nohelp Toggle (Meta-X) |
| 303 | toggles the -x (--nohelp) command line flag. |
| 304 | |
| 305 | @item Suspend Toggle (Meta-Z) |
| Chris Allegretta | 203ce15 | 2001-02-23 03:05:38 +0000 | [diff] [blame] | 306 | toggles the -z (--suspend) command line flag. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 307 | |
| 308 | @end table |
| 309 | |
| 310 | @node The File Browser, Pico Compatibility, Feature Toggles, Top |
| 311 | @chapter The File Browser |
| 312 | |
| Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 313 | When reading or writing files, pressing ^T will invoke the file browser. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 314 | Here, one can navigate directories in a graphical manner in order to find |
| 315 | the desired file. |
| 316 | |
| 317 | Basic movement in the file browser is accomplished with he arrow keys |
| 318 | and page up/down. The behavior of the enter (or 's') key varies by what |
| 319 | is currently selected. If the currently selected object is a directory, |
| Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 320 | the file browser will enter and display the contents of the directory. If |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 321 | the object is a file, this filename and path are copied to the statusbar |
| 322 | and the file browser is exited. |
| 323 | |
| 324 | @node Pico Compatibility, Building and Configure Options, The File Browser, Top |
| 325 | @chapter Pico Compatibility |
| 326 | |
| 327 | Nano does not completely emulate Pico by default. The following differences |
| 328 | apply to the default mode and Pico Compatibility mode: |
| 329 | |
| 330 | @table @code |
| 331 | @item Displayed Shortcuts |
| Chris Allegretta | 882e145 | 2001-02-12 06:52:50 +0000 | [diff] [blame] | 332 | By default, the following shortcuts are displayed in the Shortcut Lists: |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 333 | |
| 334 | ^G ^O ^\ ^Y ^K ^C@* |
| 335 | ^X ^R ^W ^V ^U ^T |
| 336 | |
| 337 | Related functions are listed above or below each other by default. The |
| Chris Allegretta | fb9cffe | 2001-02-12 06:42:43 +0000 | [diff] [blame] | 338 | Justify function is not listed, instead the "Replace" function is |
| Chris Allegretta | 882e145 | 2001-02-12 06:52:50 +0000 | [diff] [blame] | 339 | displayed. Also, he "Read File" and "WriteOut" functions are aligned for |
| Chris Allegretta | fb9cffe | 2001-02-12 06:42:43 +0000 | [diff] [blame] | 340 | consistency. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 341 | |
| 342 | In Pico Compatibility mode, the default Pico shortcuts are displayed: |
| 343 | |
| 344 | ^G ^O ^R ^Y ^K ^C@* |
| 345 | ^X ^J ^W ^V ^U ^T |
| 346 | |
| 347 | @item Previous String Text |
| 348 | By default, previously entered string for a function (search string, |
| 349 | file name) will be placed on the statusbar, and is editable. This is |
| 350 | done so there is consistency across all functions. For example: even if |
| Chris Allegretta | 882e145 | 2001-02-12 06:52:50 +0000 | [diff] [blame] | 351 | there is a previous replace string, it can always be deleted if one |
| 352 | wishes to perform an empty string replace. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 353 | |
| 354 | In Pico Compatibility Mode, the previously entered text in a search or |
| 355 | replace will appear in brackets, and is not editable. It is not a |
| 356 | simple matter to do an empty string replace when a previous replace |
| 357 | string exists, for example. When writing a file, the previous filename |
| 358 | will be displayed in the editable text portion of the editor. |
| 359 | |
| 360 | @item Interactive Replace and Spell Checker |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 361 | It is worth noting that the @code{nano} replace function is interactive, |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 362 | i.e. it does not stop after one search string is found and automatically |
| Chris Allegretta | 35ac99d | 2001-02-15 00:25:17 +0000 | [diff] [blame] | 363 | replace it. The @code{nano} implementation will stop at each search |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 364 | string found and query whether to replace this instance or not. The |
| 365 | internal spell checker operates similarly. Note that these is no way |
| Chris Allegretta | 882e145 | 2001-02-12 06:52:50 +0000 | [diff] [blame] | 366 | to force these functions to behave in the Pico fashion. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 367 | @end table |
| 368 | |
| 369 | @node Building and Configure Options, , Pico Compatibility, Top |
| 370 | @chapter Building and Configure Options |
| 371 | |
| 372 | Building nano from source is fairly straightforward if you are familiar |
| 373 | with compiling programs with autoconf support: |
| 374 | |
| 375 | tar xvfz nano-x.y.z.tar.gz (where x.y.z is the version of nano) |
| 376 | cd nano-x.y.z/ |
| 377 | ./configure |
| 378 | make |
| 379 | make install |
| 380 | |
| 381 | if you are looking to optimize nano for size, you may want to consider |
| 382 | the following command line options: |
| 383 | |
| 384 | |
| 385 | @table @code |
| 386 | |
| 387 | @item --disable-tabcomp |
| 388 | Disable the tab completion code when reading or writing files. |
| 389 | |
| 390 | @item --disable-justify |
| 391 | Disable the justify (^J)/unjustify (^U) functions in the editor. |
| 392 | |
| 393 | @item --disable-speller |
| Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 394 | Disables spell checker ability. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 395 | |
| 396 | @item --disable-help |
| Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 397 | Disables the help function (^G). Disabling this option makes the |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 398 | binary much smaller, but makes it difficult for new users |
| 399 | to learn more than very basic things about using the editor. |
| 400 | |
| 401 | @item --disable-browser |
| 402 | Disables the mini file browser (^O) when reading or writing files. |
| 403 | |
| 404 | @item --enable-tiny |
| 405 | This options disables all the above. It also disables some of |
| 406 | the larger internals of the editor, like the marker code (^^) and |
| Chris Allegretta | 203ce15 | 2001-02-23 03:05:38 +0000 | [diff] [blame] | 407 | the cut to line (-k) option which it depends on to work properly. |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 408 | It also disables the function toggles and mouse support. |
| Chris Allegretta | cef7fbb | 2001-04-02 05:36:08 +0000 | [diff] [blame] | 409 | |
| 410 | @item --disable-wrapping |
| 411 | Disables all word wrapping in the editor. This also eliminates the |
| 412 | -w command line flag, as nonwrapping is then the default behavior. |
| 413 | |
| Chris Allegretta | 84de552 | 2001-04-12 14:51:48 +0000 | [diff] [blame] | 414 | @item --disable-mouse |
| 415 | Disables all mouse functionality. This also disables the -m commands line |
| 416 | flag which enables the mouse functions. |
| 417 | |
| Chris Allegretta | 7e7bcf8 | 2001-02-12 03:48:53 +0000 | [diff] [blame] | 418 | @end table |
| 419 | |
| 420 | @contents |
| 421 | @bye |
| 422 | |
| 423 | |