Enter functions. More...
#include "config.h"
#include <string.h>
#include <wchar.h>
#include "mutt/lib.h"
#include "config/helpers.h"
#include "core/lib.h"
#include "alias/lib.h"
#include "gui/lib.h"
#include "mutt.h"
#include "functions.h"
#include "browser/lib.h"
#include "complete/lib.h"
#include "history/lib.h"
#include "pattern/lib.h"
#include "enter.h"
#include "keymap.h"
#include "mutt_history.h"
#include "mutt_mailbox.h"
#include "muttlib.h"
#include "opcodes.h"
#include "state.h"
#include "wdata.h"
Go to the source code of this file.
Functions | |
static void | replace_part (struct EnterState *es, size_t from, const char *buf) |
Search and replace on a buffer. More... | |
static int | complete_file_simple (struct EnterWindowData *wdata) |
Complete a filename. More... | |
static int | complete_alias_complete (struct EnterWindowData *wdata) |
Complete an Alias. More... | |
static int | complete_label (struct EnterWindowData *wdata) |
Complete a label. More... | |
static int | complete_pattern (struct EnterWindowData *wdata) |
Complete a NeoMutt Pattern. More... | |
static int | complete_alias_query (struct EnterWindowData *wdata) |
Complete an Alias Query. More... | |
static int | complete_command (struct EnterWindowData *wdata) |
Complete a NeoMutt Command. More... | |
static int | complete_file_mbox (struct EnterWindowData *wdata) |
Complete a Mailbox. More... | |
static int | complete_nm_query (struct EnterWindowData *wdata) |
Complete a Notmuch Query. More... | |
static int | complete_nm_tag (struct EnterWindowData *wdata) |
Complete a Notmuch Tag. More... | |
static int | op_editor_complete (struct EnterWindowData *wdata, int op) |
Complete filename or alias - Implements enter_function_t -. More... | |
static int | op_editor_history_down (struct EnterWindowData *wdata, int op) |
Scroll down through the history list - Implements enter_function_t -. More... | |
static int | op_editor_history_search (struct EnterWindowData *wdata, int op) |
Search through the history list - Implements enter_function_t -. More... | |
static int | op_editor_history_up (struct EnterWindowData *wdata, int op) |
Scroll up through the history list - Implements enter_function_t -. More... | |
static int | op_editor_mailbox_cycle (struct EnterWindowData *wdata, int op) |
Cycle among incoming mailboxes - Implements enter_function_t -. More... | |
static int | op_editor_backspace (struct EnterWindowData *wdata, int op) |
Delete the char in front of the cursor - Implements enter_function_t -. More... | |
static int | op_editor_backward_char (struct EnterWindowData *wdata, int op) |
Move the cursor one character to the left - Implements enter_function_t -. More... | |
static int | op_editor_backward_word (struct EnterWindowData *wdata, int op) |
Move the cursor to the beginning of the word - Implements enter_function_t -. More... | |
static int | op_editor_bol (struct EnterWindowData *wdata, int op) |
Jump to the beginning of the line - Implements enter_function_t -. More... | |
static int | op_editor_capitalize_word (struct EnterWindowData *wdata, int op) |
Capitalize the word - Implements enter_function_t - This function handles: More... | |
static int | op_editor_delete_char (struct EnterWindowData *wdata, int op) |
Delete the char under the cursor - Implements enter_function_t -. More... | |
static int | op_editor_eol (struct EnterWindowData *wdata, int op) |
Jump to the end of the line - Implements enter_function_t -. More... | |
static int | op_editor_forward_char (struct EnterWindowData *wdata, int op) |
Move the cursor one character to the right - Implements enter_function_t -. More... | |
static int | op_editor_forward_word (struct EnterWindowData *wdata, int op) |
Move the cursor to the end of the word - Implements enter_function_t -. More... | |
static int | op_editor_kill_eol (struct EnterWindowData *wdata, int op) |
Delete chars from cursor to end of line - Implements enter_function_t -. More... | |
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 -. More... | |
static int | op_editor_kill_line (struct EnterWindowData *wdata, int op) |
Delete all chars on the line - Implements enter_function_t -. More... | |
static int | op_editor_kill_whole_line (struct EnterWindowData *wdata, int op) |
Delete all chars on the line - Implements enter_function_t -. More... | |
static int | op_editor_kill_word (struct EnterWindowData *wdata, int op) |
Delete the word in front of the cursor - Implements enter_function_t -. More... | |
static int | op_editor_quote_char (struct EnterWindowData *wdata, int op) |
Quote the next typed key - Implements enter_function_t -. More... | |
static int | op_editor_transpose_chars (struct EnterWindowData *wdata, int op) |
Transpose character under cursor with previous - Implements enter_function_t -. More... | |
int | enter_function_dispatcher (struct MuttWindow *win, int op) |
Perform an Enter function - Implements function_dispatcher_t -. More... | |
Variables | |
static const struct EnterFunction | EnterFunctions [] |
All the NeoMutt functions that Enter supports. More... | |
Enter 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.
|
static |
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 58 of file functions.c.
|
static |
Complete a filename.
wdata | Enter window data |
num | FunctionRetval, e.g. FR_SUCCESS |
Definition at line 97 of file functions.c.
|
static |
Complete an Alias.
wdata | Enter window data |
num | FunctionRetval, e.g. FR_SUCCESS |
Definition at line 137 of file functions.c.
|
static |
Complete a label.
wdata | Enter window data |
num | FunctionRetval, e.g. FR_SUCCESS |
Definition at line 166 of file functions.c.
|
static |
wdata | Enter window data |
num | FunctionRetval, e.g. FR_SUCCESS |
Definition at line 192 of file functions.c.
|
static |
Complete an Alias Query.
wdata | Enter window data |
num | FunctionRetval, e.g. FR_SUCCESS |
Definition at line 231 of file functions.c.
|
static |
wdata | Enter window data |
num | FunctionRetval, e.g. FR_SUCCESS |
Definition at line 260 of file functions.c.
|
static |
Complete a Mailbox.
wdata | Enter window data |
num | FunctionRetval, e.g. FR_SUCCESS |
Definition at line 284 of file functions.c.
|
static |
Complete a Notmuch Query.
wdata | Enter window data |
num | FunctionRetval, e.g. FR_SUCCESS |
Definition at line 332 of file functions.c.
|
static |
Complete a Notmuch Tag.
wdata | Enter window data |
num | FunctionRetval, e.g. FR_SUCCESS |
Definition at line 349 of file functions.c.
|
static |
All the NeoMutt functions that Enter supports.
Definition at line 669 of file functions.c.