PageRenderTime 56ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-1-pre5/doc/users-guide/files.xml

#
XML | 564 lines | 561 code | 1 blank | 2 comment | 0 complexity | 235aff6b823d5ff9b00fc119e2da411e MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!-- jEdit buffer-local properties: -->
  2. <!-- :tabSize=1:indentSize=1:noTabs=true: -->
  3. <chapter id="files"><title>Working With Files</title>
  4. <sect1 id="creating"><title>Creating New Files</title>
  5. <para>
  6. <guimenu>File</guimenu>&gt;<guimenuitem>New</guimenuitem> (shortcut:
  7. <keycombo><keycap>Control</keycap><keycap>N</keycap></keycombo>) opens a new
  8. untitled buffer. When it is saved, a file will be created on disk.
  9. Another way to create a new file is to specify a non-existent file
  10. name when starting jEdit from your operating system's command line.
  11. </para>
  12. </sect1>
  13. <sect1 id="opening"><title>Opening Files</title>
  14. <para>
  15. <guimenu>File</guimenu>&gt;<guimenuitem>Open</guimenuitem> (shortcut:
  16. <keycombo><keycap>Control</keycap><keycap>O</keycap></keycombo>) displays
  17. a file selector dialog box and loads the specified file into a new
  18. buffer. Multiple files can be opened at once by holding down
  19. <keycap>Control</keycap> while clicking on them in the file system browser.
  20. The file selector dialog box also supports auto-completion; when you begin
  21. typing a the name of an existing file in the file name field, jEdit will
  22. attempt to complete it; if the suggested completion is wrong, either select
  23. an alternative with the arrow keys or keep typing.
  24. </para>
  25. <para>
  26. Files that you do not have write access to are opened in read-only
  27. mode, and editing will not be permitted.
  28. </para>
  29. <para>
  30. <guimenu>File</guimenu>&gt;<guimenuitem>Insert</guimenuitem> displays
  31. a file selector dialog box and inserts the specified file into the current
  32. buffer.
  33. </para>
  34. <para>
  35. The <guimenu>File</guimenu>&gt;<guimenuitem>Recent Files</guimenuitem> menu
  36. lists recent files. When a recent file is opened, the caret
  37. is automatically moved to its previous location in that file.
  38. The number of recent files to remember can be changed and caret
  39. position saving can be disabled in the <guibutton>General</guibutton> pane of
  40. the <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  41. dialog box; see <xref linkend="global-opts" />.
  42. </para>
  43. <para>
  44. The <guimenu>Utilities</guimenu>&gt;<guimenuitem>Current Directory</guimenuitem>
  45. menu lists all files and directories in the current buffer's directory.
  46. Selecting a file opens it in a buffer for editing; selecting a directory
  47. opens it in the file system browser (see <xref linkend="vfs-browser" />).
  48. </para>
  49. <tip>
  50. <para>
  51. jEdit supports transparent editing of GZipped files; if a file begins with
  52. the GZip <quote>magic number</quote>, it is automatically decompressed
  53. before loading and compressed when saving. To compress an existing file,
  54. you need to change a setting in the
  55. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Buffer Options</guimenuitem>
  56. dialog box; see <xref linkend="buffer-opts"/> for details.
  57. </para>
  58. </tip>
  59. </sect1>
  60. <sect1 id="saving"><title>Saving Files</title>
  61. <para>
  62. Changed made to a buffer do not affect the file on disk until the
  63. buffer is <firstterm>saved</firstterm>.
  64. </para>
  65. <para>
  66. <guimenu>File</guimenu>&gt;<guimenuitem>Save</guimenuitem> (shortcut:
  67. <keycombo><keycap>Control</keycap><keycap>S</keycap></keycombo>)
  68. saves the current buffer to disk.
  69. </para>
  70. <para>
  71. <guimenu>File</guimenu>&gt;<guimenuitem>Save All</guimenuitem>
  72. (shortcut: <keycombo><keycap>Control</keycap><keycap>E</keycap></keycombo>
  73. <keycombo><keycap>Control</keycap><keycap>S</keycap></keycombo>) saves all
  74. open buffers to disk, asking for confirmation first.
  75. </para>
  76. <para>
  77. <guimenu>File</guimenu>&gt;<guimenuitem>Save As</guimenuitem> saves the
  78. buffer to a different specified file on disk. The buffer is then
  79. renamed, and subsequent saves also save to the specified file. Note that
  80. using this command to save over an already open buffer will close that
  81. buffer, to avoid having two buffers open with the same path name.
  82. </para>
  83. <para>
  84. <guimenu>File</guimenu>&gt;<guimenuitem>Save a Copy As</guimenuitem> saves
  85. the buffer to a different specified file on disk, but doesn't rename the
  86. buffer, and doesn't clear the <quote>modified</quote> flag. Note that using
  87. this command to save over an already open buffer will automatically reload
  88. that buffer.
  89. </para>
  90. <sidebar><title>How files are saved</title>
  91. <para>
  92. To prevent data loss in the unlikely case that jEdit should crash in the
  93. middle of saving a file, files are first saved to
  94. <filename>#<replaceable>filename</replaceable>#save#</filename>. If this
  95. operation is successful, the original file is replaced with the temporary
  96. file.
  97. </para>
  98. <para>
  99. However, in some situations, this behavior is undesirable. For example,
  100. on Unix saving files this way will result in the owner and group of the
  101. file being reset. If this bothers you, you can disable this so-called
  102. <quote>two-stage save</quote> in the <guibutton>Loading and Saving</guibutton>
  103. pane of the
  104. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  105. dialog box.
  106. </para>
  107. </sidebar>
  108. <sect2><title>Autosave and Crash Recovery</title>
  109. <para>
  110. The autosave feature protects your work from computer crashes and
  111. such. Every 30 seconds, all buffers with unsaved changes are
  112. written out to their respective file names, enclosed in hash
  113. (<quote>#</quote>) characters. For example, <filename>program.c</filename>
  114. will be autosaved to <filename>#program.c#</filename>.
  115. </para>
  116. <para>
  117. Saving a buffer using
  118. one of the commands in the previous section automatically deletes the
  119. autosave file, so they will only ever be visible in the unlikely
  120. event of a jEdit (or operating system) crash.
  121. </para>
  122. <para>
  123. If an autosave file is
  124. found while a buffer is being loaded, jEdit will offer to recover the
  125. autosaved data.
  126. </para>
  127. <para>
  128. The autosave feature can be configured
  129. in the <guibutton>Loading and Saving</guibutton> pane of the
  130. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  131. dialog box; see <xref linkend="global-opts" />.
  132. </para>
  133. </sect2>
  134. <sect2><title>Backups</title>
  135. <para>
  136. The backup feature can be used to roll back to the previous version
  137. of a file after changes were made. When a buffer is saved
  138. for the first time after being opened, its original contents are
  139. <quote>backed up</quote> under a different file name.
  140. </para>
  141. <para>
  142. The default behavior is to back up the original contents
  143. to the buffer's file name suffixed with a tilde (<quote>~</quote>).
  144. For example, <filename>paper.tex</filename> will be backed up to
  145. <filename>paper.tex~</filename>.
  146. </para>
  147. <para>
  148. The backup feature can also be configured in
  149. the <guibutton>Loading and Saving</guibutton> pane of the
  150. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  151. dialog box. It can be customized to do any of the following:
  152. </para>
  153. <itemizedlist>
  154. <listitem><para>
  155. Save numbered backups, named
  156. <filename><replaceable>filename</replaceable>~<replaceable>number</replaceable>~</filename>
  157. </para></listitem>
  158. <listitem><para>
  159. Add a prefix to the backed-up file name
  160. </para></listitem>
  161. <listitem><para>
  162. Adds a suffix to the backed-up file name (the default is <quote>~</quote>)
  163. </para></listitem>
  164. <listitem><para>
  165. Backups can optionally be saved in a specified backup directory, instead of
  166. the directory of the original file. This can reduce clutter
  167. </para></listitem>
  168. <listitem><para>
  169. Backups can also optionally be created every time a buffer is saved;
  170. as mentioned above, the default is to only create a backup the first
  171. time a buffer is saved after being opened.
  172. </para></listitem>
  173. </itemizedlist>
  174. </sect2>
  175. </sect1>
  176. <sect1 id="line-separators"><title>Line Separators</title>
  177. <para>
  178. The three major operating systems use different conventions to mark
  179. line endings in text files.
  180. The MacOS uses Carriage-Return characters (<literal>\r</literal> in
  181. Java-speak) for that purpose. Unix
  182. uses Newline characters (<literal>\n</literal>). Windows uses both
  183. (<literal>\r\n</literal>). jEdit can read and write files in all three formats.
  184. </para>
  185. <para>
  186. When loading a file, the line separator used within is automatically
  187. detected, and will be used when saving a file back to disk. The line
  188. separator used when saving the current buffer can be changed in the
  189. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Buffer
  190. Options</guimenuitem> dialog box; see <xref linkend="buffer-opts" />.
  191. </para>
  192. <para>
  193. By default, new files are saved with your operating system's native line
  194. separator. This can be changed in the
  195. <guibutton>Loading and Saving</guibutton> pane of the
  196. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  197. dialog box; see <xref linkend="global-opts" />. Note that changing this
  198. setting has no effect on existing files.
  199. </para>
  200. </sect1>
  201. <sect1 id="encodings"><title>Character Encodings</title>
  202. <para>
  203. If you edit files in different human languages, you will most likely be
  204. familiar with the concept of a <quote>character encoding</quote>. The gist
  205. of the idea is that there are several ways to store a particular character
  206. on disk. The current buffer's encoding is shown in the status
  207. bar.
  208. </para>
  209. <para>
  210. jEdit can use any
  211. encoding supported by the Java platform.
  212. The default encoding, used to load and save files for which no
  213. other encoding is specified, can be set in the <guibutton>Loading and
  214. Saving</guibutton> pane of the
  215. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  216. dialog box; see <xref linkend="global-opts" />. The setting is presented as
  217. an editable combo box; the combo box
  218. contains a few of the more frequently used encodings, but the Java platform
  219. defines practically hundreds more you can use.
  220. </para>
  221. <para>
  222. Unfortunately, there
  223. is no way to obtain a list of all supported encodings in Java, and the
  224. set is constantly changing with each Java version. So to play it safe, jEdit
  225. has a few pre-defined defaults, but allows you to use any other supported
  226. encoding, assuming you know its name.
  227. </para>
  228. <para>
  229. Unless you change the default encoding, jEdit will use your operating
  230. system's native default; <literal>MacRoman</literal> on the MacOS,
  231. <literal>Cp1252</literal> on Windows, and <literal>8859_1</literal> on
  232. Unix.
  233. </para>
  234. <para>
  235. To open a file stored in an encoding other than the default, select the
  236. encoding from the
  237. <guimenu>Commands</guimenu>&gt;<guisubmenu>Encoding</guisubmenu> menu of
  238. the open file dialog box or file system browser window, then open the file.
  239. </para>
  240. <para>
  241. The encoding to use when saving an open file
  242. can be set in the <guimenu>Utilities</guimenu>&gt;<guimenuitem>Buffer
  243. Options</guimenuitem> dialog box.
  244. </para>
  245. <para>
  246. If a file is opened
  247. without an explicit encoding specified and it appears in the recent file list,
  248. jEdit will use the encoding last used
  249. when working with that file; otherwise the default encoding will be used.
  250. </para>
  251. <sect2><title>Commonly Used Encodings</title>
  252. <para>
  253. The most frequently-used character encoding is ASCII, or <quote>American
  254. Standard Code for Information Interchange</quote>. ASCII encodes Latin
  255. letters used in English, in addition to numbers and a range of punctuation
  256. characters.
  257. The ASCII character set consists of 127 characters, and it is unsuitable
  258. for anything but English text (and other file types which only use English
  259. characters, like most program source). jEdit will load and save files as
  260. ASCII if the <literal>ASCII</literal> encoding is used.
  261. </para>
  262. <para>
  263. Because ASCII is unsuitable for international use, most operating
  264. systems use an 8-bit extension of ASCII, with the first 127 characters
  265. remaining the same, and the rest used to encode accents, umlauts, and
  266. various less frequently used typographical marks. Unfortunately, the three
  267. major
  268. operating systems all extend ASCII in a different way. Files written by
  269. Macintosh programs can be read using the <literal>MacRoman</literal>
  270. encoding; Windows text files are usually stored as
  271. <literal>Cp1252</literal>. In the Unix world, the <literal>8859_1</literal>
  272. (otherwise known as <literal>Latin1</literal>) character encoding has found
  273. widespread usage.
  274. </para>
  275. <para>
  276. Windows users are accustomed to dealing with files in a wide range of
  277. character sets, known as <firstterm>code pages</firstterm>. Java supports a
  278. large number of code pages; the encoding name consists of the text
  279. <quote>Cp</quote>, followed by a number.
  280. </para>
  281. <para>
  282. Raw Unicode files are quite rare, but can be read and written with the
  283. <literal>Unicode</literal> encoding.
  284. One reason raw Unicode has not found widespread usage for storing files on
  285. disk is that each character takes up 16 bits. Most other character sets
  286. devote 8 bits per character, which saves space. The <literal>UTF8</literal>
  287. encoding encodes frequently-used Unicode characters as 8 bits, with
  288. less-frequent ones stretching up to 24 bits. This saves space but allows the
  289. full range of Unicode characters to be represented.
  290. </para>
  291. <para>
  292. Many common cross-platform international character sets are supported;
  293. <literal>KOI8_R</literal> for Russian text, <literal>Big5</literal> and
  294. <literal>GBK</literal> for Chinese, and <literal>SJIS</literal> for
  295. Japanese.
  296. </para>
  297. </sect2>
  298. </sect1>
  299. <sect1 id="vfs-browser"><title>The File System Browser</title>
  300. <para>
  301. <guimenu>Utilities</guimenu>&gt;<guimenuitem>File System
  302. Browser</guimenuitem> displays a file system browser.
  303. By default, the file system browser is shown in a floating window;
  304. it can be set to dock into the view in the <guibutton>Docking</guibutton>
  305. pane of the <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global
  306. Options</guimenuitem> dialog box; see <xref linkend="docking" />.
  307. </para>
  308. <para>
  309. The file system browser can be customized in the
  310. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  311. dialog box.
  312. </para>
  313. <sect2><title>Navigating the File System</title>
  314. <para>
  315. The directory to browse is specified in the <guibutton>Path</guibutton> text
  316. field. Clicking the mouse in the text field automatically selects its
  317. contents allowing a new path to be quickly typed in. If a relative path is
  318. entered, it will be resolved relative to the current path. This text field
  319. remembers previously entered strings; see <xref linkend="history" />.
  320. Previously browsed directories are also listed in the
  321. <guimenu>Utilities</guimenu>&gt;<guisubmenu>Recent Directories</guisubmenu>
  322. menu; selecting one opens it in the file system browser.
  323. </para>
  324. <para>
  325. To browse higher up in the directory hierarchy, click one of the parent
  326. directories in the parent directory list.
  327. </para>
  328. <para>
  329. Files and directories in the file list are shown in different colors
  330. depending on what glob patterns their names match. The patterns and colors
  331. can be customized in the
  332. <guibutton>File System Browser</guibutton>&gt;<guibutton>Colors</guibutton>
  333. pane of the
  334. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  335. dialog box.
  336. </para>
  337. <para>
  338. To browse a listed directory, double-click it (or if you have a three-button
  339. mouse, you can click the middle mouse button as well). Alternatively, click
  340. the disclosure
  341. widget next to a directory to list its contents in place.
  342. </para>
  343. <para>
  344. Open files in the file list are shown with their file names underlined.
  345. Single-clicking an open file will select the appropriate buffer in the current
  346. view. Unopened files can be opened for editing by double-clicking (or by
  347. clicking the middle mouse button). If you hold down <keycap>Shift</keycap>
  348. while double-clicking (or middle-clicking), the file will be opened in a new
  349. view.
  350. </para>
  351. <para>
  352. Clicking a file or directory with the right mouse button displays a popup
  353. menu containing file manipulation commands. Note that attempting to delete
  354. a directory containing files will give an error;
  355. only empty directories can be deleted.
  356. </para>
  357. <para>
  358. If you only want to see a specific set of files (for example,
  359. those whose names end with <filename>.java</filename>), enter a glob pattern
  360. in the <guibutton>Filter</guibutton> text field.
  361. See <xref linkend="globs" /> for information about glob patterns.
  362. This text fields remembers previously entered strings;
  363. see <xref linkend="history" />.
  364. </para>
  365. <tip>
  366. <para>
  367. The file list sorting algorithm used in jEdit handles numbers in file names
  368. in an intelligent manner. For example, a file named
  369. <filename>section10.xml</filename> will be placed after a file named
  370. <filename>section5.xml</filename>. A conventional letter-by-letter
  371. sort would have placed these two files in the wrong order.
  372. </para>
  373. </tip>
  374. </sect2>
  375. <sect2><title>The Tool Bar</title>
  376. <para>
  377. The file system browser has a tool bar containing a number of icons.
  378. These buttons correspond to the items in the <guibutton>Commands</guibutton>
  379. menu described below; the only menu item that does not have a corresponding
  380. tool bar button is <guimenuitem>Show Hidden Files</guimenuitem>.
  381. </para>
  382. </sect2>
  383. <sect2><title>The Commands Menu</title>
  384. <para>
  385. Clicking the <guibutton>Commands</guibutton> button displays a menu
  386. containing the following items:
  387. </para>
  388. <itemizedlist>
  389. <listitem><para><guimenuitem>Parent Directory</guimenuitem> - moves up in
  390. the directory hierarchy.</para></listitem>
  391. <listitem><para><guimenuitem>Reload Directory</guimenuitem> - reloads the
  392. file list from disk.</para></listitem>
  393. <listitem><para><guimenuitem>Local Drives</guimenuitem> - displays all
  394. local drives. On Windows, this will be a list of
  395. drive letters; on Unix, the list will only contain one entry, the
  396. root directory.</para></listitem>
  397. <listitem><para><guimenuitem>Home Directory</guimenuitem> - displays your
  398. home directory.</para></listitem>
  399. <listitem><para><guimenuitem>Directory of Current Buffer - displays the
  400. directory containing the currently active buffer.</guimenuitem></para></listitem>
  401. <listitem><para><guimenuitem>New File</guimenuitem> - opens an
  402. <filename>Untitled</filename> file in the current directory. The file will
  403. not actually be created on disk until it is saved.</para></listitem>
  404. <listitem><para><guimenuitem>New Directory</guimenuitem> - creates a new
  405. directory after prompting for the desired name.</para></listitem>
  406. <listitem><para><guimenuitem>Search in Directory</guimenuitem> -
  407. displays the
  408. search and
  409. replace dialog box for searching in all files in the current directory. If a
  410. file is selected, its extension becomes the file name filter for the search;
  411. otherwise, the file name filter entered in the browser is used.
  412. See <xref linkend="search-replace" /> for details.</para></listitem>
  413. <listitem><para><guimenuitem>Show Hidden Files</guimenuitem> - toggles if
  414. hidden files are to be shown in the file list.</para></listitem>
  415. </itemizedlist>
  416. </sect2>
  417. <sect2><title>The Plugins Menu</title>
  418. <para>
  419. Clicking the <guibutton>Plugins</guibutton> button displays a menu
  420. containing commands for browsing plugin file systems. For information
  421. about plugins, see <xref linkend="using-plugins" />.
  422. </para>
  423. </sect2>
  424. <sect2><title>The Favorites Menu</title>
  425. <para>
  426. Clicking the <guibutton>Favorites</guibutton> button displays a menu
  427. showing all directories in the favorites list, along with an
  428. <guimenuitem>Add to Favorites</guimenuitem> command that adds the current
  429. directory to the favorites, and an <guimenuitem>Edit Favorites</guimenuitem>
  430. command that shows the favorites list in the file system view, allowing items
  431. to be removed by right-clicking on them and selecting
  432. <guimenuitem>Delete</guimenuitem> from the resulting popup menu.
  433. </para>
  434. </sect2>
  435. <sect2><title>Keyboard Shortcuts</title>
  436. <para>
  437. The file system browser can be navigated from the keyboard:
  438. </para>
  439. <itemizedlist>
  440. <listitem><para><keycap>Enter</keycap> - opens the currently selected file or
  441. directory.</para></listitem>
  442. <listitem><para><keycap>Left</keycap> - goes to the current directory's parent.
  443. </para></listitem>
  444. <listitem><para><keycap>Up</keycap> - selects previous file in list.
  445. </para></listitem>
  446. <listitem><para><keycap>Down</keycap> - selects next file in list.
  447. </para></listitem>
  448. <listitem><para><keycap>/</keycap> - displays all
  449. local drives.</para></listitem>
  450. <listitem><para><keycap>~</keycap> - displays your home directory.
  451. </para></listitem>
  452. <listitem><para><keycap>-</keycap> - displays the directory containing
  453. the current buffer.</para></listitem>
  454. <listitem><para>Typing the first few characters of
  455. a file's name will select that file.
  456. </para></listitem>
  457. </itemizedlist>
  458. <para>
  459. The file system view, and not the <guibutton>Path</guibutton> or
  460. <guibutton>Filter</guibutton> text fields must have keyboard focus for these
  461. shortcuts to work.
  462. </para>
  463. </sect2>
  464. </sect1>
  465. <sect1 id="reloading"><title>Reloading Files</title>
  466. <para>
  467. If an open buffer is modified on disk by another application, a warning
  468. dialog box is displayed, offering to either continue editing
  469. (and lose changes made by the other application)
  470. or reload the buffer from disk (and lose any unsaved changes in jEdit). This
  471. feature can be disabled in the <guibutton>General</guibutton> pane of the
  472. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  473. dialog box; see <xref linkend="global-opts" />.
  474. </para>
  475. <para>
  476. <guimenu>File</guimenu>&gt;<guimenuitem>Reload</guimenuitem> can be used to
  477. reload the current buffer from disk at any other
  478. time; a confirmation dialog box will be displayed first if the buffer
  479. has unsaved changes.
  480. </para>
  481. <para>
  482. <guimenu>File</guimenu>&gt;<guimenuitem>Reload All</guimenuitem>
  483. discards unsaved changes in all open buffers and reload them from disk,
  484. asking for confirmation first.
  485. </para>
  486. </sect1>
  487. <sect1 id="threaded-io"><title>Multi-Threaded I/O</title>
  488. <para>
  489. To improve responsiveness and perceived performance,
  490. jEdit executes all input/output operations asynchronously.
  491. While I/O is in progress, the status bar displays the number of
  492. remaining I/O operations.
  493. The <guimenu>Utilities</guimenu>&gt;<guisubmenu>Troubleshooting</guisubmenu>&gt;<guimenuitem>I/O
  494. Progress
  495. Monitor</guimenuitem> command displays a window with more detailed status
  496. information and progress meters. This window is floating by default, but
  497. it can be set to dock into the view in the
  498. <guibutton>Docking</guibutton> pane of the
  499. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  500. dialog box; see <xref linkend="docking" />. I/O requests can also be aborted in
  501. this window, however note that aborting a buffer save can result in data loss.
  502. </para>
  503. <para>
  504. By default, four I/O threads are created, which means that up
  505. to four buffers can be loaded or saved simultaneously. The number of
  506. threads can be changed in the
  507. <guibutton>Loading and Saving</guibutton> pane of the
  508. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global Options</guimenuitem>
  509. dialog box; see <xref linkend="global-opts" />. Setting the number to zero
  510. disables multi-threaded I/O completely; doing this is not recommended.
  511. </para>
  512. </sect1>
  513. <sect1 id="printing"><title>Printing Files</title>
  514. <para>
  515. <guimenu>File</guimenu>&gt;<guimenuitem>Print</guimenuitem>
  516. (shortcut: <keycombo><keycap>Control</keycap><keycap>P</keycap></keycombo>)
  517. will print the current buffer. By default, the printed output will have
  518. syntax highlighting, and each page will have a header with the file name,
  519. and a footer with the current date/time and page number. The appearance of
  520. printed output
  521. can be customized in the <guibutton>Printing</guibutton> pane of the
  522. <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global
  523. Options</guimenuitem> dialog box. The following settings can be changed:
  524. </para>
  525. <itemizedlist>
  526. <listitem><para>The font to use when printing</para></listitem>
  527. <listitem><para>If a header with the file name should be printed on each
  528. page.</para></listitem>
  529. <listitem><para>If a footer with the page number and current date should be
  530. printed on each page.</para></listitem>
  531. <listitem><para>If line numbers should be printed.</para></listitem>
  532. <listitem><para>If the output should be colored according to the current
  533. mode's syntax highlighting rules (might look bad on gray-scale
  534. printers); otherwise, only syntax styles will be applied.</para></listitem>
  535. <listitem><para>The tab size to use when printing - this will usually be
  536. less than the text area tab size, to conserve space in the printed output.
  537. </para></listitem>
  538. </itemizedlist>
  539. </sect1>
  540. <sect1 id="closing-exiting"><title>Closing Files and Exiting jEdit</title>
  541. <para>
  542. <guimenu>File</guimenu>&gt;<guimenuitem>Close</guimenuitem>
  543. (shortcut: <keycombo><keycap>Control</keycap><keycap>W</keycap></keycombo>)
  544. closes the current buffer. If it has unsaved changes, jEdit
  545. will ask if they should be saved first.
  546. </para>
  547. <para>
  548. <guimenu>File</guimenu>&gt;<guimenuitem>Close All</guimenuitem>
  549. (shortcut: <keycombo><keycap>Control</keycap><keycap>E</keycap></keycombo>
  550. <keycombo><keycap>Control</keycap><keycap>W</keycap></keycombo>)
  551. closes all buffers. If any buffers have unsaved
  552. changes, they will be listed in a dialog box where they can be saved
  553. or discarded. In the dialog box, multiple buffers to operate on at
  554. once can be selected by clicking on them in the list while holding
  555. down <keycap>Control</keycap>.
  556. </para>
  557. <para>
  558. <guimenu>File</guimenu>&gt;<guimenuitem>Exit</guimenuitem>
  559. (shortcut: <keycombo><keycap>Control</keycap><keycap>Q</keycap></keycombo>)
  560. will completely exit jEdit.
  561. </para>
  562. </sect1>
  563. </chapter>