# The Menu Entries

## The File Menu

&Ctrl;N File New

  This command starts a new document in the editing window. In the Documents list on the left the new file is named Untitled.

&Ctrl;O File Open...

  Displays a standard &kde; Open File dialog. Use the file view to select the file you want to open, and click on Open to open it.

File Open Recent

  This is a shortcut to open recently saved documents. Clicking on this item opens a list to the side of the menu with several of the most recently saved files. Clicking on a specific file will open it in &kappname; - if the file still resides at the same location.

File Open With

  This submenu presents a list of applications known to handle the &MIME; type of your current document. Activating an entry will open the current document with that application.

  In addition, an entry Other... launches the open with dialog box that allows you to select another application to open the active file. Your file will still be open in &kate;.

&Ctrl;S File Save

  This saves the current document. If there has already been a save of the document then this will overwrite the previously saved file without asking for the user's consent. If it is the first save of a new document the save as dialog (described below) will be invoked.

&Ctrl;&Shift;S File Save As...

  This allows a document to be saved with a new file name. This is done by means of the file dialog box described above in the Open section of this help file.

File Save As with Encoding

  Save a document with a new file name in a different encoding.

File Save Copy As

  Save a copy of the document with a new file name and continue editing the original document.

&Ctrl;L File Save All

  This command saves all modified open files.

F5 File Reload

  Reloads the active file from disk. This command is useful if another program or process has changed the file while you have it open in &kappname;.

File Reload All

  Reloads all opened files..

&Ctrl;P File Print...

  Opens a simple print dialog allowing the user to specify what, where, and how to print.

File Export as HTML

  Save the currently open document as an &HTML; file, which will be formatted using the current syntax highlighting and color scheme settings.

&Ctrl;W File Close

  Close the active file with this command. If you have made unsaved changes, you will be prompted to save the file before &kate; closes it.

File Close Other

  Close other open documents.

File Close All

  This command closes all the files you have open in &kate;.

File Close Orphaned

  Close all documents in the file list, which could not be reopened during startup, because they are not accessible anymore.

&Ctrl;Q File Quit

  This command closes &kate; and any files you were editing. If you have made unsaved changes to any of the files you were editing, you will be prompted to save them.

## The Edit Menu

&Ctrl;Z Edit Undo

  Undo the last editing command (typing, copying, cutting &etc;)

  This may undo several editing commands of the same type, like typing in characters.

&Ctrl;&Shift;Z Edit Redo

  This will reverse the most recent change (if any) made using Undo.

&Ctrl;X Edit Cut

  This command deletes the current selection and places it on the clipboard. The clipboard works invisibly and provides a way to transfer data between applications.

&Ctrl;C Edit Copy

  This copies the currently selected text to the clipboard so that it may be pasted elsewhere. The clipboard works invisibly and provides a way to transfer data between applications.

&Ctrl;V Edit Paste

  This will insert the first item in the clipboard at the cursor position. The clipboard works invisibly and provides a way to transfer data between applications.

  If Overwrite Selection is enabled, the pasted text will overwrite the selection, if any.

&Ctrl;&Shift;&Ins; Edit Paste Selection

  This will paste the mouse selection contents that were chosen previously. Mark some text with the mouse pointer to paste it in the currently open file using this menu item.

Edit Swap with clipboard contents

  This will swap the selected text with the clipboard contents.

Edit Clipboard History

  This submenu will display the beginning of portions of text recently copied to the clipboard. Select an item from this menu to paste it in the currently open file.

Edit Copy as HTML

  Copy the selection as &HTML;, formatted using the current syntax highlighting and color scheme settings.

&Ctrl;A Edit Select All

  This will select the entire document. This could be very useful for copying the entire file to another application.

&Ctrl;&Shift;A Edit Deselect

  Deselects the selected text in the editor if any.

&Ctrl;&Shift;B Edit Block Selection Mode

  Toggles Selection Mode. When the Selection Mode is BLOCK, the status bar contains the string [BLOCK] and you can make vertical selections, &eg; select column 5 to 10 in lines 9 to 15.

Edit Input Modes

  Switch between a normal and a vi-like, modal editing mode. The vi input mode supports the most used commands and motions from vim's normal and visual mode and has an optional vi mode statusbar. This status bar shows commands while they are being entered, output from commands and the current mode. The behavior of this mode can be configured in the Vi Input Mode section of the Editing page in &kappname;'s settings dialog.

Ins Edit Overwrite Mode

  Toggles the Insert/Overwrite modes. When the mode is INS, you insert characters where the cursor is. When the mode is OVR, writing characters will replace the current characters if your cursor is positioned before any character. The status bar shows the current state of the Overwrite Mode, either INS or OVR.

