513
<sect1 id="kate-mdi">
514
<title>Working With the &kate; <acronym>MDI</acronym></title>
516
<sect2 id="kate-mdi-overview">
517
<title>Overview</title>
519
<para>Window, View, Document, Frame, Editor... What are they all in
520
the terminology of &kate;, and how do you get the most out of it? This
521
chapter will explain all of that, and even more.</para>
523
<sect3 id="kate-mdi-overview-mainwindow">
525
<title>The Main Window</title>
527
<para><indexterm><primary>Main window</primary></indexterm>
528
The &kate; Main Window is a standard &kde; application window,
529
with the addition of side bars containing tool views. It has a
530
menubar with all the common menus, and some more, and a toolbar
531
providing access to commonly used commands.</para>
533
<para>The most important part of the window is the editing area, by
534
default displaying a single text editor component, in which you can
535
work with your documents.</para>
537
<para>The docking capabilities of the window is used for the tool
541
<listitem><para><link linkend="kate-mdi-tools-file-list">The Documents List</link></para></listitem>
542
<listitem><para><link linkend="kate-application-plugin-fsbrowser">The Filesystem
543
Browser</link></para></listitem>
544
<listitem><para><link linkend="kate-mdi-tools-konsole">The Built in Terminal Emulator</link></para></listitem>
547
<para>And possibly other tool views, for example provided by
550
<para>Tool views can be positioned in any sidebar, to move a tool right click
551
its sidebar button and select from the &RMB; menu</para>
553
<para>A tool view can be marked as <emphasis>persistent</emphasis> in the &RMB;
554
menu for its sidebar button. The sidebar can contain
555
more tools at one time so that when a tool is persistant other tools can be
556
shown simultaneously.</para>
563
<sect2 id="kate-mdi-editor">
565
<title>The Editor area</title>
567
<para><indexterm><primary>Editing Area</primary></indexterm>
568
&kate; is capable of having more than one document open at the
569
same time, and also of splitting the editing area into any number of
570
frames, similar to how for example &konqueror; or the popular
571
<application>emacs</application> text editor works. This way you can
572
view several documents at the same time, or more instances of the same
573
document, handy for example if your document contains definitions in
574
the top that you want to see often for reference. Or you could view a
575
program source header in one frame, while editing the implementation
576
file in another.</para>
578
<para>When a document is available in more than one editor, changes
579
made in one editor will immediately be reflected in the others as
580
well. This includes changing the text as well as selecting
581
text. Search operations or cursor movement is only reflected in the
582
current editor.</para>
584
<para>It is currently not possible to have more instances of the same
585
document open in the sense that one instance will be edited while the
586
other will not.</para>
588
<para>When splitting an editor into two frames, it is divided into two
589
equally sized frames, both displaying the current document of that
590
editor. The new frame will be at the bottom (in the case of a
591
horizontal split) or at the right (for a vertical split). The new
592
frame gets the focus, which is visualized by the blinking cursor bar in the
593
focused frame.</para>
597
<sect2 id="kate-mdi-tools-file-list">
598
<title>The Documents List</title>
600
<para><indexterm><primary>Documents list</primary></indexterm>
601
The documents list displays a list of all documents currently open in
602
&kate;. Modified files will have a small <guiicon>floppy
603
disk</guiicon> icon on their left to indicate that state.</para>
605
<para>By default, the Documents list appears in
606
<guimenuitem>Tree Mode</guimenuitem>, which displays the folder structure
607
surrounding all currently open documents. Also available is
608
<guimenuitem>List Mode</guimenuitem>, which displays a simple list of all
609
open documents. You can switch modes by right-clicking on the list and selecting
610
from the <guisubmenu>View Mode</guisubmenu> menu.</para>
612
<para>If two or more files with the same name (located in different
613
folders) are open in <guimenuitem>List Mode</guimenuitem>, the names of the second will be prepended
614
<quote>(2)</quote> and so on. The tool-tip for the file will
615
display its full name including the path, allowing you to choose the
616
desired one.</para> <para>To display a document in the currently
617
active frame, click the document name in the list.</para>
619
<!-- FIXME missing options in 4.11 context menu:
621
Copy Filename -> full doc path to clipboard
624
<para>You can sort the list in a few different ways by rightclicking the
625
list and selecting from the <guisubmenu>Sort By</guisubmenu> menu.
631
<term><guimenuitem>Opening Order</guimenuitem></term>
632
<listitem><para>Lists the documents in the order of opening</para></listitem>
636
<term><guimenuitem>Document Name</guimenuitem></term>
637
<listitem><para>Lists the documents alphabetically by their name.</para></listitem>
641
<term><guimenuitem>Document Path</guimenuitem></term>
642
<listitem><para>Lists the documents alphabetically by the path to them.</para></listitem>
649
<para>The document list will per default visualize your history by shading the
650
entries for the most recent documents with a background color. If the document
651
was edited, an extra color is blended in. The most recent document has the
652
strongest color, so that you can easily find the documents you are working on.
653
This feature can be disabled in the
654
<link linkend="config-dialog-treeview">Documents</link> page
655
of the configuration dialog.</para>
656
<!-- Tree View was renamed to Documents - http://commit-digest.org/issues/2011-08-28/ -->
657
<para>The default location of the document list in the &kate; window is to the left of the
661
<!-- command line + Terminal-->
663
<sect2 id="kate-mdi-tools-konsole">
664
<title>The Built in Terminal Emulator</title>
666
<para><indexterm><primary>Terminal emulator</primary></indexterm>
667
The built in Terminal Emulator is a copy of the &kde; &konsole;
668
terminal application, for your convenience. It is available from the
669
<menuchoice><guimenu>View</guimenu><guisubmenu>Tools Views</guisubmenu>
670
<guimenuitem>Show Terminal</guimenuitem></menuchoice> menu item and will get the focus
671
whenever displayed. Additionally, if the <link
672
linkend="config-dialog-general-sync-konsole">Automatically synchronize
673
the terminal with the current document when possible</link> option is enabled, it will
674
change into the directory of the current document if
675
possible when it is displayed, or when the current document
678
<para>The default location in the &kate; window is at the bottom,
679
below the editing area.</para>
681
<para>You can configure the &konsole; using its &RMB; menu, for more
682
information, see the <ulink url="help:/konsole/index.htm">&konsole; manual</ulink>.</para>
684
<para>The built-in terminal emulator is provided by the Terminal Tool View plugin,
685
which is enabled by default.</para>
513
691
<sect1 id="fundamentals-using-sessions">
514
692
<title>Using Sessions</title>