Editor functions. More...
#include "config.h"
#include <wchar.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "complete/lib.h"
#include "history/lib.h"
#include "key/lib.h"
#include "menu/lib.h"
#include "enter.h"
#include "functions.h"
#include "protos.h"
#include "state.h"
#include "wdata.h"
Go to the source code of this file.
Functions | |
void | replace_part (struct EnterState *es, size_t from, const char *buf) |
Search and replace on a buffer. | |
static int | op_editor_complete (struct EnterWindowData *wdata, int op) |
Complete filename or alias - Implements enter_function_t -. | |
static int | op_editor_history_down (struct EnterWindowData *wdata, int op) |
Scroll down through the history list - Implements enter_function_t -. | |
static int | op_editor_history_search (struct EnterWindowData *wdata, int op) |
Search through the history list - Implements enter_function_t -. | |
static int | op_editor_history_up (struct EnterWindowData *wdata, int op) |
Scroll up through the history list - Implements enter_function_t -. | |
static int | op_editor_backspace (struct EnterWindowData *wdata, int op) |
Delete the char in front of the cursor - Implements enter_function_t -. | |
static int | op_editor_backward_char (struct EnterWindowData *wdata, int op) |
Move the cursor one character to the left - Implements enter_function_t -. | |
static int | op_editor_backward_word (struct EnterWindowData *wdata, int op) |
Move the cursor to the beginning of the word - Implements enter_function_t -. | |
static int | op_editor_bol (struct EnterWindowData *wdata, int op) |
Jump to the beginning of the line - Implements enter_function_t -. | |
static int | op_editor_capitalize_word (struct EnterWindowData *wdata, int op) |
Capitalize the word - Implements enter_function_t - This function handles: | |
static int | op_editor_delete_char (struct EnterWindowData *wdata, int op) |
Delete the char under the cursor - Implements enter_function_t -. | |
static int | op_editor_eol (struct EnterWindowData *wdata, int op) |
Jump to the end of the line - Implements enter_function_t -. | |
static int | op_editor_forward_char (struct EnterWindowData *wdata, int op) |
Move the cursor one character to the right - Implements enter_function_t -. | |
static int | op_editor_forward_word (struct EnterWindowData *wdata, int op) |
Move the cursor to the end of the word - Implements enter_function_t -. | |
static int | op_editor_kill_eol (struct EnterWindowData *wdata, int op) |
Delete chars from cursor to end of line - Implements enter_function_t -. | |
static int | op_editor_kill_eow (struct EnterWindowData *wdata, int op) |
Delete chars from the cursor to the end of the word - Implements enter_function_t -. | |
static int | op_editor_kill_line (struct EnterWindowData *wdata, int op) |
Delete all chars on the line - Implements enter_function_t -. | |
static int | op_editor_kill_whole_line (struct EnterWindowData *wdata, int op) |
Delete all chars on the line - Implements enter_function_t -. | |
static int | op_editor_kill_word (struct EnterWindowData *wdata, int op) |
Delete the word in front of the cursor - Implements enter_function_t -. | |
static int | op_editor_quote_char (struct EnterWindowData *wdata, int op) |
Quote the next typed key - Implements enter_function_t -. | |
static int | op_editor_transpose_chars (struct EnterWindowData *wdata, int op) |
Transpose character under cursor with previous - Implements enter_function_t -. | |
static int | op_help (struct EnterWindowData *wdata, int op) |
Display Help - Implements enter_function_t -. | |
static int | op_redraw (struct EnterWindowData *wdata, int op) |
Redraw the screen - Implements enter_function_t -. | |
int | enter_function_dispatcher (struct MuttWindow *win, int op) |
Perform an Enter function - Implements function_dispatcher_t -. | |
Variables | |
const struct MenuFuncOp | OpEditor [] |
Functions for the Editor Menu. | |
const struct MenuOpSeq | EditorDefaultBindings [] |
Key bindings for the Editor Menu. | |
static const struct EnterFunction | EnterFunctions [] |
All the NeoMutt functions that Enter supports. | |
Editor functions.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file functions.c.
void replace_part | ( | struct EnterState * | es, |
size_t | from, | ||
const char * | buf | ||
) |
Search and replace on a buffer.
es | Current state of the input buffer |
from | Starting point for the replacement |
buf | Replacement string |
Definition at line 132 of file functions.c.
const struct MenuFuncOp OpEditor[] |
Functions for the Editor Menu.
Definition at line 53 of file functions.c.
const struct MenuOpSeq EditorDefaultBindings[] |
Key bindings for the Editor Menu.
Definition at line 88 of file functions.c.
|
static |
All the NeoMutt functions that Enter supports.
Definition at line 447 of file functions.c.