&Ctrl;F Edit Find...

  This opens the incremental search bar at the bottom of the editor window. On the left side of the bar is a button with an icon to close the bar, followed by a small text box for entering the search pattern.

  When you start entering characters of your search pattern, the search starts immediately. If there is a match in the text this is highlighted and the background color of the entry field changes to light green. If the search pattern does not match any string in the text, this is indicated by a light red background color of the entry field.

  Use the or button to jump to the next or previous match in the document.

  Matches in the document are highlighted even when you close the search bar. To clear this highlighting, press the &Esc; key.

  You can choose whether the search should be case sensitive. Selecting will limit finds to entries that match the case (upper or lower) of each of the characters in the search pattern.

  Click on the button at the right side of the incremental search bar to switch to the power search and replace bar.

F3 Edit Find Variants Find Next

  This repeats the last find operation, if any, without calling the incremental search bar, and searching forwards through the document starting from the cursor position.

&Shift;F3 Edit Find Variants Find Previous

  This repeats the last find operation, if any, without calling the incremental search bar, and searching backwards instead of forwards through the document.

&Ctrl;H Edit Find Variants Find Selected

  Finds next occurrence of selected text.

&Ctrl;&Shift;H Edit Find Variants Find Selected Backwards

  Finds previous occurrence of selected text.

&Ctrl;R Edit Replace...

  This command opens the power search and replace bar. On the upper left side of the bar is a button with an icon to close the bar, followed by a small text box for entering the search pattern.

  You can control the search mode by selecting Plain text, Whole words, Escape sequences or Regular expression from the drop down box.

  If Escape sequences or Regular expression are selected, the Add... menuitem at the bottom of the context menu of the text boxes will be enabled and allows you to add escape sequences or regular expression items to the search or replace pattern from predefined lists.

  Use the or button to jump to the next or previous match in the document.

  Enter the text to replace with in the text box labeled Replace and click the Replace button to replace only the highlighted text or the Replace All button to replace the search text in the whole document.

  You can modify the search and replace behavior by selecting different options at the bottom of the bar. Selecting will limit finds to entries that match the case (upper or lower) of each of the characters in the search pattern. will search and replace within the current selection only. The Find All button highlights all matches in the document and shows the number of found matches in a small popup.

  Click on the button at the right side of the power search and replace bar to switch to the incremental search bar.

&Ctrl;6 Edit Go To Go to Matching Bracket

  Move the cursor to the associated opening or closing bracket.

&Ctrl;&Shift;6 Edit Go To Select to Matching Bracket

  Selects the text between associated opening and closing brackets.

Edit Go To Go to Previous Modified Line

  Lines that were changed since opening the file are called modified lines. This action jumps the previous modified line.

Edit Go To Go to Next Modified Line

  Lines that were changed since opening the file are called modified lines. This action jumps the next modified line.

&Ctrl;G Edit Go To Go to Line...

  This opens the goto line bar at the bottom of the window which is used to have the cursor jump to a particular line (specified by number) in the document. The line number may be entered directly into the text box or graphically by clicking on the up or down arrow spin controls at the side of the text box. The little up arrow will increase the line number and the down arrow decrease it. Close the bar with a click on the button with an icon on the left side of the bar.

## The View Menu

View New Window

  Opens another instance of &kate;. The new instance will be identical to your previous instance.

&Alt;&Right; View Next Tab

  Activates the next tab in the tabbar.

&Alt;&Left; View Previous Tab

  Activates the previous tab in the tabbar.

&Ctrl;&Alt;O View Quick Open

  Show a search field and a list of opened files in the editor area. While entering text in the search field the document names and document &URL;s are searched for matching text. While entering text in the search field you can use the cursor keys &Up; and &Down; to navigate in the list view. Pressing the &Enter; key or double clicking on an item in the list switches the view to the document selected in the list view. This makes switching between documents easier, if there are a lot of them open.

  This action is available also using the icon at the top right of the editor window.

&Shift;F8 View Split View Previous Split View

  Focus the previous document view, if you have split the editor area in more views.

F8 View Split View Next Split View

  Focus the next document view, if you have split the editor area in more views.

View Split View Left Split View

  Focus the split view intuitively on the left, using the cursor position to disambiguate if necessary.

View Split View Right Split View

  Focus the split view intuitively on the right, using the cursor position to disambiguate if necessary.

View Split View Upward Split View

  Focus the split view intuitively upward, using the cursor position to disambiguate if necessary.

View Split View Downward Split View

  Focus the split view intuitively downward, using the cursor position to disambiguate if necessary.

&Ctrl;&Shift;L View Split View Split Vertical

  This will split the frame (which may be the main editing area) in two equally sized frames, the new one to the left of the current one. The new frame gets the focus, and will display the same document as the old one.

  See also Working with the &kate; MDI.

&Ctrl;&Shift;T View Split View Split Horizontal

  Splits the current frame (which may be the main editing area) in two equally sized frames, the new one below the current one. The new frame gets the focus, and displays the same document as the old one.

  See also Working with the &kate; MDI

View Split View Move Document to New Vertical Split

  This will split the currently active view vertically into two views and move the currently active document to right view.

  See also Working with the &kate; MDI.

View Split View Move Document to New Horizontal Split

  This will split the currently active view horizontally into two views and move the currently active document to view below.

  See also Working with the &kate; MDI

View Split View Toggle Orientation

  Switch between horizontal and vertical split.

&Ctrl;&Shift;R View Split View Close Current View

  Closes the active frame, which can be identified as the one displaying a blinking cursor. This is disabled, if there is only one frame (the main editing area).

  No documents get closed by closing a frame – they will still be available in the View Menu as well as in the File List.

  See also Working with the &kate; MDI

View Split View Close Inactive Views

  Closes all frames except the active frame (the one with a blinking cursor). This is disabled, if there is only one frame (the main editing area).

  No documents get closed by closing a frame – they will still be available in the View Menu as well as in the File List.

View Split View Hide Inactive Views

  This hides all split views except the currently active one.

View Split View Move Splitter Left

  When Split View is enabled, this will move the border between two vertically split documents further left.

View Split View Move Splitter Right

  When Split View is enabled, this will move the border between two vertically split documents further right.

View Split View Move Splitter Up

  When Split View is enabled, this will move the border between two horizontally split documents further up.

View Split View Move Splitter Down

  When Split View is enabled, this will move the border between two horizontally split documents further down.

Some common actions in the View Split View menu are available using the button at the top right corner of the editor window

View Tool Views
  &Ctrl;&Alt;&Shift;F View Tool Views Show Sidebars

    Toggles the display of the sidebar button rows. This command does not affect the display of the sidebar content widgets, any sidebar that is visible will stay visible, and if you assigned shortcuts to the commands below those will of course continue to work.

  View Tool Views Show Plugin

    A list of all enabled plugins. Use the checkbox in front of each item to toggle the display of the tool view.

F7 View Switch to Command Line

  This command will toggle the display of the built-in command line.

&Ctrl;+ View Enlarge Font

  This increases the display font size.

&Ctrl;- View Shrink Font

  This decreases the display font size.

View Schema

  This menu lists the available color schemes. You can change the schema for the current view here, to change the default schema you need to use the Fonts & Colors page of the config dialog.

F10 View Word Wrap Dynamic Word Wrap

  Toggles dynamic word wrap in the current view. Dynamic word wrap makes all the text in a view visible without the need for horizontal scrolling by rendering one actual line on more visual lines as needed.

View Word Wrap Dynamic Word Wrap Indicators

  Choose when and how the dynamic word wrap indicators should be displayed. This is only available if the Dynamic Word Wrap option is checked.

View Word Wrap Show Static Word Wrap Marker

  Toggles the display of a vertical line indicating the position of the wrap width as configured in the config dialog. This feature requires that you use a true fixed-width font.

F6 View Borders Show Icon Border

  This is a toggle item. Setting it on checked will make the Icon Border visible in the left side of the active editor, and vice versa. The Icon Border indicates the positions of the marked lines in the editor.

F11 View Borders Show Line Numbers

  This is a toggle Item. Setting it on checked will make a pane displaying the line numbers of the document visible in the left border of the active editor, and vice versa.

View Borders Show Scrollbar Marks

  Toggles the visualization of bookmarks (and other marks) on the vertical scrollbar. When enabled, a mark is represented by a thin line in the mark color at the scrollbar, clicking the &MMB; on the line will scroll the view to a position near the mark.

View Borders Show Scrollbar Mini-Map

  This will replace the scrollbar with a visualization of the current document. For more information on the scrollbar minimap, see the Scrollbar Minimap section of the &katepart; Handbook.

View Code Folding

  These options pertain to code folding:

  F9 Show Folding Markers

    Toggles the display of the folding marker pane in the left side of the view.

  Fold Current Node

    Collapse the region that contains the cursor.

  Unfold Current Node

    Expand the region that contains the cursor.

  &Ctrl;&Shift;- Fold Toplevel Nodes

    Collapse all toplevel regions in the document. Click on the right pointing triangle to expand all toplevel regions.

  &Ctrl;&Shift;+ Unfold Toplevel Nodes

    Expand all toplevel regions in the document.

Show Non-Printable Spaces

  Show/hide bounding box around non-printable spaces.

## The Bookmarks Menu

Below the entries described here, one entry for each bookmark in the active document will be available. The text will be the first few words of the marked line. Choose an item to move the cursor to the start of that line. The editor will scroll as necessary to make that line visible.

&Ctrl;B Bookmarks Set Bookmark

  Sets or removes a bookmark in the current line of the active document. (If it's there, it is removed, otherwise one is set.)

Bookmarks Clear All Bookmarks

  This command will remove all the markers from the document as well as the list of markers which is appended at the bottom of this menu item.

&Alt;&PgUp; Bookmarks Previous

  This will move the cursor to beginning of the first above line with a bookmark. The menuitem text will include the line number and the first piece of text on the line. This item is only available when there is a bookmark in a line above the cursor.

&Alt;&PgDn; Bookmarks Next

  This will move the cursor to beginning of the next line with a bookmark. The menuitem text will include the line number and the first piece of text on the line. This item is only available when there is a bookmark in a line below the cursor.

## The Sessions Menu

This menu contains entries for using and managing &kate; sessions. For more information, read Using Sessions.

Sessions New

  Creates a new empty session. All currently open files will be closed.

Sessions Open Session...

  Open an existing session. The Session Chooser dialog is displayed to let you choose one.

Sessions Quick Open Session

  This submenu lets you open an existing session.

Sessions Save Session

  Save the current session. If the session is anonymous, you will be prompted for a session name.

Sessions Save Session As...

  Save the current session under a new name. You are prompted for a name to use.

Sessions Manage Sessions...

  Displays the Session Manager dialog which allows you to rename and delete sessions.

## The Tools Menu

Tools Read Only Mode

  Set the current document to Read Only mode. This prevents any text addition and any changes in the document formatting.

Tools Mode

  Choose the filetype scheme you prefer for the active document. This overwrites the global filetype mode set in Settings Configure &kate;... in the Filetypes tab for your current document only.

Tools Highlighting

  Choose the Highlighting scheme you prefer for the active document. This overwrites the global highlighting mode set in Settings Configure Editor... for your current document only.

Tools Indentation

  Choose the style of indentation you want for your active document. This overwrites the global indentation mode set in Settings Configure Editor... for your current document only.

Tools Encoding

  You can overwrite the default encoding set in Settings Configure Editor... in the Open/Save page to set a different encoding for your current document. The encoding you set here will be only valid for your current document.

Tools End of Line

  Choose your preferred end of line mode for your active document. This overwrites the global end of line mode set in Settings Configure Editor... for your current document only.

Tools Add Byte Mark Order (BOM)

  Checking this action you can explicitly add a byte order mark for unicode encoded documents. The byte order mark (BOM) is a Unicode character used to signal the endianness (byte order) of a text file or stream, for more information see Byte Order Mark.

Tools Scripts

  This submenu contains a list of all scripted actions. The list can easily be modified by writing your own scripts. This way, &kate; can be extended with user-defined tools.

  There is a complete list of scripts in the &katepart; documentation.

&Ctrl;&Space; Tools Invoke Code Completion

  Manually invoke command completion, usually by using a shortcut bound to this action.

Tools Word Completion

  Reuse Word Below (&Ctrl; 9) and Reuse Word Above (&Ctrl; 8) complete the currently typed text by searching for similar words backward or forward from the current cursor position. Shell Completion pops up a completion box with matching entries.

&Ctrl;&Shift;O Tools Spelling Automatic Spell Checking

  When Automatic Spell Checking is enabled, wrongly spelled text is underlined in the document on-the-fly.

Tools Spelling Spelling...

  This initiates the spellchecking program - a program designed to help the user catch and correct any spelling errors.

  For more information on how to use the &kde; spellchecking program, see the Check Spelling section of the &kde; Fundamentals documentation.

Tools Spelling Spelling (from cursor)...

  This initiates the spellchecking program but it starts where your cursor is instead of at the beginning of the document.

Tools Spelling Spellcheck Selection...

  Spellchecks the current selection.

Tools Spelling Change Dictionary

  Displays a drop down box with all available dictionaries for spellchecking at the bottom of the editor window. This allows easy switching of the spellcheck dictionary &eg; for automatic spellcheck of text in different languages.

## The Settings and Help Menu

&kate; has the common &kde; Settings and Help menu items, for more information read the sections about the Settings Menu and Help Menu of the &kde; Fundamentals with these additional entries:

Settings Color Theme

  Use a different color scheme from the system’s global color schemes described in the &systemsettings; module Colors.

Settings Show Tabs

  Tabs are moveable using the &LMB; and have actions in the context menu to close documents, copy the path to the clipboard or open the folder of the document in the filemanager. Using the Quick Open button makes switching between documents easy. Click the button with the &LMB; to open a menu with actions from the View Split View menu.

Settings Show Path in Titlebar

  If enabled the full path of the active document is displayed, otherwise only the filename. This is useful if you edit several files with the same filename to distinguish them.