mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
fb48d4a295
The 'User Menu' entry is moved from 'File' submenu to 'Command' one. The 'Edit editor menu file' and 'Edit syntax file' entries are moved from main MC menu ('Command' submenu) to editor main menu ('Options' submenu) and renamed. src/cmd.c (check_for_default): moved to util.c and maken global. (menu_edit_cmd): rewritten to handle MC menu files only and renamed to edit_mc_menu_cmd. Editor relevant routines are moved to editor code. src/cmd.h: cleanup. src/main.c: main menu reorganization. src/user.h: moved editor macros to edit/edit.h. src/util.c, src/util.h: check_for_default function from src/cmd.h. Rewritten to use exist_file() function. edit/editcmddef.h: added new commands: CK_Load_Syntax_File and CK_Load_Menu_File. edit/edit.h: editor file macros from src/user.h. New type for file which is currently being edited. Modified edit_load_cmd function to be more advanced. edit/edit.c (edit_execute_cmd): handle new commands: CK_Load_Syntax_File and CK_Load_Menu_File. edit/editmenu.c: menu reorganization: moved two entries here from main MC menu. Added requireq handle functions. Small optimization: removed extra layer in menu entry handlers. edit/editcmd.c: menu and syntax files edit is implemented. Modified edit_load_cmd function to be more advanced.
68 lines
1.7 KiB
C
68 lines
1.7 KiB
C
|
|
/** \file cmd.h
|
|
* \brief Header: routines invoked by a function key
|
|
*
|
|
* They normally operate on the current panel.
|
|
*/
|
|
|
|
#ifndef MC_CMD_H
|
|
#define MC_CMD_H
|
|
|
|
void netlink_cmd (void);
|
|
void ftplink_cmd (void);
|
|
void fishlink_cmd (void);
|
|
void smblink_cmd (void);
|
|
void undelete_cmd (void);
|
|
void help_cmd (void);
|
|
void single_dirsize_cmd (void);
|
|
void dirsizes_cmd (void);
|
|
int view_file_at_line (const char *filename, int plain_view, int internal,
|
|
int start_line);
|
|
int view_file (const char *filename, int normal, int internal);
|
|
void view_cmd (void);
|
|
void view_file_cmd (void);
|
|
void view_simple_cmd (void);
|
|
void filtered_view_cmd (void);
|
|
void do_edit_at_line (const char *what, int start_line);
|
|
void edit_cmd (void);
|
|
void edit_cmd_new (void);
|
|
void copy_cmd (void);
|
|
void ren_cmd (void);
|
|
void copy_cmd_local (void);
|
|
void ren_cmd_local (void);
|
|
void delete_cmd_local (void);
|
|
void reselect_vfs (void);
|
|
void mkdir_cmd (void);
|
|
void delete_cmd (void);
|
|
void find_cmd (void);
|
|
void filter_cmd (void);
|
|
void reread_cmd (void);
|
|
void ext_cmd (void);
|
|
void edit_mc_menu_cmd (void);
|
|
void quick_chdir_cmd (void);
|
|
void compare_dirs_cmd (void);
|
|
void history_cmd (void);
|
|
void tree_cmd (void);
|
|
void link_cmd (void);
|
|
void symlink_cmd (void);
|
|
void edit_symlink_cmd (void);
|
|
void reverse_selection_cmd (void);
|
|
void unselect_cmd (void);
|
|
void select_cmd (void);
|
|
void swap_cmd (void);
|
|
void view_other_cmd (void);
|
|
void quick_cd_cmd (void);
|
|
void save_setup_cmd (void);
|
|
char *get_random_hint (int force);
|
|
void user_file_menu_cmd (void);
|
|
char *guess_message_value (void);
|
|
void info_cmd (void);
|
|
void listing_cmd (void);
|
|
void quick_cmd_no_menu (void);
|
|
void info_cmd_no_menu (void);
|
|
void quick_view_cmd (void);
|
|
void toggle_listing_cmd (void);
|
|
void encoding_cmd (void);
|
|
|
|
#endif
|