Add macros for select/unselect histories.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2022-04-02 21:36:37 +03:00
parent 45073a9d29
commit 450993fff6
2 changed files with 5 additions and 2 deletions

View File

@ -61,6 +61,7 @@
#include "src/selcodepage.h" /* select_charset (), SELECT_CHARSET_NO_TRANSLATE */
#endif
#include "src/keymap.h" /* global_keymap_t */
#include "src/history.h"
#ifdef ENABLE_SUBSHELL
#include "src/subshell/subshell.h" /* do_subshell_chdir() */
#endif
@ -2628,7 +2629,7 @@ panel_select_unselect_files (WPanel * panel, const char *title, const char *hist
static void
panel_select_files (WPanel * panel)
{
panel_select_unselect_files (panel, _("Select"), ":select_cmd: Select ",
panel_select_unselect_files (panel, _("Select"), MC_HISTORY_FM_PANEL_SELECT,
"[Select/Unselect Files]", TRUE);
}
@ -2637,7 +2638,7 @@ panel_select_files (WPanel * panel)
static void
panel_unselect_files (WPanel * panel)
{
panel_select_unselect_files (panel, _("Unselect"), ":unselect_cmd: Unselect ",
panel_select_unselect_files (panel, _("Unselect"), MC_HISTORY_FM_PANEL_UNSELECT,
"[Select/Unselect Files]", FALSE);
}

View File

@ -26,6 +26,8 @@
#define MC_HISTORY_FM_TREE_MOVE "mc.fm.tree-move"
#define MC_HISTORY_FM_PANELIZE_ADD "mc.fm.panelize.add"
#define MC_HISTORY_FM_FILTERED_VIEW "mc.fm.filtered-view"
#define MC_HISTORY_FM_PANEL_SELECT ":select_cmd: Select "
#define MC_HISTORY_FM_PANEL_UNSELECT ":select_cmd: Unselect "
#define MC_HISTORY_FM_PANEL_FILTER "mc.fm.panel-filter"
#define MC_HISTORY_FM_MENU_EXEC_PARAM "mc.fm.menu.exec.parameter"