PageRenderTime 49ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/doc/users-guide/files.xml

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