Pager functions. More...
#include "config.h"#include <inttypes.h>#include <stdbool.h>#include <stddef.h>#include <stdio.h>#include <sys/stat.h>#include "mutt/lib.h"#include "config/lib.h"#include "email/lib.h"#include "core/lib.h"#include "gui/lib.h"#include "mutt.h"#include "lib.h"#include "attach/lib.h"#include "browser/lib.h"#include "color/lib.h"#include "editor/lib.h"#include "history/lib.h"#include "index/lib.h"#include "key/lib.h"#include "menu/lib.h"#include "pattern/lib.h"#include "display.h"#include "functions.h"#include "muttlib.h"#include "private_data.h"#include "protos.h"
Include dependency graph for functions.c:Go to the source code of this file.
Functions | |
| static int | op_pager_search_next (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Search for next match - Implements pager_function_t -. | |
| static bool | assert_pager_mode (bool test) |
| Check that pager is in correct mode. | |
| static int | up_n_lines (int nlines, struct Line *info, int cur, bool hiding) |
| Reposition the pager's view up by n lines. | |
| bool | jump_to_bottom (struct PagerPrivateData *priv, struct PagerView *pview) |
| Make sure the bottom line is displayed. | |
| static int | op_pager_bottom (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Jump to the bottom of the message - Implements pager_function_t -. | |
| static int | op_pager_half_down (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Scroll down 1/2 page - Implements pager_function_t -. | |
| static int | op_pager_half_up (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Scroll up 1/2 page - Implements pager_function_t -. | |
| static int | op_pager_hide_quoted (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Toggle display of quoted text - Implements pager_function_t -. | |
| static int | op_pager_next_line (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Scroll down one line - Implements pager_function_t -. | |
| static int | op_pager_next_page (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Move to the next page - Implements pager_function_t -. | |
| static int | op_pager_prev_line (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Scroll up one line - Implements pager_function_t -. | |
| static int | op_pager_prev_page (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Move to the previous page - Implements pager_function_t -. | |
| static int | op_pager_search (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Search for a regular expression - Implements pager_function_t -. | |
| static int | op_pager_skip_headers (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Jump to first line after headers - Implements pager_function_t -. | |
| static int | op_pager_skip_quoted (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Skip beyond quoted text - Implements pager_function_t -. | |
| static int | op_pager_top (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Jump to the top of the message - Implements pager_function_t -. | |
| static int | op_exit (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Exit this menu - Implements pager_function_t -. | |
| static int | op_help (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Help screen - Implements pager_function_t -. | |
| static int | op_save (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Save the Pager text - Implements pager_function_t -. | |
| static int | op_search_toggle (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Toggle search pattern coloring - Implements pager_function_t -. | |
| static int | op_view_attachments (struct IndexSharedData *shared, struct PagerPrivateData *priv, int op) |
| Show MIME attachments - Implements pager_function_t -. | |
| int | pager_function_dispatcher (struct MuttWindow *win, int op) |
| Perform a Pager function - Implements function_dispatcher_t -. | |
Variables | |
| static const char * | Not_available_in_this_menu = N_("Not available in this menu") |
| Error message for unavailable functions. | |
| const struct MenuFuncOp | OpPager [] |
| Functions for the Pager Menu. | |
| const struct MenuOpSeq | PagerDefaultBindings [] |
| Key bindings for the Pager Menu. | |
| static const struct PagerFunction | PagerFunctions [] |
| All the NeoMutt functions that the Pager supports. | |
Pager 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.
|
inlinestatic |
Check that pager is in correct mode.
| test | Test condition |
| true | Expected mode is set |
| false | Pager is is some other mode |
Definition at line 339 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Reposition the pager's view up by n lines.
| nlines | Number of lines to move |
| info | Line info array |
| cur | Current line number |
| hiding | true if lines have been hidden |
| num | New current line number |
Definition at line 357 of file functions.c.
Here is the caller graph for this function:| bool jump_to_bottom | ( | struct PagerPrivateData * | priv, |
| struct PagerView * | pview ) |
Make sure the bottom line is displayed.
| priv | Private Pager data |
| pview | PagerView |
| true | Something changed |
| false | Bottom was already displayed |
Definition at line 376 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Error message for unavailable functions.
Definition at line 62 of file functions.c.
| const struct MenuFuncOp OpPager[] |
Functions for the Pager Menu.
Definition at line 71 of file functions.c.
| const struct MenuOpSeq PagerDefaultBindings[] |
Key bindings for the Pager Menu.
Definition at line 229 of file functions.c.
|
static |
All the NeoMutt functions that the Pager supports.
Definition at line 1102 of file functions.c.