# The Menu Entries

There are different menus and menu items in simple and advanced mode. The advanced mode is enabled by checking the option Enable power user mode (&kde; 3 mode) on the Appearance page in &kappname;s settings.

## The File Menu

&Ctrl;N File New

- This starts a new document in a new and independent editor window.

&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.

&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.

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.

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;.

&Ctrl;P File Print...

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

File Export as HTML

- Export your file in &HTML; format so your document can be viewed as a web page. This item is only displayed when the plugin Exporter is loaded.

&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 &kappname; closes it.

&Ctrl;Q File Quit

- This will close the editor window, if you have more than one instance of &kappname; running, through the New or New Window menu items, those instances will not be closed.

## The Edit Menu

&Ctrl;Z Edit Undo

- This is used to eliminate or reverse the most recent user action or operation.

&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 is a feature of &kde; that works invisibly to provide 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 is a feature of &kde; that works invisibly to provide a way to transfer data between applications.

&Ctrl;V Edit Paste

- This will insert the contents of the clipboard at the cursor position. The clipboard is feature of &kde; that works invisibly to provide a way to transfer data between applications.

Edit Copy as HTML

- This copies the currently selected text to the clipboard as &HTML;. This item is only displayed when the plugin Exporter is loaded.

&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 (Power user mode)

- Toggles Selection Mode. When the Selection Mode is BLOCK, you can make vertical selections, ⪚ select column 5 to 10 in lines 9 to 15. The status bar shows the current state of the Selection Mode, either BLOCK or LINE.

Meta&Ctrl;V Edit VI input Mode (Power user mode)

- Switch to a vi-like, modal editing mode. This 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 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 and Not found is displayed at the right side of the bar.

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

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

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

F3 Edit Find Next

- This repeats the last find operation, if any, without calling the incremental search bar.

&Shift;F3 Edit 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;R Edit Replace...

- This command opens the power search and replace bar. On the upper left side of the bar is 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 Next or Previous 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 Match Case will limit finds to entries that match the case (upper or lower) of each of the characters in the search pattern. Selection Only 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 green arrow icon at the right side of the power search and replace bar to switch to the incremental search bar.

&Ctrl;H Edit Find Selected

- Finds next occurrence of selected text.

&Ctrl;&Shift;H Edit Find Selected Backwards

- Finds previous occurrence of selected text.

&Ctrl;G Edit 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 icon on the left side of the bar.

## The View Menu

The View menu allows you to manage settings specific to the active editor, and to manage frames.

View New Window

- Create another window containing the current document. All changes to the document in one window are reflected in the other window and vice versa.

F7 View Switch to Command Line (Power user mode)

- Displays the Katepart command line at the bottom of the window. In the command line, type `help` to get help and `help list` to get a list of commands. For more information on the command line, see The Editor Component Command Line.

View Show the Javascript Console (Power user mode)

- This opens a tool view that allows you to run Javascript code interactively. For more information, see Extending &kate; with Scripts

View Schema (Power user mode)

- Select a font schema.

F10 View Dynamic Word Wrap

- The text lines will be wrapped at the view border on the screen.

View Dynamic Word Wrap Indicators (Power user mode)

- 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 Show Static Word Wrap Marker (Power user mode)

- If this option is checked, a vertical line will be drawn at the word wrap column as defined in the Settings Configure Editor... in the Editing tab. Please note that the word wrap marker is only drawn if you use a fixed pitch font.

F6 View Show Icon Border (Power user mode)

- 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.

F11 View 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 Show Scrollbar Marks (Power user mode)

- If this option is checked, the view will show marks on the vertical scrollbar.

F9 Show Folding Markers (Power user mode)

- If this option is checked, the marks for code folding will be hidden.

Code Folding (Power user mode)

- &Ctrl; &Shift;- Collapse Toplevel

- Collapse all toplevel regions in the document.

&Ctrl; &Shift;+ Expand Toplevel

- Expand all toplevel regions in the document.

&Ctrl; - Collapse One Local Level

- Collapse the region closest to the cursor.

&Ctrl; + Expand One Local Level

- Expand the region closest to the cursor.

Enlarge Font

- This increases the display font size.

Shrink Font

- This decreases the display font size.

## The Bookmarks Menu

This menu is only displayed, if you check the option Enable Power User Mode (&kde; 3 mode) on the Appearance page in &kappname;s settings.

&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; PgDown 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.

At the bottom of this menu, a list of markers appears if any markers are available for this window.

## 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 (Power user mode)

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

Tools Highlighting (Power user mode)

- 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 (Power user mode)

- 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 (Power user mode)

- 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.

&Ctrl;Space Tools Invoke Code Completion (Power user mode)

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

Tools Word Completion (Power user mode)

- 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 Automatic Spell Checking

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

Tools Spelling...

- This initiates the spellchecking program - a program designed to help the user catch and correct any spelling errors. Clicking on this entry will start the checker and bring up the speller dialog box through which the user can control the process. There are four settings lined up vertically in the center of the dialog with their corresponding labels just to the left. Starting at the top they are:

  Unknown word:

- Here, the spellchecker indicates the word currently under consideration. This happens when the checker encounters a word not in its dictionary - a file containing a list of correctly spelled words against which it compares each word in the editor.

Replace with:

- If the checker has any similar words in its dictionary the first one will be listed here. The user can accept the suggestion, type in his or her own correction, or choose a different suggestion from the next box.

Language:

- If you have installed multiple dictionaries, here you can select which dictionary/language should be used.

On the right side of the dialog box are 6 buttons that allow the user to control the spellcheck process. They are:

Add to Dictionary

- Pressing this button adds the Unknown word to the checker's dictionary. This means that in the future the checker will always consider this word to be correctly spelled.

Suggest

- The checker may list here a number of possible replacements for the word under consideration. Clicking on any one of the suggestions will cause that word to be entered in the Replace with box, above.

Replace

- This button has the checker replace the word under consideration in the document with the word in the Replace with box.

Replace All

- This button causes the checker to replace not only the current Unknown word: but to automatically make the same substitution for any other occurrences of this Unknown word in the document.

Ignore

- Activating this button will have the checker move on without making any changes.

Ignore All

- This button tells the checker to do nothing with the current Unknown word: and to pass over any other instances of the same word.

  This only applies to the current spellcheck run. If the checker is run again later it will stop on this same word.

Three more buttons are located horizontally along the bottom of the spellcheck dialog. They are:

Help

- This invokes the &kde; help system with the help page for this dialog.

Finished

- This button ends the spellcheck process, and returns to the document.

Cancel

- This button cancels the spellcheck process, all modifications are reverted, and you will return to your document.

Tools Spelling (from cursor)...

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

Tools Spellcheck Selection...

- Spellchecks the current selection.

Tools 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 ⪚ for automatic spellcheck of text in different languages.

Tools Clean Indentation

- This cleans the indentation for the current selection or for the line the cursor is currently in. Cleaning the indentation ensures that all your selected text follows the indentation mode you choose.

Tools Align

- Causes a realign of the current line or selected lines using the indentation mode and indentation settings in the document.

&Ctrl;D Tools Comment (Power user mode)

- This adds one space to the beginning of the line where the text cursor is located or to the beginning of any selected lines.

&Ctrl;&Shift;D Tools Uncomment (Power user mode)

- This removes one space (if any exist) from the beginning of the line where the text cursor is located or from the beginning of any selected lines.

&Ctrl;U Tools Uppercase

- Put the selected text or the letter after the cursor in uppercase.

&Ctrl;&Shift;U Tools Lowercase

- Put the selected text or the letter after the cursor in lowercase.

&Ctrl;&Alt;U Tools Capitalize

- Capitalize the selected text or the current word.

&Ctrl;J Tools Join Lines

- Joins the selected lines, or the current line and the line below with one white space character as a separator. Leading/trailing white space on joined lines is removed in the affected ends.

Tools Apply Word Wrap

- Apply static word wrapping on all the document. That means that a new line of text will automatically start when the current line exceeds the length specified by the Wrap words at option in the Editing tab in Settings Configure Editor...

If the plugin Insert File is enabled, you will find here an additional menu item Insert File....

## The Settings Menu

Settings Show Statusbar

- When checked, this displays a small bar at the bottom of the editor containing information about the status of the current document. When unchecked the status bar is hidden.

Settings Show Toolbar

- When checked, this displays a movable toolbar containing buttons used to initiate frequently used commands. When unchecked the toolbar is hidden.

Settings Show Path

- When selected, this displays in the titlebar the path (its location in the file system) of the current document. When unchecked the path is hidden.

Settings Configure Editor...

- This menu item opens a dialog whereby several different settings may be adjusted.

Settings Configure Shortcuts...

- This command opens a dialog box whereby the shortcuts may be changed. A display window shows the list of commands (actions) and their assigned shortcuts, alternates and global shortcuts. The Search line above the list window is used to filter the shortcut list. Selecting an action with a &LMB; click (either on the action name or shortcut cell for the default shortcut or on the alternate cell for an alternative) displays the Default and Custom radio buttons below the selected action.

  To assign or change a shortcut click on the None button. Its label changes then to Input, now press the new key combination for the action.

  For example, with the About &kde; action selected in the display window, press the &Ctrl;, &Alt; and the K key on the keyboard. This would mean that anytime you hold down the &Ctrl; and &Alt; buttons and pressed K (while using &kappname;) the About &kde; display box would be called.

  Use the buttons at the bottom of the dialog to set all shortcuts back to their defaults, print the shortcut list or cancel all changes. Click the OK button to close the dialog and accept all changes.

Settings Configure Toolbars...

- This will open the dialog whereby the toolbar configuration may be changed. The user can choose which shortcut buttons should appear on the toolbar. A display window on the left lists the commands available to placed on the toolbar. A display on the right lists those commands already on the toolbar. A set of four arrow buttons between the two displays manipulates the selections. The right pointing arrow places any command selected in the left pane onto the right pane, i.e., it is added to the toolbar. The left arrow does just the opposite, removing any action selected in the right window from the toolbar. The up and down pointing arrows change the position of an action selected in the right window which changes the position of its button in the toolbar.

## The Help Menu

&help.menu.documentation;