mirror of https://github.com/MidnightCommander/mc
Add macros for select/unselect histories.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
45073a9d29
commit
450993fff6
|
@ -61,6 +61,7 @@
|
||||||
#include "src/selcodepage.h" /* select_charset (), SELECT_CHARSET_NO_TRANSLATE */
|
#include "src/selcodepage.h" /* select_charset (), SELECT_CHARSET_NO_TRANSLATE */
|
||||||
#endif
|
#endif
|
||||||
#include "src/keymap.h" /* global_keymap_t */
|
#include "src/keymap.h" /* global_keymap_t */
|
||||||
|
#include "src/history.h"
|
||||||
#ifdef ENABLE_SUBSHELL
|
#ifdef ENABLE_SUBSHELL
|
||||||
#include "src/subshell/subshell.h" /* do_subshell_chdir() */
|
#include "src/subshell/subshell.h" /* do_subshell_chdir() */
|
||||||
#endif
|
#endif
|
||||||
|
@ -2628,7 +2629,7 @@ panel_select_unselect_files (WPanel * panel, const char *title, const char *hist
|
||||||
static void
|
static void
|
||||||
panel_select_files (WPanel * panel)
|
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);
|
"[Select/Unselect Files]", TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2637,7 +2638,7 @@ panel_select_files (WPanel * panel)
|
||||||
static void
|
static void
|
||||||
panel_unselect_files (WPanel * panel)
|
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);
|
"[Select/Unselect Files]", FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
#define MC_HISTORY_FM_TREE_MOVE "mc.fm.tree-move"
|
#define MC_HISTORY_FM_TREE_MOVE "mc.fm.tree-move"
|
||||||
#define MC_HISTORY_FM_PANELIZE_ADD "mc.fm.panelize.add"
|
#define MC_HISTORY_FM_PANELIZE_ADD "mc.fm.panelize.add"
|
||||||
#define MC_HISTORY_FM_FILTERED_VIEW "mc.fm.filtered-view"
|
#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_PANEL_FILTER "mc.fm.panel-filter"
|
||||||
#define MC_HISTORY_FM_MENU_EXEC_PARAM "mc.fm.menu.exec.parameter"
|
#define MC_HISTORY_FM_MENU_EXEC_PARAM "mc.fm.menu.exec.parameter"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue