Minimum Profit actions are editor commands that can be directly bound to the menu or a key.
Shows the "About Minimum Profit" information.
Build project... (
Invokes the building of a Make project. If the
Makefile file exists in the
working directory, all targets are extracted from it and shown in a list dialog
for the user to select one. The selected one will be called as the only argument
make program and its output read. All output will be catched and shown
in a read-only document. Compiler errors and warnings will be highlighted and
can be navigated by using the
seek_prev actions (keys
open_under_cursor action can be used to edit each error or warning.
Check for updates...
Checks if there is a new version.
Closes the active document. If there are unsaved changes, a confirmation dialog is shown.
Closes all open documents.
Takes the (probably partial) word under the cursor and searches for words in the current document that start with it. If more than one is found, a list dialog is shown to make a selection. The word will be replaced with the selected one.
Uses a similar approach than the
complete action, but using the current tags
file as the completion list. If no tags file exist in the working directory,
the ctags program is invoked to build it.
For other uses of the tags file, see
Copy block (
Copies the currently selected block to the clipboard.
Cut lines containing a string...
Cuts to the clipboard all lines from the document or block that match a regular expression.
Cut block (
Copies the currently selected block to the clipboard and deletes the block.
Delete character (
Delete the character over the cursor.
Delete character to the left (
Deletes the character to the left of the cursor.
Delete line (
Deletes the line under the cursor.
Deletes the currently selected block.
Shows a dialog with the list of currently open documents. The list cursor will be over the active one and the documents with pending modifications will be prefixed with an asterisk. Selecting a different one will make it become the active.
Set charset encoding...
Shows a dialog asking for a string describing the charset encoding that will be used when saving or opening new documents. If an empty string is entered, the current locale will be used.
See Mininum Profit character encoding support for more information.
Execute MPSL code... (
Shows a dialog asking for a string of MPSL code that will be executed.
Execute document as MPSL
Executes the active document as MPSL code.
Execute action on document...
Shows the full list of available actions in a dialog and ask the user to execute one of it over the current document.
Run system command...
Shows a dialog asking for a system command to execute. If the command is preceded by the pipe symbol (|), the active document will be fed as the standard input of the command; otherwise, the standard output of the command will be inserted in the cursor position.
Closes all documents and exists Minimum Profit.
Filter selection through system command...
Filters the block selection (or the full document, if no selection is active) through a system command.
Search tag... (
Shows a dialog asking for a tag to search. The tags file will be read from the working directory and the tag searched there; all symbols starting with it will be shown in a list dialog. When selecting a tag from that list, the file containing it will be open and the cursor moved to where the tag is. This is a useful way of finding where a function or variable is defined.
If no tags file exist in the working directory, the ctags program is invoked to build it.
For other uses of the tags file, see
Go to line... (
Shows a dialog asking for a line number. If accepted, the current document cursor will move to that line (if existent).
Grep (find inside) files...
Shows a dialog asking for a string to be searched, and an optional spec of files to search the string in. If no spec is given, all files in the working directory are scanned. Matches are shown in a read-only document, and each match can be directly open by using the 'open_under_cursor' action.
This is a useful way to find where a function or variable is used.
Help on word over cursor (
Picks the word under the cursor and asks the underlying system for help about that term.
Shows a dialog to open a read-only, hexadecimal view of a file.
Ignore last misspelled word
Ignores the last misspelled word found by
seek_misspelled by adding it
to a whitelist so it won't be found again.
Indent block (
Indents the block by one tab space, or the current line if the is no selected block.
Insert line (
Inserts a new line. If the cursor is in the middle of a line, it's split in two.
Insert next item
Inserts a new numbered item into the text. Numbered items are as this way:
Every time a new item is requested, the current document is scanned for the greatest number and the next one is inserted.
Insert real tab character (
Inserts a tab character (\t or ASCII 9) in the cursor position.
This is done regardless of the
variable; see the
insert_tab action for more configurable tab
Insert space (
Inserts a space, triggering word wrapping, if active.
Insert tab (
Inserts a tabulator, triggering word wrapping, if active. The tab
will be a real tab or a set of spaces regarding the
configuration variable. For a hardcoded tab character (\t) see
Shows a list dialog with the names of the templates for the user to select one, that will be inserted in the cursor position.
Insert time stamp
Inserts a time stamp in the cursor position. The format is the one given
mp.config.time_stamp_format configuration directive.
Join a paragraph in one line
Joins the text from the cursor position to the next empty line as one paragraph.
Shows a dialog asking for line configuration options, like word wrapping, end of line string, etc.
Loads a session, previously saved by
Mark beginning/end of block (
Marks the beginning or the end of the block.
Marks (selects) all the document.
Mark vertical block (
Marks the beginning or the end of a vertical (also known as rectangular) block.
Calls the menu.
Mark using mouse dragging (
This action is called by the underlying driver when the mouse is used to drag over text. It must not be called nor bound to a key.
Beginning of document (
Moves the cursor to the beginning of the document (first line, first column).
Beginning of line (
Moves the cursor to the beginning of the current line (first column).
Line down (
Moves the cursor to the next line.
End of document (
Moves the cursor to the last line of the document.
End of line (
Moves the cursor to the end of the current line.
Character left (
Moves the cursor one character to the left. If it's in the beginning of a line, moves to the last character of the previous line.
Mouse wheel down (
Moves the cursor four lines down.
Mouse wheel up (
Moves the cursor four lines up.
Page down (
Moves the cursor a page down.
Page up (
Moves the cursor a page up.
Character right (
Moves the cursor one character to the right. If it's over the end of the line, moves to the first character of the next line.
Move one section down
Moves to the previous section, if the current document has a syntax detection that include sections.
Move one section up
Moves to the next section, if the current document has a syntax detection that include sections.
Move cursor to mouse click (
Moves the cursor to where the mouse is. This action is called by the underlying system and must not be directly called nor bound to a key.
Line up (
Moves the cursor to the previous line.
Word left (
Moves the cursor to the beginning of the previous word.
Word right (
Moves the cursor to the beginning of the next word.
Creates a new unnamed document.
Select the next document as the active one. The list of documents is circular; if the active one is the last, the first one is selected.
Shows a dialog to open a file. Its behaviour and look are system-dependent.
If the document to be opened is password-protected, a dialog asking for the password will also appear.
Edit configuration file
Opens the user configuration file for editing. It doesn't have to exist.
Open dropped files (
Opens all files dropped by the user from an external file manager.
Opens a folder with the directory editor.
Edit templates file
Opens the templates file for edition. Templates defined here can be later
inserted by calling
insert_template. See the
included in the documentation for an example of the accepted format.
Open file under cursor (
Picks the word in the current document under the cursor, accepts it as a document name and tries to open it. If it's in the format string:number, is accepted as a file name and a line number.
Paste block (
Pastes the text in the clipboard into the cursor position.
Executes the "Pipes" game.
Play macro (
Replays all keystrokes recorded during the previous learning mode,
activated by a call to
Select the previous document as the active one. The list of documents is circular; if the active one is the first, the last one is selected.
Record macro (
Toggles learning mode. When active, all keystrokes are recorded to
further execute them by a call to
Redoes the previously undone operation, if any.
Repeated words options...
Sets the options for the
Shows the search and replace dialog box.
Reverts the active document to the state on disk.
Saves the active document. If it's unnamed,
save_as is called instead.
Shows a dialog asking for a file name to save the current document as. Its behaviour and look are system-dependent.
Saves all documents and its positions as a session to be later loaded
Section list... (
Shows a list with the sections found in the current document. Selecting one of them moves the cursor there.
Search text... (
Shows the search text dialog.
Search misspelled word (
Searches for the next misspelled word in the current document. If one
is found, the cursor is moved there. If it's a false positive, the
ignore_last_misspell action can be called to add the recently found
word to a whitelist so it won't be found again.
Search next (
Searches the next occurrence of the string entered by the
Move to next instance of current char (
Searches for the next occurrence of the char under the cursor. This is useful, for instance, to jump to the next paren or brace.
Search previous (
seek_next, but searching backwards.
Move to previous instance of current char (
Searches for the previous occurrence of the char under the cursor. This is useful, for instance, to jump to the previous paren or brace.
Search repeated word (
Searches for repeated words. Controlled by the configuration directives
mp.config.rw_max_dist. A searching is done
from the cursor position trying to find two words nearer from each
other up to a maximum of the specified distance and that start or
end with the same letters. If a pair is found, the words are
highlighted as spelling errors and the cursor moved over the first
one. Otherwise, a message marking the end is shown and nothing is done.
Shows a dialog asking (twice) for a password to protect the active document with when it's saved. From that moment on, each time the document is tried to open the password will be asked for.
Minimum Profit encrypts documents using a variant of the ARCFOUR algorithm.
Save modified texts
Saves all texts with pending modifications.
Shows a dialog asking for tabulator configuration options, like tab size, convert to spaces, etc.
Toggle insert/overwrite mode (
Toggles between insert and overwrite modes.
toggles spellchecking. When active, misspelled words will be shown underlined.
Undoes the last operation.
Unindent block (
Unindents the block by one tab space, or the current line if the is no selected block.
Unmark block (
Unmarks the selected block.
Opens the version control options, if current directory has a detected one.
Counts the number of words and lines in the active document.
Word-wrap a paragraph (
Rebuilds the text from the cursor position to the following empty
line using the wordwrapping setup. Wordwrapping must be set (see
Bigger font (
Selects a bigger font (only for GUIs).
Smaller font (
Selects a smaller font (only for GUIs).