📄 gedit.sgml
字号:
A pre-press file is one that a professional printing company can take
and produce brochures, flyers, letterheads, etc. The file formats which
are referred to are PS (Postscript) and PDF
(Portable Document Format).
</para>
</footnote>
file format.
The button for the <guibutton>Printer</guibutton> and <guibutton>File</guibutton>
options are on the left side of the dialog. If you choose to print the file
to a printer, you need to verify the printing command is correct, in the text
window to the right of the <guibutton>Printer</guibutton> button. If you
choose to print the file to a pre-press file, you need to enter the name of
the file, in the text window to the right of the <guibutton>File</guibutton>
button. The default file name is <filename>output.ps</filename>.
You also can choose the type of pre-press file format from the pull down
menu <guilabel>Name:</guilabel>.
</para>
<para>
The <guilabel>Print Range</guilabel> section lets you specify what parts of the
file you wish to print. When the <guibutton>All</guibutton> button is pressed the
whole file will be printed. If you want to specify certain pages, of the file,
to be printed, you need to press the <guibutton>Pages</guibutton> button and enter the
starting and ending page number. If you only want a certain selection of the file,
which you have highlighted, to be printed, you need to press the
<guibutton>Selection</guibutton> button.
</para>
<para>
There are three buttons at the bottom of the <interface>Print Document</interface>
dialog. The <guibutton>Print</guibutton> button will print the document using the
options in the <interface>Print Document</interface> dialog. The
<guibutton>Preview</guibutton> button exits the <interface>Print Document</interface>
dialog and brings up the <interface>Print Preview</interface> dialog. The
<interface>Print Preview</interface> dialog lets you preview the document before
you print it.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<guimenuitem>Print Preview</guimenuitem>
</menuchoice> —
<figure id="print-preview-fig">
<title>Print Preview Document Dialog</title>
<screenshot>
<screeninfo>Print Preview Document dialog</screeninfo>
<graphic fileref="images/print-preview" format="png"
srccredit="Eric Baudais">
</graphic>
</screenshot>
</figure>
The <interface>Print Preview</interface> dialog lets you preview the document before
you print it.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<shortcut>
<keysym>Ctl-W</keysym>
</shortcut>
<guimenuitem>Close</guimenuitem>
</menuchoice> —
This item closes the current document in <application>gedit</application>. If
the item isn't saved, <application>gedit</application> will ask you if you
want to save the file or discard the changes you made to the file.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<guimenuitem>Close All</guimenuitem>
</menuchoice> —
This item closes all the documents in <application>gedit</application>. If
any files aren't saved, <application>gedit</application> will ask you if you
want to save the file or discard the changes you made to the file.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<shortcut>
<keysym>Ctl-Q</keysym>
</shortcut>
<guimenuitem>Exit</guimenuitem>
</menuchoice> —
This item exits <application>gedit</application>. If
any files aren't saved, <application>gedit</application> will ask you if you
want to save the file or discard the changes you made to it.
</para>
</listitem>
</itemizedlist>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guimenu>Edit</guimenu></term>
<listitem>
<para>
The menu contains:
<itemizedlist mark="opencircle">
<listitem>
<para>
<menuchoice>
<shortcut>
<keysym>Ctl-Z</keysym>
</shortcut>
<guimenuitem>Undo</guimenuitem>
</menuchoice> —
This item returns the document to its previous state before each command is executed
or word is typed; it essentially takes back each command or typed word in the order
they were performed. You can only take back a certain number of commands. The
option is configured in the <link linkend="documents-fig"><interface>Preferences…</interface>
</link> dialog.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<shortcut>
<keysym>Ctl-R</keysym>
</shortcut>
<guimenuitem>Redo</guimenuitem>
</menuchoice> —
This item returns the document to its state before the
<guimenuitem>Undo</guimenuitem> command was executed. It's the opposite of
<guimenuitem>Undo</guimenuitem>.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<shortcut>
<keysym>Ctl-X</keysym>
</shortcut>
<guimenuitem>Cut</guimenuitem>
</menuchoice> —
This item puts the highlighted text, in the <interface>text window</interface>,
in a buffer and then deletes the text that is highlighted from the file.
The <guimenuitem>Paste</guimenuitem> command takes the text
out of the buffer and inserts it in the file you are editing.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<shortcut>
<keysym>Ctl-C</keysym>
</shortcut>
<guimenuitem>Copy</guimenuitem>
</menuchoice> —
This item puts the highlighted text, in the <interface>text window</interface>,
in a buffer, but does not delete the text that is highlighted.
The <guimenuitem>Paste</guimenuitem> command takes the text
out of the buffer and inserts it in the file you are editing.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<shortcut>
<keysym>Ctl-V</keysym>
</shortcut>
<guimenuitem>Paste</guimenuitem>
</menuchoice> —
This item takes any text in the buffer and inserts it into the document. The
<guimenuitem>Cut</guimenuitem> and <guimenuitem>Copy</guimenuitem> commands
are the only way to put text into the buffer.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<guimenuitem>Select All</guimenuitem>
</menuchoice> —
This item highlights all the text in the current file you are editing.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<shortcut>
<keysym>F6</keysym>
</shortcut>
<guimenuitem>Find</guimenuitem>
</menuchoice> —
<figure id="find-dialog-fig">
<title>Find Dialog</title>
<screenshot>
<screeninfo>Find dialog</screeninfo>
<graphic fileref="images/find" format="png"
srccredit="Eric Baudais">
</graphic>
</screenshot>
</figure>
This item brings up the <interface>Find</interface> dialog. You enter the
string you want to search for in the <guilabel>Search For:</guilabel>
<interface>text window</interface>. You can either start your search at the beginning of
you file, pressing the <guibutton>beginning of the document</guibutton> button,
or start it where the cursor is located in the <interface>Main Window</interface>,
using the <guibutton>cursor position</guibutton> button. You can also specify if
you want <application>gedit</application> to search for the string with the case
how you entered it or have <application>gedit</application> ignore the case of the
search string.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<shortcut>
<keysym>Shift-F6</keysym>
</shortcut>
<guimenuitem>Find Again</guimenuitem>
</menuchoice> —
This item searches for the string you previously entered in the
<interface>Find</interface> dialog.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<shortcut>
<keysym>F7</keysym>
</shortcut>
<guimenuitem>Replace</guimenuitem>
</menuchoice> —
</para>
<figure id="replace-dialog-fig">
<title>Replace Dialog</title>
<screenshot>
<screeninfo>Replace dialog</screeninfo>
<graphic fileref="images/replace" format="png"
srccredit="Eric Baudais">
</graphic>
</screenshot>
</figure>
<para>
This item brings up the <interface>Replace</interface> dialog. This allows
you to search for a string and replace it with another string. You enter
the string you want to search for in the <guilabel>Search For:</guilabel>
<interface>text window</interface>. You then enter the string, you want
to replace the string you searched for, in the <guilabel>Replace with:</guilabel>
<interface>text window</interface>. You can either start your search at the beginning of
your file, pressing the <guibutton>beginning of the document</guibutton> button,
or start it where the cursor is located in the <interface>Main Window</interface>,
using the <guibutton>cursor position</guibutton> button. You can also specify if
you want <application>gedit</application> to search for the string with the case
how you entered it or have <application>gedit</application> ignore the case of the
search string.
</para>
<para>
When you have the string you want to search for and the string you want to replace
it with entered, click on the <guibutton>Find</guibutton> button, at the bottom
of the <interface>Replace</interface> dialog, to find the correct string you are
wanting to replace. Then, click the <guibutton>Replace</guibutton> button to
replace the highlighted string with the string in the <guilabel>Replace with:</guilabel>
<interface>text window</interface>. If, instead, you want to replace all
occurances of the string in the <guilabel>Search for:</guilabel>
<interface>text window</interface>, click the <guibutton>Replace All</guibutton>
button.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<guimenuitem>Goto Line</guimenuitem>
</menuchoice> —
<figure id="goto-dialog-fig">
<title>Goto Line Dialog</title>
<screenshot>
<screeninfo>Goto Line dialog</screeninfo>
<graphic fileref="images/goto-line" format="png"
srccredit="Eric Baudais">
</graphic>
</screenshot>
</figure>
This item brings up the <interface>Goto Line</interface> dialog. You enter
the line number you want to move the cursor, in the <interface>Main Window</interface>,
to. Click the <guibutton>Okay</guibutton> button and your cursor is put at
the line number you specified, starting at the beginning of the file. If the
line number you specified exceeded the maximum number of lines in the file, your
cursor will be placed on the last line of the file.
</para>
</listitem>
</itemizedlist>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guimenu>View</guimenu></term>
<listitem>
<para>
The menu contains:
<itemizedlist mark="opencircle">
<listitem>
<para>
<menuchoice>
<guimenuitem>Add View</guimenuitem>
</menuchoice> —
This item opens another window to the current file you are editing. If
you edit the file in one view, the other views of the same file are
updated and your changes are seen across all views of the same file.
</para>
</listitem>
<listitem>
<para>
<menuchoice>
<guimenuitem>Remove View</guimenuitem>
</menuchoice> —
This item closes a window to the file you are editing.
<note>
<para>
You cannot remove a view, if there is only one view open. You need
to have more than one view open to close a view.
</para>
</note>
</para>
</listitem>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -