Edit a string. More...
#include <stddef.h>#include "enter.h"#include "functions.h"#include "state.h"#include "wdata.h"#include "core/lib.h"#include "history/lib.h"
Include dependency graph for lib.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Typedefs | |
| typedef void(* | get_field_callback_t) (const char *text, void *data) |
Functions | |
| void | editor_init_keys (struct NeoMutt *n, struct SubMenu *sm_generic) |
| Initialise the Editor Keybindings - Implements ::init_keys_api. | |
| struct SubMenu * | editor_get_submenu (void) |
| Get the Editor SubMenu. | |
| int | mw_get_field (const char *prompt, struct Buffer *buf, CompletionFlags complete, enum HistoryClass hclass, const struct CompleteOps *comp_api, void *cdata) |
| Ask the user for a string -. | |
| int | mw_get_field_notify (const char *prompt, struct Buffer *buf, CompletionFlags complete, enum HistoryClass hclass, const struct CompleteOps *comp_api, void *cdata, get_field_callback_t callback, void *cb_data, const struct MenuDefinition *md, function_dispatcher_t fn_disp) |
| Ask the user for a string and call a notify function on keypress. | |
| void | replace_part (struct EnterState *es, size_t from, const char *buf) |
| Search and replace on a buffer. | |
Edit a string.
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 lib.h.
| typedef void(* get_field_callback_t) (const char *text, void *data) |
Initialise the Editor Keybindings - Implements ::init_keys_api.
Definition at line 126 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct SubMenu * editor_get_submenu | ( | void | ) |
Get the Editor SubMenu.
| ptr | Editor SubMenu |
Definition at line 585 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mw_get_field_notify | ( | const char * | prompt, |
| struct Buffer * | buf, | ||
| CompletionFlags | complete, | ||
| enum HistoryClass | hclass, | ||
| const struct CompleteOps * | comp_api, | ||
| void * | cdata, | ||
| get_field_callback_t | callback, | ||
| void * | cb_data, | ||
| const struct MenuDefinition * | md, | ||
| function_dispatcher_t | fn_disp ) |
Ask the user for a string and call a notify function on keypress.
| [in] | prompt | Prompt |
| [in] | buf | Buffer for the result |
| [in] | hclass | History class to use |
| [in] | complete | Flags, see CompletionFlags |
| [in] | comp_api | Auto-completion API |
| [in] | cdata | Auto-completion private data |
| [in] | callback | Callback function used for notification |
| [in] | cb_data | Data to pass to callback function |
| [in] | md | Menu Definition |
| [in] | fn_disp | Function dispatcher |
| 0 | Selection made |
| -1 | Aborted |
Definition at line 266 of file window.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 149 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function: