From 4a0f9c316f32a18cb82bf075d2602158f3a25d70 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Fri, 14 Sep 2018 12:02:02 -0700 Subject: [PATCH] Fixed some new bugs, added sort exact matches to the top --- 4coder_base_commands.cpp | 2 +- 4coder_default_framework.cpp | 14 +- 4coder_generated/app_functions.h | 6 +- 4coder_generated/command_metadata.h | 710 +++++++++++++--------------- 4coder_lists.cpp | 97 +++- 4coder_ui_helper.cpp | 55 ++- 4coder_ui_helper.h | 5 + 4ed.cpp | 4 +- 4ed_api_implementation.cpp | 62 +-- 4ed_dynamic_variables.cpp | 1 + 4ed_edit.cpp | 14 +- 4ed_file.cpp | 7 +- 4ed_view.cpp | 12 +- 4ed_view.h | 2 +- 4ed_view_ui.cpp | 4 +- 4ed_working_set.cpp | 5 +- todo.txt | 21 +- 17 files changed, 547 insertions(+), 474 deletions(-) diff --git a/4coder_base_commands.cpp b/4coder_base_commands.cpp index e42202d0..c1e5c2e5 100644 --- a/4coder_base_commands.cpp +++ b/4coder_base_commands.cpp @@ -1380,7 +1380,7 @@ CUSTOM_DOC("Reads a filename from surrounding '\"' characters and attempts to op remove_last_folder(&file_name); append(&file_name, make_string(short_file_name, size)); - view = get_next_view_looped_primary_panels(app, &view, AccessAll); + get_next_view_looped_primary_panels(app, &view, AccessAll); if (view.exists){ if (view_open_file(app, &view, file_name.str, file_name.size, true)){ set_active_view(app, &view); diff --git a/4coder_default_framework.cpp b/4coder_default_framework.cpp index 0918fec1..ad8b7104 100644 --- a/4coder_default_framework.cpp +++ b/4coder_default_framework.cpp @@ -100,7 +100,7 @@ open_build_footer_panel(Application_Links *app, bool32 create_if_not_exist = tru return(special_view); } -static View_Summary +static void get_next_view_looped_primary_panels(Application_Links *app, View_Summary *view_start, Access_Flag access){ View_ID original_view_id = view_start->view_id; View_Summary view = *view_start; @@ -113,10 +113,10 @@ get_next_view_looped_primary_panels(Application_Links *app, View_Summary *view_s if (!view.exists){ memset(&view, 0, sizeof(view)); } - return(view); + *view_start = view; } -static View_Summary +static void get_prev_view_looped_primary_panels(Application_Links *app, View_Summary *view_start, Access_Flag access){ View_ID original_view_id = view_start->view_id; View_Summary view = *view_start; @@ -129,14 +129,14 @@ get_prev_view_looped_primary_panels(Application_Links *app, View_Summary *view_s if (!view.exists){ memset(&view, 0, sizeof(view)); } - return(view); + *view_start = view; } static View_Summary get_next_view_after_active(Application_Links *app, uint32_t access){ View_Summary view = get_active_view(app, access); if (view.exists){ - view = get_next_view_looped_primary_panels(app, &view, access); + get_next_view_looped_primary_panels(app, &view, access); } return(view); } @@ -145,7 +145,7 @@ CUSTOM_COMMAND_SIG(change_active_panel) CUSTOM_DOC("Change the currently active panel, moving to the panel with the next highest view_id.") { View_Summary view = get_active_view(app, AccessAll); - view = get_next_view_looped_primary_panels(app, &view, AccessAll); + get_next_view_looped_primary_panels(app, &view, AccessAll); if (view.exists){ set_active_view(app, &view); } @@ -155,7 +155,7 @@ CUSTOM_COMMAND_SIG(change_active_panel_backwards) CUSTOM_DOC("Change the currently active panel, moving to the panel with the next lowest view_id.") { View_Summary view = get_active_view(app, AccessAll); - view = get_prev_view_looped_primary_panels(app, &view, AccessAll); + get_prev_view_looped_primary_panels(app, &view, AccessAll); if (view.exists){ set_active_view(app, &view); } diff --git a/4coder_generated/app_functions.h b/4coder_generated/app_functions.h index 0ed1ca8a..2f04a9a7 100644 --- a/4coder_generated/app_functions.h +++ b/4coder_generated/app_functions.h @@ -45,7 +45,7 @@ struct Application_Links; #define VIEW_SET_HIGHLIGHT_SIG(n) bool32 n(Application_Links *app, View_Summary *view, int32_t start, int32_t end, bool32 turn_on) #define VIEW_SET_BUFFER_SIG(n) bool32 n(Application_Links *app, View_Summary *view, Buffer_ID buffer_id, Set_Buffer_Flag flags) #define VIEW_POST_FADE_SIG(n) bool32 n(Application_Links *app, View_Summary *view, float seconds, int32_t start, int32_t end, int_color color) -#define VIEW_START_UI_MODE_SIG(n) int32_t n(Application_Links *app, View_Summary *view) +#define VIEW_START_UI_MODE_SIG(n) bool32 n(Application_Links *app, View_Summary *view) #define VIEW_END_UI_MODE_SIG(n) int32_t n(Application_Links *app, View_Summary *view) #define VIEW_SET_UI_SIG(n) bool32 n(Application_Links *app, View_Summary *view, UI_Control *control, UI_Quit_Function_Type *quit_function) #define VIEW_GET_UI_COPY_SIG(n) UI_Control n(Application_Links *app, View_Summary *view, struct Partition *part) @@ -583,7 +583,7 @@ static inline bool32 view_set_mark(Application_Links *app, View_Summary *view, B static inline bool32 view_set_highlight(Application_Links *app, View_Summary *view, int32_t start, int32_t end, bool32 turn_on){return(app->view_set_highlight(app, view, start, end, turn_on));} static inline bool32 view_set_buffer(Application_Links *app, View_Summary *view, Buffer_ID buffer_id, Set_Buffer_Flag flags){return(app->view_set_buffer(app, view, buffer_id, flags));} static inline bool32 view_post_fade(Application_Links *app, View_Summary *view, float seconds, int32_t start, int32_t end, int_color color){return(app->view_post_fade(app, view, seconds, start, end, color));} -static inline int32_t view_start_ui_mode(Application_Links *app, View_Summary *view){return(app->view_start_ui_mode(app, view));} +static inline bool32 view_start_ui_mode(Application_Links *app, View_Summary *view){return(app->view_start_ui_mode(app, view));} static inline int32_t view_end_ui_mode(Application_Links *app, View_Summary *view){return(app->view_end_ui_mode(app, view));} static inline bool32 view_set_ui(Application_Links *app, View_Summary *view, UI_Control *control, UI_Quit_Function_Type *quit_function){return(app->view_set_ui(app, view, control, quit_function));} static inline UI_Control view_get_ui_copy(Application_Links *app, View_Summary *view, struct Partition *part){return(app->view_get_ui_copy(app, view, part));} @@ -689,7 +689,7 @@ static inline bool32 view_set_mark(Application_Links *app, View_Summary *view, B static inline bool32 view_set_highlight(Application_Links *app, View_Summary *view, int32_t start, int32_t end, bool32 turn_on){return(app->view_set_highlight_(app, view, start, end, turn_on));} static inline bool32 view_set_buffer(Application_Links *app, View_Summary *view, Buffer_ID buffer_id, Set_Buffer_Flag flags){return(app->view_set_buffer_(app, view, buffer_id, flags));} static inline bool32 view_post_fade(Application_Links *app, View_Summary *view, float seconds, int32_t start, int32_t end, int_color color){return(app->view_post_fade_(app, view, seconds, start, end, color));} -static inline int32_t view_start_ui_mode(Application_Links *app, View_Summary *view){return(app->view_start_ui_mode_(app, view));} +static inline bool32 view_start_ui_mode(Application_Links *app, View_Summary *view){return(app->view_start_ui_mode_(app, view));} static inline int32_t view_end_ui_mode(Application_Links *app, View_Summary *view){return(app->view_end_ui_mode_(app, view));} static inline bool32 view_set_ui(Application_Links *app, View_Summary *view, UI_Control *control, UI_Quit_Function_Type *quit_function){return(app->view_set_ui_(app, view, control, quit_function));} static inline UI_Control view_get_ui_copy(Application_Links *app, View_Summary *view, struct Partition *part){return(app->view_get_ui_copy_(app, view, part));} diff --git a/4coder_generated/command_metadata.h b/4coder_generated/command_metadata.h index 7958d78e..cbf6cbec 100644 --- a/4coder_generated/command_metadata.h +++ b/4coder_generated/command_metadata.h @@ -2,7 +2,7 @@ #define command_id(c) (fcoder_metacmd_ID_##c) #define command_metadata(c) (&fcoder_metacmd_table[command_id(c)]) #define command_metadata_by_id(id) (&fcoder_metacmd_table[id]) -#define command_one_past_last_id 214 +#define command_one_past_last_id 202 #if defined(CUSTOM_COMMAND_SIG) #define PROC_LINKS(x,y) x #else @@ -78,7 +78,6 @@ CUSTOM_COMMAND_SIG(interactive_open); CUSTOM_COMMAND_SIG(interactive_open_or_new); CUSTOM_COMMAND_SIG(interactive_switch_buffer); CUSTOM_COMMAND_SIG(kill_buffer); -CUSTOM_COMMAND_SIG(kill_rect); CUSTOM_COMMAND_SIG(left_adjust_view); CUSTOM_COMMAND_SIG(list_all_functions_current_buffer); CUSTOM_COMMAND_SIG(list_all_locations); @@ -110,12 +109,6 @@ CUSTOM_COMMAND_SIG(lister__write_character__file_path); CUSTOM_COMMAND_SIG(lister__write_character__fixed_list); CUSTOM_COMMAND_SIG(load_project); CUSTOM_COMMAND_SIG(make_directory_query); -CUSTOM_COMMAND_SIG(miblo_decrement_basic); -CUSTOM_COMMAND_SIG(miblo_decrement_time_stamp); -CUSTOM_COMMAND_SIG(miblo_decrement_time_stamp_minute); -CUSTOM_COMMAND_SIG(miblo_increment_basic); -CUSTOM_COMMAND_SIG(miblo_increment_time_stamp); -CUSTOM_COMMAND_SIG(miblo_increment_time_stamp_minute); CUSTOM_COMMAND_SIG(move_down); CUSTOM_COMMAND_SIG(move_down_10); CUSTOM_COMMAND_SIG(move_down_textual); @@ -125,7 +118,6 @@ CUSTOM_COMMAND_SIG(move_line_up); CUSTOM_COMMAND_SIG(move_right); CUSTOM_COMMAND_SIG(move_up); CUSTOM_COMMAND_SIG(move_up_10); -CUSTOM_COMMAND_SIG(multi_line_edit); CUSTOM_COMMAND_SIG(newline_or_goto_position_direct); CUSTOM_COMMAND_SIG(newline_or_goto_position_same_panel_direct); CUSTOM_COMMAND_SIG(newline_or_goto_position_same_panel_sticky); @@ -157,9 +149,7 @@ CUSTOM_COMMAND_SIG(redo); CUSTOM_COMMAND_SIG(reload_themes); CUSTOM_COMMAND_SIG(remap_interactive); CUSTOM_COMMAND_SIG(rename_file_query); -CUSTOM_COMMAND_SIG(rename_parameter); CUSTOM_COMMAND_SIG(reopen); -CUSTOM_COMMAND_SIG(replace_all_occurrences); CUSTOM_COMMAND_SIG(replace_in_range); CUSTOM_COMMAND_SIG(reverse_search); CUSTOM_COMMAND_SIG(reverse_search_identifier); @@ -216,8 +206,6 @@ CUSTOM_COMMAND_SIG(word_complete); CUSTOM_COMMAND_SIG(write_and_auto_tab); CUSTOM_COMMAND_SIG(write_block); CUSTOM_COMMAND_SIG(write_character); -CUSTOM_COMMAND_SIG(write_explicit_enum_flags); -CUSTOM_COMMAND_SIG(write_explicit_enum_values); CUSTOM_COMMAND_SIG(write_hack); CUSTOM_COMMAND_SIG(write_note); CUSTOM_COMMAND_SIG(write_todo); @@ -234,221 +222,209 @@ char *source_name; int32_t source_name_len; int32_t line_number; }; -static Command_Metadata fcoder_metacmd_table[214] = { -{ PROC_LINKS(allow_mouse, 0), "allow_mouse", 11, "Shows the mouse and causes all mouse input to be processed normally.", 68, "c:\\4ed\\code\\4coder_default_framework.cpp", 40, 240 }, -{ PROC_LINKS(auto_tab_line_at_cursor, 0), "auto_tab_line_at_cursor", 23, "Auto-indents the line on which the cursor sits.", 47, "c:\\4ed\\code\\4coder_auto_indent.cpp", 34, 722 }, -{ PROC_LINKS(auto_tab_range, 0), "auto_tab_range", 14, "Auto-indents the range between the cursor and the mark.", 55, "c:\\4ed\\code\\4coder_auto_indent.cpp", 34, 733 }, -{ PROC_LINKS(auto_tab_whole_file, 0), "auto_tab_whole_file", 19, "Audo-indents the entire current buffer.", 39, "c:\\4ed\\code\\4coder_auto_indent.cpp", 34, 712 }, -{ PROC_LINKS(backspace_char, 0), "backspace_char", 14, "Deletes the character to the left of the cursor.", 48, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 73 }, -{ PROC_LINKS(backspace_word, 0), "backspace_word", 14, "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1247 }, -{ PROC_LINKS(basic_change_active_panel, 0), "basic_change_active_panel", 25, "Change the currently active panel, moving to the panel with the next highest view_id. Will not skipe the build panel if it is open.", 132, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 439 }, -{ PROC_LINKS(build_in_build_panel, 0), "build_in_build_panel", 20, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*. Puts the *compilation* buffer in a panel at the footer of the current view.", 230, "c:\\4ed\\code\\4coder_build_commands.cpp", 37, 187 }, -{ PROC_LINKS(build_search, 0), "build_search", 12, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*.", 153, "c:\\4ed\\code\\4coder_build_commands.cpp", 37, 155 }, -{ PROC_LINKS(center_view, 0), "center_view", 11, "Centers the view vertically on the line on which the cursor sits.", 65, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 126 }, -{ PROC_LINKS(change_active_panel, 0), "change_active_panel", 19, "Change the currently active panel, moving to the panel with the next highest view_id.", 85, "c:\\4ed\\code\\4coder_default_framework.cpp", 40, 144 }, -{ PROC_LINKS(change_active_panel_backwards, 0), "change_active_panel_backwards", 29, "Change the currently active panel, moving to the panel with the next lowest view_id.", 84, "c:\\4ed\\code\\4coder_default_framework.cpp", 40, 154 }, -{ PROC_LINKS(change_to_build_panel, 0), "change_to_build_panel", 21, "If the special build panel is open, makes the build panel the active panel.", 75, "c:\\4ed\\code\\4coder_build_commands.cpp", 37, 209 }, -{ PROC_LINKS(clean_all_lines, 0), "clean_all_lines", 15, "Removes trailing whitespace from all lines in the current buffer.", 65, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 374 }, -{ PROC_LINKS(click_set_cursor, 0), "click_set_cursor", 16, "Sets the cursor position to the mouse position.", 47, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 180 }, -{ PROC_LINKS(click_set_mark, 0), "click_set_mark", 14, "Sets the mark position to the mouse position.", 45, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 193 }, -{ PROC_LINKS(close_all_code, 0), "close_all_code", 14, "Closes any buffer with a filename ending with an extension configured to be recognized as a code file type.", 107, "c:\\4ed\\code\\4coder_project_commands.cpp", 39, 1048 }, -{ PROC_LINKS(close_build_panel, 0), "close_build_panel", 17, "If the special build panel is open, closes it.", 46, "c:\\4ed\\code\\4coder_build_commands.cpp", 37, 203 }, -{ PROC_LINKS(close_panel, 0), "close_panel", 11, "Closes the currently active panel if it is not the only panel open.", 67, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 447 }, -{ PROC_LINKS(copy, 0), "copy", 4, "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "c:\\4ed\\code\\4coder_clipboard.cpp", 32, 26 }, -{ PROC_LINKS(cursor_mark_swap, 0), "cursor_mark_swap", 16, "Swaps the position of the cursor and the mark.", 46, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 101 }, -{ PROC_LINKS(cut, 0), "cut", 3, "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "c:\\4ed\\code\\4coder_clipboard.cpp", 32, 35 }, -{ PROC_LINKS(decrease_face_size, 0), "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 537 }, -{ PROC_LINKS(decrease_line_wrap, 0), "decrease_line_wrap", 18, "Decrases the current buffer's width for line wrapping.", 54, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 514 }, -{ PROC_LINKS(delete_char, 0), "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 55 }, -{ PROC_LINKS(delete_current_scope, 0), "delete_current_scope", 20, "Deletes the braces surrounding the currently selected scope. Leaves the contents within the scope.", 99, "c:\\4ed\\code\\4coder_scope_commands.cpp", 37, 487 }, -{ PROC_LINKS(delete_file_query, 0), "delete_file_query", 17, "Deletes the file of the current buffer if 4coder has the appropriate access rights. Will ask the user for confirmation first.", 125, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1030 }, -{ PROC_LINKS(delete_line, 0), "delete_line", 11, "Delete the line the on which the cursor sits.", 45, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1280 }, -{ PROC_LINKS(delete_range, 0), "delete_range", 12, "Deletes the text in the range between the cursor and the mark.", 62, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 113 }, -{ PROC_LINKS(delete_word, 0), "delete_word", 11, "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1253 }, -{ PROC_LINKS(duplicate_line, 0), "duplicate_line", 14, "Create a copy of the line on which the cursor sits.", 51, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1258 }, -{ PROC_LINKS(eol_dosify, 0), "eol_dosify", 10, "Puts the buffer in DOS line ending mode.", 40, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 567 }, -{ PROC_LINKS(eol_nixify, 0), "eol_nixify", 10, "Puts the buffer in NIX line ending mode.", 40, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 575 }, -{ PROC_LINKS(execute_any_cli, 0), "execute_any_cli", 15, "Queries for an output buffer name and system command, runs the system command as a CLI and prints the output to the specified buffer.", 133, "c:\\4ed\\code\\4coder_system_command.cpp", 37, 23 }, -{ PROC_LINKS(execute_arbitrary_command, 0), "execute_arbitrary_command", 25, "Execute a 'long form' command.", 30, "c:\\4ed\\code\\4coder_long_command_switch.cpp", 42, 8 }, -{ PROC_LINKS(execute_previous_cli, 0), "execute_previous_cli", 20, "If the command execute_any_cli has already been used, this will execute a CLI reusing the most recent buffer name and command.", 126, "c:\\4ed\\code\\4coder_system_command.cpp", 37, 7 }, -{ PROC_LINKS(exit_4coder, 0), "exit_4coder", 11, "Attempts to close 4coder.", 25, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 583 }, -{ PROC_LINKS(goto_beginning_of_file, 0), "goto_beginning_of_file", 22, "Sets the cursor to the beginning of the file.", 45, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1168 }, -{ PROC_LINKS(goto_end_of_file, 0), "goto_end_of_file", 16, "Sets the cursor to the end of the file.", 39, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1175 }, -{ PROC_LINKS(goto_first_jump_direct, 0), "goto_first_jump_direct", 22, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "c:\\4ed\\code\\4coder_jump_direct.cpp", 34, 84 }, -{ PROC_LINKS(goto_first_jump_same_panel_sticky, 0), "goto_first_jump_same_panel_sticky", 33, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer and views the buffer in the panel where the jump list was.", 153, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 520 }, -{ PROC_LINKS(goto_first_jump_sticky, 0), "goto_first_jump_sticky", 22, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 502 }, -{ PROC_LINKS(goto_jump_at_cursor_direct, 0), "goto_jump_at_cursor_direct", 26, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "c:\\4ed\\code\\4coder_jump_direct.cpp", 34, 8 }, -{ PROC_LINKS(goto_jump_at_cursor_same_panel_direct, 0), "goto_jump_at_cursor_same_panel_direct", 37, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list..", 168, "c:\\4ed\\code\\4coder_jump_direct.cpp", 34, 29 }, -{ PROC_LINKS(goto_jump_at_cursor_same_panel_sticky, 0), "goto_jump_at_cursor_same_panel_sticky", 37, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list.", 167, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 348 }, -{ PROC_LINKS(goto_jump_at_cursor_sticky, 0), "goto_jump_at_cursor_sticky", 26, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 320 }, -{ PROC_LINKS(goto_line, 0), "goto_line", 9, "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 591 }, -{ PROC_LINKS(goto_next_jump_direct, 0), "goto_next_jump_direct", 21, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "c:\\4ed\\code\\4coder_jump_direct.cpp", 34, 48 }, -{ PROC_LINKS(goto_next_jump_no_skips_direct, 0), "goto_next_jump_no_skips_direct", 30, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "c:\\4ed\\code\\4coder_jump_direct.cpp", 34, 66 }, -{ PROC_LINKS(goto_next_jump_no_skips_sticky, 0), "goto_next_jump_no_skips_sticky", 30, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 471 }, -{ PROC_LINKS(goto_next_jump_sticky, 0), "goto_next_jump_sticky", 21, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 441 }, -{ PROC_LINKS(goto_prev_jump_direct, 0), "goto_prev_jump_direct", 21, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "c:\\4ed\\code\\4coder_jump_direct.cpp", 34, 57 }, -{ PROC_LINKS(goto_prev_jump_no_skips_direct, 0), "goto_prev_jump_no_skips_direct", 30, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "c:\\4ed\\code\\4coder_jump_direct.cpp", 34, 75 }, -{ PROC_LINKS(goto_prev_jump_no_skips_sticky, 0), "goto_prev_jump_no_skips_sticky", 30, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 487 }, -{ PROC_LINKS(goto_prev_jump_sticky, 0), "goto_prev_jump_sticky", 21, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 457 }, -{ PROC_LINKS(hide_filebar, 0), "hide_filebar", 12, "Sets the current view to hide it's filebar.", 43, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 477 }, -{ PROC_LINKS(hide_scrollbar, 0), "hide_scrollbar", 14, "Sets the current view to hide it's scrollbar.", 45, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 463 }, -{ PROC_LINKS(highlight_next_scope_absolute, 0), "highlight_next_scope_absolute", 29, "Finds the first scope started by '{' after the cursor and puts the cursor and mark on the '{' and '}'.", 102, "c:\\4ed\\code\\4coder_scope_commands.cpp", 37, 363 }, -{ PROC_LINKS(highlight_prev_scope_absolute, 0), "highlight_prev_scope_absolute", 29, "Finds the first scope started by '{' before the cursor and puts the cursor and mark on the '{' and '}'.", 103, "c:\\4ed\\code\\4coder_scope_commands.cpp", 37, 382 }, -{ PROC_LINKS(highlight_surrounding_scope, 0), "highlight_surrounding_scope", 27, "Finds the scope enclosed by '{' '}' surrounding the cursor and puts the cursor and mark on the '{' and '}'.", 107, "c:\\4ed\\code\\4coder_scope_commands.cpp", 37, 341 }, -{ PROC_LINKS(if0_off, 0), "if0_off", 7, "Surround the range between the cursor and mark with an '#if 0' and an '#endif'", 78, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 82 }, -{ PROC_LINKS(increase_face_size, 0), "increase_face_size", 18, "Increase the size of the face used by the current buffer.", 57, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 525 }, -{ PROC_LINKS(increase_line_wrap, 0), "increase_line_wrap", 18, "Increases the current buffer's width for line wrapping.", 55, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 503 }, -{ PROC_LINKS(interactive_kill_buffer, 0), "interactive_kill_buffer", 23, "Interactively kill an open buffer.", 34, "c:\\4ed\\code\\4coder_lists.cpp", 28, 644 }, -{ PROC_LINKS(interactive_new, 0), "interactive_new", 15, "Interactively creates a new file.", 33, "c:\\4ed\\code\\4coder_lists.cpp", 28, 746 }, -{ PROC_LINKS(interactive_open, 0), "interactive_open", 16, "Interactively opens a file.", 27, "c:\\4ed\\code\\4coder_lists.cpp", 28, 773 }, -{ PROC_LINKS(interactive_open_or_new, 0), "interactive_open_or_new", 23, "Interactively open a file out of the file system.", 49, "c:\\4ed\\code\\4coder_lists.cpp", 28, 713 }, -{ PROC_LINKS(interactive_switch_buffer, 0), "interactive_switch_buffer", 25, "Interactively switch to an open buffer.", 39, "c:\\4ed\\code\\4coder_lists.cpp", 28, 626 }, -{ PROC_LINKS(kill_buffer, 0), "kill_buffer", 11, "Kills the current buffer.", 25, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1450 }, -{ PROC_LINKS(kill_rect, 0), "kill_rect", 9, "Delete characters in a rectangular region. Range testing is done by unwrapped-xy coordinates.", 93, "c:\\4ed\\code\\4coder_experiments.cpp", 34, 26 }, -{ PROC_LINKS(left_adjust_view, 0), "left_adjust_view", 16, "Sets the left size of the view near the x position of the cursor.", 65, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 141 }, -{ PROC_LINKS(list_all_functions_current_buffer, 0), "list_all_functions_current_buffer", 33, "Creates a jump list of lines of the current buffer that appear to define or declare functions.", 94, "c:\\4ed\\code\\4coder_function_list.cpp", 36, 318 }, -{ PROC_LINKS(list_all_locations, 0), "list_all_locations", 18, "Queries the user for a string and lists all exact case-sensitive matches found in all open buffers.", 99, "c:\\4ed\\code\\4coder_search.cpp", 29, 769 }, -{ PROC_LINKS(list_all_locations_case_insensitive, 0), "list_all_locations_case_insensitive", 35, "Queries the user for a string and lists all exact case-insensitive matches found in all open buffers.", 101, "c:\\4ed\\code\\4coder_search.cpp", 29, 783 }, -{ PROC_LINKS(list_all_locations_of_identifier, 0), "list_all_locations_of_identifier", 32, "Reads a token or word under the cursor and lists all exact case-sensitive mathces in all open buffers.", 102, "c:\\4ed\\code\\4coder_search.cpp", 29, 797 }, -{ PROC_LINKS(list_all_locations_of_identifier_case_insensitive, 0), "list_all_locations_of_identifier_case_insensitive", 49, "Reads a token or word under the cursor and lists all exact case-insensitive mathces in all open buffers.", 104, "c:\\4ed\\code\\4coder_search.cpp", 29, 804 }, -{ PROC_LINKS(list_all_locations_of_selection, 0), "list_all_locations_of_selection", 31, "Reads the string in the selected range and lists all exact case-sensitive mathces in all open buffers.", 102, "c:\\4ed\\code\\4coder_search.cpp", 29, 811 }, -{ PROC_LINKS(list_all_locations_of_selection_case_insensitive, 0), "list_all_locations_of_selection_case_insensitive", 48, "Reads the string in the selected range and lists all exact case-insensitive mathces in all open buffers.", 104, "c:\\4ed\\code\\4coder_search.cpp", 29, 818 }, -{ PROC_LINKS(list_all_locations_of_type_definition, 0), "list_all_locations_of_type_definition", 37, "Queries user for string, lists all locations of strings that appear to define a type whose name matches the input string.", 121, "c:\\4ed\\code\\4coder_search.cpp", 29, 825 }, -{ PROC_LINKS(list_all_locations_of_type_definition_of_identifier, 0), "list_all_locations_of_type_definition_of_identifier", 51, "Reads a token or word under the cursor and lists all locations of strings that appear to define a type whose name matches it.", 125, "c:\\4ed\\code\\4coder_search.cpp", 29, 836 }, -{ PROC_LINKS(list_all_substring_locations, 0), "list_all_substring_locations", 28, "Queries the user for a string and lists all case-sensitive substring matches found in all open buffers.", 103, "c:\\4ed\\code\\4coder_search.cpp", 29, 776 }, -{ PROC_LINKS(list_all_substring_locations_case_insensitive, 0), "list_all_substring_locations_case_insensitive", 45, "Queries the user for a string and lists all case-insensitive substring matches found in all open buffers.", 105, "c:\\4ed\\code\\4coder_search.cpp", 29, 790 }, -{ PROC_LINKS(lister__activate, 0), "lister__activate", 16, "A lister mode command that activates the list's action on the highlighted item.", 79, "c:\\4ed\\code\\4coder_lists.cpp", 28, 15 }, -{ PROC_LINKS(lister__backspace_text_field, 0), "lister__backspace_text_field", 28, "A lister mode command that dispatches to the lister's backspace text field handler.", 83, "c:\\4ed\\code\\4coder_lists.cpp", 28, 41 }, -{ PROC_LINKS(lister__backspace_text_field__default, 0), "lister__backspace_text_field__default", 37, "A lister mode command that backspaces one character from the text field.", 72, "c:\\4ed\\code\\4coder_lists.cpp", 28, 146 }, -{ PROC_LINKS(lister__backspace_text_field__file_path, 0), "lister__backspace_text_field__file_path", 39, "A lister mode command that backspaces one character from the text field of a file system list.", 94, "c:\\4ed\\code\\4coder_lists.cpp", 28, 218 }, -{ PROC_LINKS(lister__mouse_press, 0), "lister__mouse_press", 19, "A lister mode command that beings a click interaction with a list item under the mouse.", 87, "c:\\4ed\\code\\4coder_lists.cpp", 28, 86 }, -{ PROC_LINKS(lister__mouse_release, 0), "lister__mouse_release", 21, "A lister mode command that ends a click interaction with a list item under the mouse, possibly activating it.", 109, "c:\\4ed\\code\\4coder_lists.cpp", 28, 98 }, -{ PROC_LINKS(lister__move_down, 0), "lister__move_down", 17, "A lister mode command that dispatches to the lister's navigate down handler.", 76, "c:\\4ed\\code\\4coder_lists.cpp", 28, 61 }, -{ PROC_LINKS(lister__move_down__default, 0), "lister__move_down__default", 26, "A lister mode command that moves the highlighted item one down in the list.", 75, "c:\\4ed\\code\\4coder_lists.cpp", 28, 177 }, -{ PROC_LINKS(lister__move_up, 0), "lister__move_up", 15, "A lister mode command that dispatches to the lister's navigate up handler.", 74, "c:\\4ed\\code\\4coder_lists.cpp", 28, 51 }, -{ PROC_LINKS(lister__move_up__default, 0), "lister__move_up__default", 24, "A lister mode command that moves the highlighted item one up in the list.", 73, "c:\\4ed\\code\\4coder_lists.cpp", 28, 161 }, -{ PROC_LINKS(lister__quit, 0), "lister__quit", 12, "A lister mode command that quits the list without executing any actions.", 72, "c:\\4ed\\code\\4coder_lists.cpp", 28, 8 }, -{ PROC_LINKS(lister__repaint, 0), "lister__repaint", 15, "A lister mode command that updates the lists UI data.", 53, "c:\\4ed\\code\\4coder_lists.cpp", 28, 115 }, -{ PROC_LINKS(lister__wheel_scroll, 0), "lister__wheel_scroll", 20, "A lister mode command that scrolls the list in response to the mouse wheel.", 75, "c:\\4ed\\code\\4coder_lists.cpp", 28, 71 }, -{ PROC_LINKS(lister__write_character, 0), "lister__write_character", 23, "A lister mode command that dispatches to the lister's write character handler.", 78, "c:\\4ed\\code\\4coder_lists.cpp", 28, 31 }, -{ PROC_LINKS(lister__write_character__default, 0), "lister__write_character__default", 32, "A lister mode command that inserts a new character to the text field.", 69, "c:\\4ed\\code\\4coder_lists.cpp", 28, 126 }, -{ PROC_LINKS(lister__write_character__file_path, 0), "lister__write_character__file_path", 34, "A lister mode command that inserts a character into the text field of a file system list.", 89, "c:\\4ed\\code\\4coder_lists.cpp", 28, 193 }, -{ PROC_LINKS(lister__write_character__fixed_list, 0), "lister__write_character__fixed_list", 35, "A lister mode command that handles input for the fixed sure to kill list.", 73, "c:\\4ed\\code\\4coder_lists.cpp", 28, 253 }, -{ PROC_LINKS(load_project, 0), "load_project", 12, "Looks for a project.4coder file in the current directory and tries to load it. Looks in parent directories until a project file is found or there are no more parents.", 167, "c:\\4ed\\code\\4coder_project_commands.cpp", 39, 1071 }, -{ PROC_LINKS(make_directory_query, 0), "make_directory_query", 20, "Queries the user for a name and creates a new directory with the given name.", 76, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1138 }, -{ PROC_LINKS(miblo_decrement_basic, 0), "miblo_decrement_basic", 21, "Decrement an integer under the cursor by one.", 45, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 110 }, -{ PROC_LINKS(miblo_decrement_time_stamp, 0), "miblo_decrement_time_stamp", 26, "Decrement a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 383 }, -{ PROC_LINKS(miblo_decrement_time_stamp_minute, 0), "miblo_decrement_time_stamp_minute", 33, "Decrement a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 395 }, -{ PROC_LINKS(miblo_increment_basic, 0), "miblo_increment_basic", 21, "Increment an integer under the cursor by one.", 45, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 94 }, -{ PROC_LINKS(miblo_increment_time_stamp, 0), "miblo_increment_time_stamp", 26, "Increment a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 377 }, -{ PROC_LINKS(miblo_increment_time_stamp_minute, 0), "miblo_increment_time_stamp_minute", 33, "Increment a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 389 }, -{ PROC_LINKS(move_down, 0), "move_down", 9, "Moves the cursor down one line.", 31, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 256 }, -{ PROC_LINKS(move_down_10, 0), "move_down_10", 12, "Moves the cursor down ten lines.", 32, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 268 }, -{ PROC_LINKS(move_down_textual, 0), "move_down_textual", 17, "Moves down to the next line of actual text, regardless of line wrapping.", 72, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 274 }, -{ PROC_LINKS(move_left, 0), "move_left", 9, "Moves the cursor one character to the left.", 43, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 305 }, -{ PROC_LINKS(move_line_down, 0), "move_line_down", 14, "Swaps the line under the cursor with the line below it, and moves the cursor down with it.", 90, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1235 }, -{ PROC_LINKS(move_line_up, 0), "move_line_up", 12, "Swaps the line under the cursor with the line above it, and moves the cursor up with it.", 88, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1171 }, -{ PROC_LINKS(move_right, 0), "move_right", 10, "Moves the cursor one character to the right.", 44, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 314 }, -{ PROC_LINKS(move_up, 0), "move_up", 7, "Moves the cursor up one line.", 29, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 250 }, -{ PROC_LINKS(move_up_10, 0), "move_up_10", 10, "Moves the cursor up ten lines.", 30, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 262 }, -{ PROC_LINKS(multi_line_edit, 0), "multi_line_edit", 15, "Begin multi-line mode. In multi-line mode characters are inserted at every line between the mark and cursor. All characters are inserted at the same character offset into the line. This mode uses line_char coordinates.", 221, "c:\\4ed\\code\\4coder_experiments.cpp", 34, 117 }, -{ PROC_LINKS(newline_or_goto_position_direct, 0), "newline_or_goto_position_direct", 31, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "c:\\4ed\\code\\4coder_jump_direct.cpp", 34, 101 }, -{ PROC_LINKS(newline_or_goto_position_same_panel_direct, 0), "newline_or_goto_position_same_panel_direct", 42, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "c:\\4ed\\code\\4coder_jump_direct.cpp", 34, 116 }, -{ PROC_LINKS(newline_or_goto_position_same_panel_sticky, 0), "newline_or_goto_position_same_panel_sticky", 42, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 558 }, -{ PROC_LINKS(newline_or_goto_position_sticky, 0), "newline_or_goto_position_sticky", 31, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 543 }, -{ PROC_LINKS(open_all_code, 0), "open_all_code", 13, "Open all code in the current directory. File types are determined by extensions. An extension is considered code based on the extensions specified in 4coder.config.", 164, "c:\\4ed\\code\\4coder_project_commands.cpp", 39, 1055 }, -{ PROC_LINKS(open_all_code_recursive, 0), "open_all_code_recursive", 23, "Works as open_all_code but also runs in all subdirectories.", 59, "c:\\4ed\\code\\4coder_project_commands.cpp", 39, 1062 }, -{ PROC_LINKS(open_color_tweaker, 0), "open_color_tweaker", 18, "Opens the 4coder theme selector list.", 37, "c:\\4ed\\code\\4coder_lists.cpp", 28, 789 }, -{ PROC_LINKS(open_file_in_quotes, 0), "open_file_in_quotes", 19, "Reads a filename from surrounding '\"' characters and attempts to open the corresponding file.", 94, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1357 }, -{ PROC_LINKS(open_in_other, 0), "open_in_other", 13, "Interactively opens a file in the other panel.", 46, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1508 }, -{ PROC_LINKS(open_long_braces, 0), "open_long_braces", 16, "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 58 }, -{ PROC_LINKS(open_long_braces_break, 0), "open_long_braces_break", 22, "At the cursor, insert a '{' and '}break;' separated by a blank line.", 68, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 74 }, -{ PROC_LINKS(open_long_braces_semicolon, 0), "open_long_braces_semicolon", 26, "At the cursor, insert a '{' and '};' separated by a blank line.", 63, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 66 }, -{ PROC_LINKS(open_matching_file_cpp, 0), "open_matching_file_cpp", 22, "If the current file is a *.cpp or *.h, attempts to open the corresponding *.h or *.cpp file in the other view.", 110, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1393 }, -{ PROC_LINKS(open_panel_hsplit, 0), "open_panel_hsplit", 17, "Create a new panel by horizontally splitting the active panel.", 62, "c:\\4ed\\code\\4coder_default_framework.cpp", 40, 173 }, -{ PROC_LINKS(open_panel_vsplit, 0), "open_panel_vsplit", 17, "Create a new panel by vertically splitting the active panel.", 60, "c:\\4ed\\code\\4coder_default_framework.cpp", 40, 164 }, -{ PROC_LINKS(page_down, 0), "page_down", 9, "Scrolls the view down one view height and moves the cursor down one view height.", 80, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 294 }, -{ PROC_LINKS(page_up, 0), "page_up", 7, "Scrolls the view up one view height and moves the cursor up one view height.", 76, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 285 }, -{ PROC_LINKS(paste, 0), "paste", 5, "At the cursor, insert the text at the top of the clipboard.", 59, "c:\\4ed\\code\\4coder_clipboard.cpp", 32, 46 }, -{ PROC_LINKS(paste_and_indent, 0), "paste_and_indent", 16, "Paste from the top of clipboard and run auto-indent on the newly pasted text.", 77, "c:\\4ed\\code\\4coder_clipboard.cpp", 32, 131 }, -{ PROC_LINKS(paste_next, 0), "paste_next", 10, "If the previous command was paste or paste_next, replaces the paste range with the next text down on the clipboard, otherwise operates as the paste command.", 156, "c:\\4ed\\code\\4coder_clipboard.cpp", 32, 83 }, -{ PROC_LINKS(paste_next_and_indent, 0), "paste_next_and_indent", 21, "Paste the next item on the clipboard and run auto-indent on the newly pasted text.", 82, "c:\\4ed\\code\\4coder_clipboard.cpp", 32, 138 }, -{ PROC_LINKS(place_in_scope, 0), "place_in_scope", 14, "Wraps the code contained in the range between cursor and mark with a new curly brace scope.", 91, "c:\\4ed\\code\\4coder_scope_commands.cpp", 37, 481 }, -{ PROC_LINKS(project_fkey_command, 0), "project_fkey_command", 20, "Run an 'fkey command' configured in a project.4coder file. Determines the index of the 'fkey command' by which function key or numeric key was pressed to trigger the command.", 175, "c:\\4ed\\code\\4coder_project_commands.cpp", 39, 1078 }, -{ PROC_LINKS(project_go_to_root_directory, 0), "project_go_to_root_directory", 28, "Changes 4coder's hot directory to the root directory of the currently loaded project. With no loaded project nothing hapepns.", 125, "c:\\4ed\\code\\4coder_project_commands.cpp", 39, 1103 }, -{ PROC_LINKS(query_replace, 0), "query_replace", 13, "Queries the user for two strings, and incrementally replaces every occurence of the first string with the second string.", 120, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 918 }, -{ PROC_LINKS(query_replace_identifier, 0), "query_replace_identifier", 24, "Queries the user for a string, and incrementally replace every occurence of the word or token found at the cursor with the specified string.", 140, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 938 }, -{ PROC_LINKS(query_replace_selection, 0), "query_replace_selection", 23, "Queries the user for a string, and incrementally replace every occurence of the string found in the selected range with the specified string.", 141, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 956 }, -{ PROC_LINKS(redo, 0), "redo", 4, "Advances forewards through the undo history.", 44, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1465 }, -{ PROC_LINKS(reload_themes, 0), "reload_themes", 13, "Loads all the theme files in the theme folder, replacing duplicates with the new theme data.", 92, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1485 }, -{ PROC_LINKS(remap_interactive, 0), "remap_interactive", 17, "Switch to a named key binding map.", 34, "c:\\4ed\\code\\4coder_default_framework.cpp", 40, 260 }, -{ PROC_LINKS(rename_file_query, 0), "rename_file_query", 17, "Queries the user for a new name and renames the file of the current buffer, altering the buffer's name too.", 107, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1096 }, -{ PROC_LINKS(rename_parameter, 0), "rename_parameter", 16, "If the cursor is found to be on the name of a function parameter in the signature of a function definition, all occurences within the scope of the function will be replaced with a new provided string.", 200, "c:\\4ed\\code\\4coder_experiments.cpp", 34, 384 }, -{ PROC_LINKS(reopen, 0), "reopen", 6, "Reopen the current buffer from the hard drive.", 46, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1471 }, -{ PROC_LINKS(replace_all_occurrences, 0), "replace_all_occurrences", 23, "Queries the user for two strings, and replaces all occurrences of the first string with the second string in all open buffers.", 126, "c:\\4ed\\code\\4coder_experiments.cpp", 34, 779 }, -{ PROC_LINKS(replace_in_range, 0), "replace_in_range", 16, "Queries the user for two strings, and replaces all occurences of the first string in the range between the cursor and the mark with the second string.", 150, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 816 }, -{ PROC_LINKS(reverse_search, 0), "reverse_search", 14, "Begins an incremental search up through the current buffer for a user specified string.", 87, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 787 }, -{ PROC_LINKS(reverse_search_identifier, 0), "reverse_search_identifier", 25, "Begins an incremental search up through the current buffer for the word or token under the cursor.", 98, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 805 }, -{ PROC_LINKS(save, 0), "save", 4, "Saves the current buffer.", 25, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1477 }, -{ PROC_LINKS(save_all_dirty_buffers, 0), "save_all_dirty_buffers", 22, "Saves all buffers marked dirty (showing the '*' indicator).", 59, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1000 }, -{ PROC_LINKS(save_to_query, 0), "save_to_query", 13, "Queries the user for a name and saves the contents of the current buffer, altering the buffer's name too.", 105, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1056 }, -{ PROC_LINKS(scope_absorb_down, 0), "scope_absorb_down", 17, "If a scope is currently selected, and a statement or block statement is present below the current scope, the statement is moved into the scope.", 143, "c:\\4ed\\code\\4coder_scope_commands.cpp", 37, 738 }, -{ PROC_LINKS(search, 0), "search", 6, "Begins an incremental search down through the current buffer for a user specified string.", 89, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 780 }, -{ PROC_LINKS(search_identifier, 0), "search_identifier", 17, "Begins an incremental search down through the current buffer for the word or token under the cursor.", 100, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 794 }, -{ PROC_LINKS(seek_alphanumeric_left, 0), "seek_alphanumeric_left", 22, "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1227 }, -{ PROC_LINKS(seek_alphanumeric_or_camel_left, 0), "seek_alphanumeric_or_camel_left", 31, "Seek left for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 106, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1239 }, -{ PROC_LINKS(seek_alphanumeric_or_camel_right, 0), "seek_alphanumeric_or_camel_right", 32, "Seek right for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 107, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1233 }, -{ PROC_LINKS(seek_alphanumeric_right, 0), "seek_alphanumeric_right", 23, "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1221 }, -{ PROC_LINKS(seek_beginning_of_line, 0), "seek_beginning_of_line", 22, "Seeks the cursor to the beginning of the visual line.", 53, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1126 }, -{ PROC_LINKS(seek_beginning_of_textual_line, 0), "seek_beginning_of_textual_line", 30, "Seeks the cursor to the beginning of the line across all text.", 62, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1108 }, -{ PROC_LINKS(seek_end_of_line, 0), "seek_end_of_line", 16, "Seeks the cursor to the end of the visual line.", 47, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1137 }, -{ PROC_LINKS(seek_end_of_textual_line, 0), "seek_end_of_textual_line", 24, "Seeks the cursor to the end of the line across all text.", 56, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1117 }, -{ PROC_LINKS(seek_token_left, 0), "seek_token_left", 15, "Seek left for the next beginning of a token.", 44, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1203 }, -{ PROC_LINKS(seek_token_right, 0), "seek_token_right", 16, "Seek right for the next end of a token.", 39, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1197 }, -{ PROC_LINKS(seek_white_or_token_left, 0), "seek_white_or_token_left", 24, "Seek left for the next end of a token or boundary between whitespace and non-whitespace.", 88, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1215 }, -{ PROC_LINKS(seek_white_or_token_right, 0), "seek_white_or_token_right", 25, "Seek right for the next end of a token or boundary between whitespace and non-whitespace.", 89, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1209 }, -{ PROC_LINKS(seek_whitespace_down, 0), "seek_whitespace_down", 20, "Seeks the cursor down to the next blank line.", 45, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1099 }, -{ PROC_LINKS(seek_whitespace_down_end_line, 0), "seek_whitespace_down_end_line", 29, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1158 }, -{ PROC_LINKS(seek_whitespace_left, 0), "seek_whitespace_left", 20, "Seek left for the next boundary between whitespace and non-whitespace.", 70, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1191 }, -{ PROC_LINKS(seek_whitespace_right, 0), "seek_whitespace_right", 21, "Seek right for the next boundary between whitespace and non-whitespace.", 71, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1185 }, -{ PROC_LINKS(seek_whitespace_up, 0), "seek_whitespace_up", 18, "Seeks the cursor up to the next blank line.", 43, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1090 }, -{ PROC_LINKS(seek_whitespace_up_end_line, 0), "seek_whitespace_up_end_line", 27, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1148 }, -{ PROC_LINKS(select_all, 0), "select_all", 10, "Puts the cursor at the top of the file, and the mark at the bottom of the file.", 79, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 323 }, -{ PROC_LINKS(set_bindings_choose, 0), "set_bindings_choose", 19, "Remap keybindings using the 'choose' mapping rule.", 50, "c:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 47 }, -{ PROC_LINKS(set_bindings_default, 0), "set_bindings_default", 20, "Remap keybindings using the 'default' mapping rule.", 51, "c:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 61 }, -{ PROC_LINKS(set_bindings_mac_default, 0), "set_bindings_mac_default", 24, "Remap keybindings using the 'mac-default' mapping rule.", 55, "c:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 75 }, -{ PROC_LINKS(set_mark, 0), "set_mark", 8, "Sets the mark to the current position of the cursor.", 52, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 92 }, -{ PROC_LINKS(setup_build_bat, 0), "setup_build_bat", 15, "Queries the user for several configuration options and initializes a new build batch script.", 92, "c:\\4ed\\code\\4coder_project_commands.cpp", 39, 1488 }, -{ PROC_LINKS(setup_build_bat_and_sh, 0), "setup_build_bat_and_sh", 22, "Queries the user for several configuration options and initializes a new build batch script.", 92, "c:\\4ed\\code\\4coder_project_commands.cpp", 39, 1500 }, -{ PROC_LINKS(setup_build_sh, 0), "setup_build_sh", 14, "Queries the user for several configuration options and initializes a new build shell script.", 92, "c:\\4ed\\code\\4coder_project_commands.cpp", 39, 1494 }, -{ PROC_LINKS(setup_new_project, 0), "setup_new_project", 17, "Queries the user for several configuration options and initializes a new 4coder project with build scripts for every OS.", 120, "c:\\4ed\\code\\4coder_project_commands.cpp", 39, 1481 }, -{ PROC_LINKS(show_filebar, 0), "show_filebar", 12, "Sets the current view to show it's filebar.", 43, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 470 }, -{ PROC_LINKS(show_scrollbar, 0), "show_scrollbar", 14, "Sets the current view to show it's scrollbar.", 45, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 456 }, -{ PROC_LINKS(snipe_token_or_word, 0), "snipe_token_or_word", 19, "Delete a single, whole token on or to the left of the cursor and post it to the clipboard.", 90, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1259 }, -{ PROC_LINKS(snipe_token_or_word_right, 0), "snipe_token_or_word_right", 25, "Delete a single, whole token on or to the right of the cursor and post it to the clipboard.", 91, "c:\\4ed\\code\\4coder_seek.cpp", 27, 1265 }, -{ PROC_LINKS(suppress_mouse, 0), "suppress_mouse", 14, "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "c:\\4ed\\code\\4coder_default_framework.cpp", 40, 234 }, -{ PROC_LINKS(swap_buffers_between_panels, 0), "swap_buffers_between_panels", 27, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1417 }, -{ PROC_LINKS(to_lowercase, 0), "to_lowercase", 12, "Converts all ascii text in the range between the cursor and the mark to lowercase.", 82, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 354 }, -{ PROC_LINKS(to_uppercase, 0), "to_uppercase", 12, "Converts all ascii text in the range between the cursor and the mark to uppercase.", 82, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 334 }, -{ PROC_LINKS(toggle_filebar, 0), "toggle_filebar", 14, "Toggles the visibility status of the current view's filebar.", 60, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 484 }, -{ PROC_LINKS(toggle_fullscreen, 0), "toggle_fullscreen", 17, "Toggle fullscreen mode on or off. The change(s) do not take effect until the next frame.", 89, "c:\\4ed\\code\\4coder_default_framework.cpp", 40, 252 }, -{ PROC_LINKS(toggle_line_wrap, 0), "toggle_line_wrap", 16, "Toggles the current buffer's line wrapping status.", 50, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 493 }, -{ PROC_LINKS(toggle_mouse, 0), "toggle_mouse", 12, "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "c:\\4ed\\code\\4coder_default_framework.cpp", 40, 246 }, -{ PROC_LINKS(toggle_show_whitespace, 0), "toggle_show_whitespace", 22, "Toggles the current buffer's whitespace visibility status.", 58, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 560 }, -{ PROC_LINKS(toggle_virtual_whitespace, 0), "toggle_virtual_whitespace", 25, "Toggles the current buffer's virtual whitespace status.", 55, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 549 }, -{ PROC_LINKS(undo, 0), "undo", 4, "Advances backwards through the undo history.", 44, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1459 }, -{ PROC_LINKS(view_buffer_other_panel, 0), "view_buffer_other_panel", 23, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 1407 }, -{ PROC_LINKS(word_complete, 0), "word_complete", 13, "Iteratively tries completing the word to the left of the cursor with other words in open buffers that have the same prefix string.", 130, "c:\\4ed\\code\\4coder_search.cpp", 29, 856 }, -{ PROC_LINKS(write_and_auto_tab, 0), "write_and_auto_tab", 18, "Inserts a character and auto-indents the line on which the cursor sits.", 71, "c:\\4ed\\code\\4coder_auto_indent.cpp", 34, 745 }, -{ PROC_LINKS(write_block, 0), "write_block", 11, "At the cursor, insert a block comment.", 38, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 106 }, -{ PROC_LINKS(write_character, 0), "write_character", 15, "Inserts whatever character was used to trigger this command.", 60, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 39 }, -{ PROC_LINKS(write_explicit_enum_flags, 0), "write_explicit_enum_flags", 25, "If the cursor is found to be on the '{' of an enum definition, the values of the enum will be filled in to give each a unique power of 2 value, starting from 1. Existing values are overwritten.", 194, "c:\\4ed\\code\\4coder_experiments.cpp", 34, 706 }, -{ PROC_LINKS(write_explicit_enum_values, 0), "write_explicit_enum_values", 26, "If the cursor is found to be on the '{' of an enum definition, the values of the enum will be filled in sequentially starting from zero. Existing values are overwritten.", 170, "c:\\4ed\\code\\4coder_experiments.cpp", 34, 700 }, -{ PROC_LINKS(write_hack, 0), "write_hack", 10, "At the cursor, insert a '// HACK' comment, includes user name if it was specified in config.4coder.", 99, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 94 }, -{ PROC_LINKS(write_note, 0), "write_note", 10, "At the cursor, insert a '// NOTE' comment, includes user name if it was specified in config.4coder.", 99, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 100 }, -{ PROC_LINKS(write_todo, 0), "write_todo", 10, "At the cursor, insert a '// TODO' comment, includes user name if it was specified in config.4coder.", 99, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 88 }, -{ PROC_LINKS(write_underscore, 0), "write_underscore", 16, "Inserts an underscore.", 22, "c:\\4ed\\code\\4coder_base_commands.cpp", 36, 48 }, -{ PROC_LINKS(write_zero_struct, 0), "write_zero_struct", 17, "At the cursor, insert a ' = {0};'.", 34, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 112 }, +static Command_Metadata fcoder_metacmd_table[202] = { +{ PROC_LINKS(allow_mouse, 0), "allow_mouse", 11, "Shows the mouse and causes all mouse input to be processed normally.", 68, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 240 }, +{ PROC_LINKS(auto_tab_line_at_cursor, 0), "auto_tab_line_at_cursor", 23, "Auto-indents the line on which the cursor sits.", 47, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 722 }, +{ PROC_LINKS(auto_tab_range, 0), "auto_tab_range", 14, "Auto-indents the range between the cursor and the mark.", 55, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 733 }, +{ PROC_LINKS(auto_tab_whole_file, 0), "auto_tab_whole_file", 19, "Audo-indents the entire current buffer.", 39, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 712 }, +{ PROC_LINKS(backspace_char, 0), "backspace_char", 14, "Deletes the character to the left of the cursor.", 48, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 73 }, +{ PROC_LINKS(backspace_word, 0), "backspace_word", 14, "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1247 }, +{ PROC_LINKS(basic_change_active_panel, 0), "basic_change_active_panel", 25, "Change the currently active panel, moving to the panel with the next highest view_id. Will not skipe the build panel if it is open.", 132, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 439 }, +{ PROC_LINKS(build_in_build_panel, 0), "build_in_build_panel", 20, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*. Puts the *compilation* buffer in a panel at the footer of the current view.", 230, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 187 }, +{ PROC_LINKS(build_search, 0), "build_search", 12, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*.", 153, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 155 }, +{ PROC_LINKS(center_view, 0), "center_view", 11, "Centers the view vertically on the line on which the cursor sits.", 65, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 126 }, +{ PROC_LINKS(change_active_panel, 0), "change_active_panel", 19, "Change the currently active panel, moving to the panel with the next highest view_id.", 85, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 144 }, +{ PROC_LINKS(change_active_panel_backwards, 0), "change_active_panel_backwards", 29, "Change the currently active panel, moving to the panel with the next lowest view_id.", 84, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 154 }, +{ PROC_LINKS(change_to_build_panel, 0), "change_to_build_panel", 21, "If the special build panel is open, makes the build panel the active panel.", 75, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 209 }, +{ PROC_LINKS(clean_all_lines, 0), "clean_all_lines", 15, "Removes trailing whitespace from all lines in the current buffer.", 65, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 374 }, +{ PROC_LINKS(click_set_cursor, 0), "click_set_cursor", 16, "Sets the cursor position to the mouse position.", 47, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 180 }, +{ PROC_LINKS(click_set_mark, 0), "click_set_mark", 14, "Sets the mark position to the mouse position.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 193 }, +{ PROC_LINKS(close_all_code, 0), "close_all_code", 14, "Closes any buffer with a filename ending with an extension configured to be recognized as a code file type.", 107, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1048 }, +{ PROC_LINKS(close_build_panel, 0), "close_build_panel", 17, "If the special build panel is open, closes it.", 46, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 203 }, +{ PROC_LINKS(close_panel, 0), "close_panel", 11, "Closes the currently active panel if it is not the only panel open.", 67, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 447 }, +{ PROC_LINKS(copy, 0), "copy", 4, "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 26 }, +{ PROC_LINKS(cursor_mark_swap, 0), "cursor_mark_swap", 16, "Swaps the position of the cursor and the mark.", 46, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 101 }, +{ PROC_LINKS(cut, 0), "cut", 3, "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 35 }, +{ PROC_LINKS(decrease_face_size, 0), "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 537 }, +{ PROC_LINKS(decrease_line_wrap, 0), "decrease_line_wrap", 18, "Decrases the current buffer's width for line wrapping.", 54, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 514 }, +{ PROC_LINKS(delete_char, 0), "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 55 }, +{ PROC_LINKS(delete_current_scope, 0), "delete_current_scope", 20, "Deletes the braces surrounding the currently selected scope. Leaves the contents within the scope.", 99, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 487 }, +{ PROC_LINKS(delete_file_query, 0), "delete_file_query", 17, "Deletes the file of the current buffer if 4coder has the appropriate access rights. Will ask the user for confirmation first.", 125, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1030 }, +{ PROC_LINKS(delete_line, 0), "delete_line", 11, "Delete the line the on which the cursor sits.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1280 }, +{ PROC_LINKS(delete_range, 0), "delete_range", 12, "Deletes the text in the range between the cursor and the mark.", 62, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 113 }, +{ PROC_LINKS(delete_word, 0), "delete_word", 11, "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1253 }, +{ PROC_LINKS(duplicate_line, 0), "duplicate_line", 14, "Create a copy of the line on which the cursor sits.", 51, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1258 }, +{ PROC_LINKS(eol_dosify, 0), "eol_dosify", 10, "Puts the buffer in DOS line ending mode.", 40, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 567 }, +{ PROC_LINKS(eol_nixify, 0), "eol_nixify", 10, "Puts the buffer in NIX line ending mode.", 40, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 575 }, +{ PROC_LINKS(execute_any_cli, 0), "execute_any_cli", 15, "Queries for an output buffer name and system command, runs the system command as a CLI and prints the output to the specified buffer.", 133, "w:\\4ed\\code\\4coder_system_command.cpp", 37, 23 }, +{ PROC_LINKS(execute_arbitrary_command, 0), "execute_arbitrary_command", 25, "Execute a 'long form' command.", 30, "w:\\4ed\\code\\4coder_long_command_switch.cpp", 42, 8 }, +{ PROC_LINKS(execute_previous_cli, 0), "execute_previous_cli", 20, "If the command execute_any_cli has already been used, this will execute a CLI reusing the most recent buffer name and command.", 126, "w:\\4ed\\code\\4coder_system_command.cpp", 37, 7 }, +{ PROC_LINKS(exit_4coder, 0), "exit_4coder", 11, "Attempts to close 4coder.", 25, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 583 }, +{ PROC_LINKS(goto_beginning_of_file, 0), "goto_beginning_of_file", 22, "Sets the cursor to the beginning of the file.", 45, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1168 }, +{ PROC_LINKS(goto_end_of_file, 0), "goto_end_of_file", 16, "Sets the cursor to the end of the file.", 39, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1175 }, +{ PROC_LINKS(goto_first_jump_direct, 0), "goto_first_jump_direct", 22, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 84 }, +{ PROC_LINKS(goto_first_jump_same_panel_sticky, 0), "goto_first_jump_same_panel_sticky", 33, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer and views the buffer in the panel where the jump list was.", 153, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 520 }, +{ PROC_LINKS(goto_first_jump_sticky, 0), "goto_first_jump_sticky", 22, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 502 }, +{ PROC_LINKS(goto_jump_at_cursor_direct, 0), "goto_jump_at_cursor_direct", 26, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 8 }, +{ PROC_LINKS(goto_jump_at_cursor_same_panel_direct, 0), "goto_jump_at_cursor_same_panel_direct", 37, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list..", 168, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 29 }, +{ PROC_LINKS(goto_jump_at_cursor_same_panel_sticky, 0), "goto_jump_at_cursor_same_panel_sticky", 37, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list.", 167, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 348 }, +{ PROC_LINKS(goto_jump_at_cursor_sticky, 0), "goto_jump_at_cursor_sticky", 26, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 320 }, +{ PROC_LINKS(goto_line, 0), "goto_line", 9, "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 591 }, +{ PROC_LINKS(goto_next_jump_direct, 0), "goto_next_jump_direct", 21, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 48 }, +{ PROC_LINKS(goto_next_jump_no_skips_direct, 0), "goto_next_jump_no_skips_direct", 30, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 66 }, +{ PROC_LINKS(goto_next_jump_no_skips_sticky, 0), "goto_next_jump_no_skips_sticky", 30, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 471 }, +{ PROC_LINKS(goto_next_jump_sticky, 0), "goto_next_jump_sticky", 21, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 441 }, +{ PROC_LINKS(goto_prev_jump_direct, 0), "goto_prev_jump_direct", 21, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 57 }, +{ PROC_LINKS(goto_prev_jump_no_skips_direct, 0), "goto_prev_jump_no_skips_direct", 30, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 75 }, +{ PROC_LINKS(goto_prev_jump_no_skips_sticky, 0), "goto_prev_jump_no_skips_sticky", 30, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 487 }, +{ PROC_LINKS(goto_prev_jump_sticky, 0), "goto_prev_jump_sticky", 21, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 457 }, +{ PROC_LINKS(hide_filebar, 0), "hide_filebar", 12, "Sets the current view to hide it's filebar.", 43, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 477 }, +{ PROC_LINKS(hide_scrollbar, 0), "hide_scrollbar", 14, "Sets the current view to hide it's scrollbar.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 463 }, +{ PROC_LINKS(highlight_next_scope_absolute, 0), "highlight_next_scope_absolute", 29, "Finds the first scope started by '{' after the cursor and puts the cursor and mark on the '{' and '}'.", 102, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 363 }, +{ PROC_LINKS(highlight_prev_scope_absolute, 0), "highlight_prev_scope_absolute", 29, "Finds the first scope started by '{' before the cursor and puts the cursor and mark on the '{' and '}'.", 103, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 382 }, +{ PROC_LINKS(highlight_surrounding_scope, 0), "highlight_surrounding_scope", 27, "Finds the scope enclosed by '{' '}' surrounding the cursor and puts the cursor and mark on the '{' and '}'.", 107, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 341 }, +{ PROC_LINKS(if0_off, 0), "if0_off", 7, "Surround the range between the cursor and mark with an '#if 0' and an '#endif'", 78, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 82 }, +{ PROC_LINKS(increase_face_size, 0), "increase_face_size", 18, "Increase the size of the face used by the current buffer.", 57, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 525 }, +{ PROC_LINKS(increase_line_wrap, 0), "increase_line_wrap", 18, "Increases the current buffer's width for line wrapping.", 55, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 503 }, +{ PROC_LINKS(interactive_kill_buffer, 0), "interactive_kill_buffer", 23, "Interactively kill an open buffer.", 34, "w:\\4ed\\code\\4coder_lists.cpp", 28, 707 }, +{ PROC_LINKS(interactive_new, 0), "interactive_new", 15, "Interactively creates a new file.", 33, "w:\\4ed\\code\\4coder_lists.cpp", 28, 809 }, +{ PROC_LINKS(interactive_open, 0), "interactive_open", 16, "Interactively opens a file.", 27, "w:\\4ed\\code\\4coder_lists.cpp", 28, 836 }, +{ PROC_LINKS(interactive_open_or_new, 0), "interactive_open_or_new", 23, "Interactively open a file out of the file system.", 49, "w:\\4ed\\code\\4coder_lists.cpp", 28, 776 }, +{ PROC_LINKS(interactive_switch_buffer, 0), "interactive_switch_buffer", 25, "Interactively switch to an open buffer.", 39, "w:\\4ed\\code\\4coder_lists.cpp", 28, 689 }, +{ PROC_LINKS(kill_buffer, 0), "kill_buffer", 11, "Kills the current buffer.", 25, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1450 }, +{ PROC_LINKS(left_adjust_view, 0), "left_adjust_view", 16, "Sets the left size of the view near the x position of the cursor.", 65, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 141 }, +{ PROC_LINKS(list_all_functions_current_buffer, 0), "list_all_functions_current_buffer", 33, "Creates a jump list of lines of the current buffer that appear to define or declare functions.", 94, "w:\\4ed\\code\\4coder_function_list.cpp", 36, 318 }, +{ PROC_LINKS(list_all_locations, 0), "list_all_locations", 18, "Queries the user for a string and lists all exact case-sensitive matches found in all open buffers.", 99, "w:\\4ed\\code\\4coder_search.cpp", 29, 769 }, +{ PROC_LINKS(list_all_locations_case_insensitive, 0), "list_all_locations_case_insensitive", 35, "Queries the user for a string and lists all exact case-insensitive matches found in all open buffers.", 101, "w:\\4ed\\code\\4coder_search.cpp", 29, 783 }, +{ PROC_LINKS(list_all_locations_of_identifier, 0), "list_all_locations_of_identifier", 32, "Reads a token or word under the cursor and lists all exact case-sensitive mathces in all open buffers.", 102, "w:\\4ed\\code\\4coder_search.cpp", 29, 797 }, +{ PROC_LINKS(list_all_locations_of_identifier_case_insensitive, 0), "list_all_locations_of_identifier_case_insensitive", 49, "Reads a token or word under the cursor and lists all exact case-insensitive mathces in all open buffers.", 104, "w:\\4ed\\code\\4coder_search.cpp", 29, 804 }, +{ PROC_LINKS(list_all_locations_of_selection, 0), "list_all_locations_of_selection", 31, "Reads the string in the selected range and lists all exact case-sensitive mathces in all open buffers.", 102, "w:\\4ed\\code\\4coder_search.cpp", 29, 811 }, +{ PROC_LINKS(list_all_locations_of_selection_case_insensitive, 0), "list_all_locations_of_selection_case_insensitive", 48, "Reads the string in the selected range and lists all exact case-insensitive mathces in all open buffers.", 104, "w:\\4ed\\code\\4coder_search.cpp", 29, 818 }, +{ PROC_LINKS(list_all_locations_of_type_definition, 0), "list_all_locations_of_type_definition", 37, "Queries user for string, lists all locations of strings that appear to define a type whose name matches the input string.", 121, "w:\\4ed\\code\\4coder_search.cpp", 29, 825 }, +{ PROC_LINKS(list_all_locations_of_type_definition_of_identifier, 0), "list_all_locations_of_type_definition_of_identifier", 51, "Reads a token or word under the cursor and lists all locations of strings that appear to define a type whose name matches it.", 125, "w:\\4ed\\code\\4coder_search.cpp", 29, 836 }, +{ PROC_LINKS(list_all_substring_locations, 0), "list_all_substring_locations", 28, "Queries the user for a string and lists all case-sensitive substring matches found in all open buffers.", 103, "w:\\4ed\\code\\4coder_search.cpp", 29, 776 }, +{ PROC_LINKS(list_all_substring_locations_case_insensitive, 0), "list_all_substring_locations_case_insensitive", 45, "Queries the user for a string and lists all case-insensitive substring matches found in all open buffers.", 105, "w:\\4ed\\code\\4coder_search.cpp", 29, 790 }, +{ PROC_LINKS(lister__activate, 0), "lister__activate", 16, "A lister mode command that activates the list's action on the highlighted item.", 79, "w:\\4ed\\code\\4coder_lists.cpp", 28, 15 }, +{ PROC_LINKS(lister__backspace_text_field, 0), "lister__backspace_text_field", 28, "A lister mode command that dispatches to the lister's backspace text field handler.", 83, "w:\\4ed\\code\\4coder_lists.cpp", 28, 41 }, +{ PROC_LINKS(lister__backspace_text_field__default, 0), "lister__backspace_text_field__default", 37, "A lister mode command that backspaces one character from the text field.", 72, "w:\\4ed\\code\\4coder_lists.cpp", 28, 146 }, +{ PROC_LINKS(lister__backspace_text_field__file_path, 0), "lister__backspace_text_field__file_path", 39, "A lister mode command that backspaces one character from the text field of a file system list.", 94, "w:\\4ed\\code\\4coder_lists.cpp", 28, 218 }, +{ PROC_LINKS(lister__mouse_press, 0), "lister__mouse_press", 19, "A lister mode command that beings a click interaction with a list item under the mouse.", 87, "w:\\4ed\\code\\4coder_lists.cpp", 28, 86 }, +{ PROC_LINKS(lister__mouse_release, 0), "lister__mouse_release", 21, "A lister mode command that ends a click interaction with a list item under the mouse, possibly activating it.", 109, "w:\\4ed\\code\\4coder_lists.cpp", 28, 98 }, +{ PROC_LINKS(lister__move_down, 0), "lister__move_down", 17, "A lister mode command that dispatches to the lister's navigate down handler.", 76, "w:\\4ed\\code\\4coder_lists.cpp", 28, 61 }, +{ PROC_LINKS(lister__move_down__default, 0), "lister__move_down__default", 26, "A lister mode command that moves the highlighted item one down in the list.", 75, "w:\\4ed\\code\\4coder_lists.cpp", 28, 177 }, +{ PROC_LINKS(lister__move_up, 0), "lister__move_up", 15, "A lister mode command that dispatches to the lister's navigate up handler.", 74, "w:\\4ed\\code\\4coder_lists.cpp", 28, 51 }, +{ PROC_LINKS(lister__move_up__default, 0), "lister__move_up__default", 24, "A lister mode command that moves the highlighted item one up in the list.", 73, "w:\\4ed\\code\\4coder_lists.cpp", 28, 161 }, +{ PROC_LINKS(lister__quit, 0), "lister__quit", 12, "A lister mode command that quits the list without executing any actions.", 72, "w:\\4ed\\code\\4coder_lists.cpp", 28, 8 }, +{ PROC_LINKS(lister__repaint, 0), "lister__repaint", 15, "A lister mode command that updates the lists UI data.", 53, "w:\\4ed\\code\\4coder_lists.cpp", 28, 115 }, +{ PROC_LINKS(lister__wheel_scroll, 0), "lister__wheel_scroll", 20, "A lister mode command that scrolls the list in response to the mouse wheel.", 75, "w:\\4ed\\code\\4coder_lists.cpp", 28, 71 }, +{ PROC_LINKS(lister__write_character, 0), "lister__write_character", 23, "A lister mode command that dispatches to the lister's write character handler.", 78, "w:\\4ed\\code\\4coder_lists.cpp", 28, 31 }, +{ PROC_LINKS(lister__write_character__default, 0), "lister__write_character__default", 32, "A lister mode command that inserts a new character to the text field.", 69, "w:\\4ed\\code\\4coder_lists.cpp", 28, 126 }, +{ PROC_LINKS(lister__write_character__file_path, 0), "lister__write_character__file_path", 34, "A lister mode command that inserts a character into the text field of a file system list.", 89, "w:\\4ed\\code\\4coder_lists.cpp", 28, 193 }, +{ PROC_LINKS(lister__write_character__fixed_list, 0), "lister__write_character__fixed_list", 35, "A lister mode command that handles input for the fixed sure to kill list.", 73, "w:\\4ed\\code\\4coder_lists.cpp", 28, 253 }, +{ PROC_LINKS(load_project, 0), "load_project", 12, "Looks for a project.4coder file in the current directory and tries to load it. Looks in parent directories until a project file is found or there are no more parents.", 167, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1071 }, +{ PROC_LINKS(make_directory_query, 0), "make_directory_query", 20, "Queries the user for a name and creates a new directory with the given name.", 76, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1138 }, +{ PROC_LINKS(move_down, 0), "move_down", 9, "Moves the cursor down one line.", 31, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 256 }, +{ PROC_LINKS(move_down_10, 0), "move_down_10", 12, "Moves the cursor down ten lines.", 32, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 268 }, +{ PROC_LINKS(move_down_textual, 0), "move_down_textual", 17, "Moves down to the next line of actual text, regardless of line wrapping.", 72, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 274 }, +{ PROC_LINKS(move_left, 0), "move_left", 9, "Moves the cursor one character to the left.", 43, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 305 }, +{ PROC_LINKS(move_line_down, 0), "move_line_down", 14, "Swaps the line under the cursor with the line below it, and moves the cursor down with it.", 90, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1235 }, +{ PROC_LINKS(move_line_up, 0), "move_line_up", 12, "Swaps the line under the cursor with the line above it, and moves the cursor up with it.", 88, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1171 }, +{ PROC_LINKS(move_right, 0), "move_right", 10, "Moves the cursor one character to the right.", 44, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 314 }, +{ PROC_LINKS(move_up, 0), "move_up", 7, "Moves the cursor up one line.", 29, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 250 }, +{ PROC_LINKS(move_up_10, 0), "move_up_10", 10, "Moves the cursor up ten lines.", 30, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 262 }, +{ PROC_LINKS(newline_or_goto_position_direct, 0), "newline_or_goto_position_direct", 31, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 101 }, +{ PROC_LINKS(newline_or_goto_position_same_panel_direct, 0), "newline_or_goto_position_same_panel_direct", 42, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 116 }, +{ PROC_LINKS(newline_or_goto_position_same_panel_sticky, 0), "newline_or_goto_position_same_panel_sticky", 42, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 558 }, +{ PROC_LINKS(newline_or_goto_position_sticky, 0), "newline_or_goto_position_sticky", 31, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 543 }, +{ PROC_LINKS(open_all_code, 0), "open_all_code", 13, "Open all code in the current directory. File types are determined by extensions. An extension is considered code based on the extensions specified in 4coder.config.", 164, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1055 }, +{ PROC_LINKS(open_all_code_recursive, 0), "open_all_code_recursive", 23, "Works as open_all_code but also runs in all subdirectories.", 59, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1062 }, +{ PROC_LINKS(open_color_tweaker, 0), "open_color_tweaker", 18, "Opens the 4coder theme selector list.", 37, "w:\\4ed\\code\\4coder_lists.cpp", 28, 852 }, +{ PROC_LINKS(open_file_in_quotes, 0), "open_file_in_quotes", 19, "Reads a filename from surrounding '\"' characters and attempts to open the corresponding file.", 94, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1357 }, +{ PROC_LINKS(open_in_other, 0), "open_in_other", 13, "Interactively opens a file in the other panel.", 46, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1508 }, +{ PROC_LINKS(open_long_braces, 0), "open_long_braces", 16, "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 58 }, +{ PROC_LINKS(open_long_braces_break, 0), "open_long_braces_break", 22, "At the cursor, insert a '{' and '}break;' separated by a blank line.", 68, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 74 }, +{ PROC_LINKS(open_long_braces_semicolon, 0), "open_long_braces_semicolon", 26, "At the cursor, insert a '{' and '};' separated by a blank line.", 63, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 66 }, +{ PROC_LINKS(open_matching_file_cpp, 0), "open_matching_file_cpp", 22, "If the current file is a *.cpp or *.h, attempts to open the corresponding *.h or *.cpp file in the other view.", 110, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1393 }, +{ PROC_LINKS(open_panel_hsplit, 0), "open_panel_hsplit", 17, "Create a new panel by horizontally splitting the active panel.", 62, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 173 }, +{ PROC_LINKS(open_panel_vsplit, 0), "open_panel_vsplit", 17, "Create a new panel by vertically splitting the active panel.", 60, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 164 }, +{ PROC_LINKS(page_down, 0), "page_down", 9, "Scrolls the view down one view height and moves the cursor down one view height.", 80, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 294 }, +{ PROC_LINKS(page_up, 0), "page_up", 7, "Scrolls the view up one view height and moves the cursor up one view height.", 76, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 285 }, +{ PROC_LINKS(paste, 0), "paste", 5, "At the cursor, insert the text at the top of the clipboard.", 59, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 46 }, +{ PROC_LINKS(paste_and_indent, 0), "paste_and_indent", 16, "Paste from the top of clipboard and run auto-indent on the newly pasted text.", 77, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 131 }, +{ PROC_LINKS(paste_next, 0), "paste_next", 10, "If the previous command was paste or paste_next, replaces the paste range with the next text down on the clipboard, otherwise operates as the paste command.", 156, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 83 }, +{ PROC_LINKS(paste_next_and_indent, 0), "paste_next_and_indent", 21, "Paste the next item on the clipboard and run auto-indent on the newly pasted text.", 82, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 138 }, +{ PROC_LINKS(place_in_scope, 0), "place_in_scope", 14, "Wraps the code contained in the range between cursor and mark with a new curly brace scope.", 91, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 481 }, +{ PROC_LINKS(project_fkey_command, 0), "project_fkey_command", 20, "Run an 'fkey command' configured in a project.4coder file. Determines the index of the 'fkey command' by which function key or numeric key was pressed to trigger the command.", 175, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1078 }, +{ PROC_LINKS(project_go_to_root_directory, 0), "project_go_to_root_directory", 28, "Changes 4coder's hot directory to the root directory of the currently loaded project. With no loaded project nothing hapepns.", 125, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1103 }, +{ PROC_LINKS(query_replace, 0), "query_replace", 13, "Queries the user for two strings, and incrementally replaces every occurence of the first string with the second string.", 120, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 918 }, +{ PROC_LINKS(query_replace_identifier, 0), "query_replace_identifier", 24, "Queries the user for a string, and incrementally replace every occurence of the word or token found at the cursor with the specified string.", 140, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 938 }, +{ PROC_LINKS(query_replace_selection, 0), "query_replace_selection", 23, "Queries the user for a string, and incrementally replace every occurence of the string found in the selected range with the specified string.", 141, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 956 }, +{ PROC_LINKS(redo, 0), "redo", 4, "Advances forewards through the undo history.", 44, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1465 }, +{ PROC_LINKS(reload_themes, 0), "reload_themes", 13, "Loads all the theme files in the theme folder, replacing duplicates with the new theme data.", 92, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1485 }, +{ PROC_LINKS(remap_interactive, 0), "remap_interactive", 17, "Switch to a named key binding map.", 34, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 260 }, +{ PROC_LINKS(rename_file_query, 0), "rename_file_query", 17, "Queries the user for a new name and renames the file of the current buffer, altering the buffer's name too.", 107, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1096 }, +{ PROC_LINKS(reopen, 0), "reopen", 6, "Reopen the current buffer from the hard drive.", 46, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1471 }, +{ PROC_LINKS(replace_in_range, 0), "replace_in_range", 16, "Queries the user for two strings, and replaces all occurences of the first string in the range between the cursor and the mark with the second string.", 150, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 816 }, +{ PROC_LINKS(reverse_search, 0), "reverse_search", 14, "Begins an incremental search up through the current buffer for a user specified string.", 87, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 787 }, +{ PROC_LINKS(reverse_search_identifier, 0), "reverse_search_identifier", 25, "Begins an incremental search up through the current buffer for the word or token under the cursor.", 98, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 805 }, +{ PROC_LINKS(save, 0), "save", 4, "Saves the current buffer.", 25, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1477 }, +{ PROC_LINKS(save_all_dirty_buffers, 0), "save_all_dirty_buffers", 22, "Saves all buffers marked dirty (showing the '*' indicator).", 59, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1000 }, +{ PROC_LINKS(save_to_query, 0), "save_to_query", 13, "Queries the user for a name and saves the contents of the current buffer, altering the buffer's name too.", 105, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1056 }, +{ PROC_LINKS(scope_absorb_down, 0), "scope_absorb_down", 17, "If a scope is currently selected, and a statement or block statement is present below the current scope, the statement is moved into the scope.", 143, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 738 }, +{ PROC_LINKS(search, 0), "search", 6, "Begins an incremental search down through the current buffer for a user specified string.", 89, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 780 }, +{ PROC_LINKS(search_identifier, 0), "search_identifier", 17, "Begins an incremental search down through the current buffer for the word or token under the cursor.", 100, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 794 }, +{ PROC_LINKS(seek_alphanumeric_left, 0), "seek_alphanumeric_left", 22, "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1227 }, +{ PROC_LINKS(seek_alphanumeric_or_camel_left, 0), "seek_alphanumeric_or_camel_left", 31, "Seek left for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 106, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1239 }, +{ PROC_LINKS(seek_alphanumeric_or_camel_right, 0), "seek_alphanumeric_or_camel_right", 32, "Seek right for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 107, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1233 }, +{ PROC_LINKS(seek_alphanumeric_right, 0), "seek_alphanumeric_right", 23, "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1221 }, +{ PROC_LINKS(seek_beginning_of_line, 0), "seek_beginning_of_line", 22, "Seeks the cursor to the beginning of the visual line.", 53, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1126 }, +{ PROC_LINKS(seek_beginning_of_textual_line, 0), "seek_beginning_of_textual_line", 30, "Seeks the cursor to the beginning of the line across all text.", 62, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1108 }, +{ PROC_LINKS(seek_end_of_line, 0), "seek_end_of_line", 16, "Seeks the cursor to the end of the visual line.", 47, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1137 }, +{ PROC_LINKS(seek_end_of_textual_line, 0), "seek_end_of_textual_line", 24, "Seeks the cursor to the end of the line across all text.", 56, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1117 }, +{ PROC_LINKS(seek_token_left, 0), "seek_token_left", 15, "Seek left for the next beginning of a token.", 44, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1203 }, +{ PROC_LINKS(seek_token_right, 0), "seek_token_right", 16, "Seek right for the next end of a token.", 39, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1197 }, +{ PROC_LINKS(seek_white_or_token_left, 0), "seek_white_or_token_left", 24, "Seek left for the next end of a token or boundary between whitespace and non-whitespace.", 88, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1215 }, +{ PROC_LINKS(seek_white_or_token_right, 0), "seek_white_or_token_right", 25, "Seek right for the next end of a token or boundary between whitespace and non-whitespace.", 89, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1209 }, +{ PROC_LINKS(seek_whitespace_down, 0), "seek_whitespace_down", 20, "Seeks the cursor down to the next blank line.", 45, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1099 }, +{ PROC_LINKS(seek_whitespace_down_end_line, 0), "seek_whitespace_down_end_line", 29, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1158 }, +{ PROC_LINKS(seek_whitespace_left, 0), "seek_whitespace_left", 20, "Seek left for the next boundary between whitespace and non-whitespace.", 70, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1191 }, +{ PROC_LINKS(seek_whitespace_right, 0), "seek_whitespace_right", 21, "Seek right for the next boundary between whitespace and non-whitespace.", 71, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1185 }, +{ PROC_LINKS(seek_whitespace_up, 0), "seek_whitespace_up", 18, "Seeks the cursor up to the next blank line.", 43, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1090 }, +{ PROC_LINKS(seek_whitespace_up_end_line, 0), "seek_whitespace_up_end_line", 27, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1148 }, +{ PROC_LINKS(select_all, 0), "select_all", 10, "Puts the cursor at the top of the file, and the mark at the bottom of the file.", 79, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 323 }, +{ PROC_LINKS(set_bindings_choose, 0), "set_bindings_choose", 19, "Remap keybindings using the 'choose' mapping rule.", 50, "w:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 47 }, +{ PROC_LINKS(set_bindings_default, 0), "set_bindings_default", 20, "Remap keybindings using the 'default' mapping rule.", 51, "w:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 61 }, +{ PROC_LINKS(set_bindings_mac_default, 0), "set_bindings_mac_default", 24, "Remap keybindings using the 'mac-default' mapping rule.", 55, "w:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 75 }, +{ PROC_LINKS(set_mark, 0), "set_mark", 8, "Sets the mark to the current position of the cursor.", 52, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 92 }, +{ PROC_LINKS(setup_build_bat, 0), "setup_build_bat", 15, "Queries the user for several configuration options and initializes a new build batch script.", 92, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1488 }, +{ PROC_LINKS(setup_build_bat_and_sh, 0), "setup_build_bat_and_sh", 22, "Queries the user for several configuration options and initializes a new build batch script.", 92, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1500 }, +{ PROC_LINKS(setup_build_sh, 0), "setup_build_sh", 14, "Queries the user for several configuration options and initializes a new build shell script.", 92, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1494 }, +{ PROC_LINKS(setup_new_project, 0), "setup_new_project", 17, "Queries the user for several configuration options and initializes a new 4coder project with build scripts for every OS.", 120, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1481 }, +{ PROC_LINKS(show_filebar, 0), "show_filebar", 12, "Sets the current view to show it's filebar.", 43, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 470 }, +{ PROC_LINKS(show_scrollbar, 0), "show_scrollbar", 14, "Sets the current view to show it's scrollbar.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 456 }, +{ PROC_LINKS(snipe_token_or_word, 0), "snipe_token_or_word", 19, "Delete a single, whole token on or to the left of the cursor and post it to the clipboard.", 90, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1259 }, +{ PROC_LINKS(snipe_token_or_word_right, 0), "snipe_token_or_word_right", 25, "Delete a single, whole token on or to the right of the cursor and post it to the clipboard.", 91, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1265 }, +{ PROC_LINKS(suppress_mouse, 0), "suppress_mouse", 14, "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 234 }, +{ PROC_LINKS(swap_buffers_between_panels, 0), "swap_buffers_between_panels", 27, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1417 }, +{ PROC_LINKS(to_lowercase, 0), "to_lowercase", 12, "Converts all ascii text in the range between the cursor and the mark to lowercase.", 82, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 354 }, +{ PROC_LINKS(to_uppercase, 0), "to_uppercase", 12, "Converts all ascii text in the range between the cursor and the mark to uppercase.", 82, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 334 }, +{ PROC_LINKS(toggle_filebar, 0), "toggle_filebar", 14, "Toggles the visibility status of the current view's filebar.", 60, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 484 }, +{ PROC_LINKS(toggle_fullscreen, 0), "toggle_fullscreen", 17, "Toggle fullscreen mode on or off. The change(s) do not take effect until the next frame.", 89, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 252 }, +{ PROC_LINKS(toggle_line_wrap, 0), "toggle_line_wrap", 16, "Toggles the current buffer's line wrapping status.", 50, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 493 }, +{ PROC_LINKS(toggle_mouse, 0), "toggle_mouse", 12, "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 246 }, +{ PROC_LINKS(toggle_show_whitespace, 0), "toggle_show_whitespace", 22, "Toggles the current buffer's whitespace visibility status.", 58, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 560 }, +{ PROC_LINKS(toggle_virtual_whitespace, 0), "toggle_virtual_whitespace", 25, "Toggles the current buffer's virtual whitespace status.", 55, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 549 }, +{ PROC_LINKS(undo, 0), "undo", 4, "Advances backwards through the undo history.", 44, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1459 }, +{ PROC_LINKS(view_buffer_other_panel, 0), "view_buffer_other_panel", 23, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1407 }, +{ PROC_LINKS(word_complete, 0), "word_complete", 13, "Iteratively tries completing the word to the left of the cursor with other words in open buffers that have the same prefix string.", 130, "w:\\4ed\\code\\4coder_search.cpp", 29, 856 }, +{ PROC_LINKS(write_and_auto_tab, 0), "write_and_auto_tab", 18, "Inserts a character and auto-indents the line on which the cursor sits.", 71, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 745 }, +{ PROC_LINKS(write_block, 0), "write_block", 11, "At the cursor, insert a block comment.", 38, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 106 }, +{ PROC_LINKS(write_character, 0), "write_character", 15, "Inserts whatever character was used to trigger this command.", 60, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 39 }, +{ PROC_LINKS(write_hack, 0), "write_hack", 10, "At the cursor, insert a '// HACK' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 94 }, +{ PROC_LINKS(write_note, 0), "write_note", 10, "At the cursor, insert a '// NOTE' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 100 }, +{ PROC_LINKS(write_todo, 0), "write_todo", 10, "At the cursor, insert a '// TODO' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 88 }, +{ PROC_LINKS(write_underscore, 0), "write_underscore", 16, "Inserts an underscore.", 22, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 48 }, +{ PROC_LINKS(write_zero_struct, 0), "write_zero_struct", 17, "At the cursor, insert a ' = {0};'.", 34, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 112 }, }; static int32_t fcoder_metacmd_ID_allow_mouse = 0; static int32_t fcoder_metacmd_ID_auto_tab_line_at_cursor = 1; @@ -519,149 +495,137 @@ static int32_t fcoder_metacmd_ID_interactive_open = 65; static int32_t fcoder_metacmd_ID_interactive_open_or_new = 66; static int32_t fcoder_metacmd_ID_interactive_switch_buffer = 67; static int32_t fcoder_metacmd_ID_kill_buffer = 68; -static int32_t fcoder_metacmd_ID_kill_rect = 69; -static int32_t fcoder_metacmd_ID_left_adjust_view = 70; -static int32_t fcoder_metacmd_ID_list_all_functions_current_buffer = 71; -static int32_t fcoder_metacmd_ID_list_all_locations = 72; -static int32_t fcoder_metacmd_ID_list_all_locations_case_insensitive = 73; -static int32_t fcoder_metacmd_ID_list_all_locations_of_identifier = 74; -static int32_t fcoder_metacmd_ID_list_all_locations_of_identifier_case_insensitive = 75; -static int32_t fcoder_metacmd_ID_list_all_locations_of_selection = 76; -static int32_t fcoder_metacmd_ID_list_all_locations_of_selection_case_insensitive = 77; -static int32_t fcoder_metacmd_ID_list_all_locations_of_type_definition = 78; -static int32_t fcoder_metacmd_ID_list_all_locations_of_type_definition_of_identifier = 79; -static int32_t fcoder_metacmd_ID_list_all_substring_locations = 80; -static int32_t fcoder_metacmd_ID_list_all_substring_locations_case_insensitive = 81; -static int32_t fcoder_metacmd_ID_lister__activate = 82; -static int32_t fcoder_metacmd_ID_lister__backspace_text_field = 83; -static int32_t fcoder_metacmd_ID_lister__backspace_text_field__default = 84; -static int32_t fcoder_metacmd_ID_lister__backspace_text_field__file_path = 85; -static int32_t fcoder_metacmd_ID_lister__mouse_press = 86; -static int32_t fcoder_metacmd_ID_lister__mouse_release = 87; -static int32_t fcoder_metacmd_ID_lister__move_down = 88; -static int32_t fcoder_metacmd_ID_lister__move_down__default = 89; -static int32_t fcoder_metacmd_ID_lister__move_up = 90; -static int32_t fcoder_metacmd_ID_lister__move_up__default = 91; -static int32_t fcoder_metacmd_ID_lister__quit = 92; -static int32_t fcoder_metacmd_ID_lister__repaint = 93; -static int32_t fcoder_metacmd_ID_lister__wheel_scroll = 94; -static int32_t fcoder_metacmd_ID_lister__write_character = 95; -static int32_t fcoder_metacmd_ID_lister__write_character__default = 96; -static int32_t fcoder_metacmd_ID_lister__write_character__file_path = 97; -static int32_t fcoder_metacmd_ID_lister__write_character__fixed_list = 98; -static int32_t fcoder_metacmd_ID_load_project = 99; -static int32_t fcoder_metacmd_ID_make_directory_query = 100; -static int32_t fcoder_metacmd_ID_miblo_decrement_basic = 101; -static int32_t fcoder_metacmd_ID_miblo_decrement_time_stamp = 102; -static int32_t fcoder_metacmd_ID_miblo_decrement_time_stamp_minute = 103; -static int32_t fcoder_metacmd_ID_miblo_increment_basic = 104; -static int32_t fcoder_metacmd_ID_miblo_increment_time_stamp = 105; -static int32_t fcoder_metacmd_ID_miblo_increment_time_stamp_minute = 106; -static int32_t fcoder_metacmd_ID_move_down = 107; -static int32_t fcoder_metacmd_ID_move_down_10 = 108; -static int32_t fcoder_metacmd_ID_move_down_textual = 109; -static int32_t fcoder_metacmd_ID_move_left = 110; -static int32_t fcoder_metacmd_ID_move_line_down = 111; -static int32_t fcoder_metacmd_ID_move_line_up = 112; -static int32_t fcoder_metacmd_ID_move_right = 113; -static int32_t fcoder_metacmd_ID_move_up = 114; -static int32_t fcoder_metacmd_ID_move_up_10 = 115; -static int32_t fcoder_metacmd_ID_multi_line_edit = 116; -static int32_t fcoder_metacmd_ID_newline_or_goto_position_direct = 117; -static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_direct = 118; -static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_sticky = 119; -static int32_t fcoder_metacmd_ID_newline_or_goto_position_sticky = 120; -static int32_t fcoder_metacmd_ID_open_all_code = 121; -static int32_t fcoder_metacmd_ID_open_all_code_recursive = 122; -static int32_t fcoder_metacmd_ID_open_color_tweaker = 123; -static int32_t fcoder_metacmd_ID_open_file_in_quotes = 124; -static int32_t fcoder_metacmd_ID_open_in_other = 125; -static int32_t fcoder_metacmd_ID_open_long_braces = 126; -static int32_t fcoder_metacmd_ID_open_long_braces_break = 127; -static int32_t fcoder_metacmd_ID_open_long_braces_semicolon = 128; -static int32_t fcoder_metacmd_ID_open_matching_file_cpp = 129; -static int32_t fcoder_metacmd_ID_open_panel_hsplit = 130; -static int32_t fcoder_metacmd_ID_open_panel_vsplit = 131; -static int32_t fcoder_metacmd_ID_page_down = 132; -static int32_t fcoder_metacmd_ID_page_up = 133; -static int32_t fcoder_metacmd_ID_paste = 134; -static int32_t fcoder_metacmd_ID_paste_and_indent = 135; -static int32_t fcoder_metacmd_ID_paste_next = 136; -static int32_t fcoder_metacmd_ID_paste_next_and_indent = 137; -static int32_t fcoder_metacmd_ID_place_in_scope = 138; -static int32_t fcoder_metacmd_ID_project_fkey_command = 139; -static int32_t fcoder_metacmd_ID_project_go_to_root_directory = 140; -static int32_t fcoder_metacmd_ID_query_replace = 141; -static int32_t fcoder_metacmd_ID_query_replace_identifier = 142; -static int32_t fcoder_metacmd_ID_query_replace_selection = 143; -static int32_t fcoder_metacmd_ID_redo = 144; -static int32_t fcoder_metacmd_ID_reload_themes = 145; -static int32_t fcoder_metacmd_ID_remap_interactive = 146; -static int32_t fcoder_metacmd_ID_rename_file_query = 147; -static int32_t fcoder_metacmd_ID_rename_parameter = 148; -static int32_t fcoder_metacmd_ID_reopen = 149; -static int32_t fcoder_metacmd_ID_replace_all_occurrences = 150; -static int32_t fcoder_metacmd_ID_replace_in_range = 151; -static int32_t fcoder_metacmd_ID_reverse_search = 152; -static int32_t fcoder_metacmd_ID_reverse_search_identifier = 153; -static int32_t fcoder_metacmd_ID_save = 154; -static int32_t fcoder_metacmd_ID_save_all_dirty_buffers = 155; -static int32_t fcoder_metacmd_ID_save_to_query = 156; -static int32_t fcoder_metacmd_ID_scope_absorb_down = 157; -static int32_t fcoder_metacmd_ID_search = 158; -static int32_t fcoder_metacmd_ID_search_identifier = 159; -static int32_t fcoder_metacmd_ID_seek_alphanumeric_left = 160; -static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_left = 161; -static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_right = 162; -static int32_t fcoder_metacmd_ID_seek_alphanumeric_right = 163; -static int32_t fcoder_metacmd_ID_seek_beginning_of_line = 164; -static int32_t fcoder_metacmd_ID_seek_beginning_of_textual_line = 165; -static int32_t fcoder_metacmd_ID_seek_end_of_line = 166; -static int32_t fcoder_metacmd_ID_seek_end_of_textual_line = 167; -static int32_t fcoder_metacmd_ID_seek_token_left = 168; -static int32_t fcoder_metacmd_ID_seek_token_right = 169; -static int32_t fcoder_metacmd_ID_seek_white_or_token_left = 170; -static int32_t fcoder_metacmd_ID_seek_white_or_token_right = 171; -static int32_t fcoder_metacmd_ID_seek_whitespace_down = 172; -static int32_t fcoder_metacmd_ID_seek_whitespace_down_end_line = 173; -static int32_t fcoder_metacmd_ID_seek_whitespace_left = 174; -static int32_t fcoder_metacmd_ID_seek_whitespace_right = 175; -static int32_t fcoder_metacmd_ID_seek_whitespace_up = 176; -static int32_t fcoder_metacmd_ID_seek_whitespace_up_end_line = 177; -static int32_t fcoder_metacmd_ID_select_all = 178; -static int32_t fcoder_metacmd_ID_set_bindings_choose = 179; -static int32_t fcoder_metacmd_ID_set_bindings_default = 180; -static int32_t fcoder_metacmd_ID_set_bindings_mac_default = 181; -static int32_t fcoder_metacmd_ID_set_mark = 182; -static int32_t fcoder_metacmd_ID_setup_build_bat = 183; -static int32_t fcoder_metacmd_ID_setup_build_bat_and_sh = 184; -static int32_t fcoder_metacmd_ID_setup_build_sh = 185; -static int32_t fcoder_metacmd_ID_setup_new_project = 186; -static int32_t fcoder_metacmd_ID_show_filebar = 187; -static int32_t fcoder_metacmd_ID_show_scrollbar = 188; -static int32_t fcoder_metacmd_ID_snipe_token_or_word = 189; -static int32_t fcoder_metacmd_ID_snipe_token_or_word_right = 190; -static int32_t fcoder_metacmd_ID_suppress_mouse = 191; -static int32_t fcoder_metacmd_ID_swap_buffers_between_panels = 192; -static int32_t fcoder_metacmd_ID_to_lowercase = 193; -static int32_t fcoder_metacmd_ID_to_uppercase = 194; -static int32_t fcoder_metacmd_ID_toggle_filebar = 195; -static int32_t fcoder_metacmd_ID_toggle_fullscreen = 196; -static int32_t fcoder_metacmd_ID_toggle_line_wrap = 197; -static int32_t fcoder_metacmd_ID_toggle_mouse = 198; -static int32_t fcoder_metacmd_ID_toggle_show_whitespace = 199; -static int32_t fcoder_metacmd_ID_toggle_virtual_whitespace = 200; -static int32_t fcoder_metacmd_ID_undo = 201; -static int32_t fcoder_metacmd_ID_view_buffer_other_panel = 202; -static int32_t fcoder_metacmd_ID_word_complete = 203; -static int32_t fcoder_metacmd_ID_write_and_auto_tab = 204; -static int32_t fcoder_metacmd_ID_write_block = 205; -static int32_t fcoder_metacmd_ID_write_character = 206; -static int32_t fcoder_metacmd_ID_write_explicit_enum_flags = 207; -static int32_t fcoder_metacmd_ID_write_explicit_enum_values = 208; -static int32_t fcoder_metacmd_ID_write_hack = 209; -static int32_t fcoder_metacmd_ID_write_note = 210; -static int32_t fcoder_metacmd_ID_write_todo = 211; -static int32_t fcoder_metacmd_ID_write_underscore = 212; -static int32_t fcoder_metacmd_ID_write_zero_struct = 213; +static int32_t fcoder_metacmd_ID_left_adjust_view = 69; +static int32_t fcoder_metacmd_ID_list_all_functions_current_buffer = 70; +static int32_t fcoder_metacmd_ID_list_all_locations = 71; +static int32_t fcoder_metacmd_ID_list_all_locations_case_insensitive = 72; +static int32_t fcoder_metacmd_ID_list_all_locations_of_identifier = 73; +static int32_t fcoder_metacmd_ID_list_all_locations_of_identifier_case_insensitive = 74; +static int32_t fcoder_metacmd_ID_list_all_locations_of_selection = 75; +static int32_t fcoder_metacmd_ID_list_all_locations_of_selection_case_insensitive = 76; +static int32_t fcoder_metacmd_ID_list_all_locations_of_type_definition = 77; +static int32_t fcoder_metacmd_ID_list_all_locations_of_type_definition_of_identifier = 78; +static int32_t fcoder_metacmd_ID_list_all_substring_locations = 79; +static int32_t fcoder_metacmd_ID_list_all_substring_locations_case_insensitive = 80; +static int32_t fcoder_metacmd_ID_lister__activate = 81; +static int32_t fcoder_metacmd_ID_lister__backspace_text_field = 82; +static int32_t fcoder_metacmd_ID_lister__backspace_text_field__default = 83; +static int32_t fcoder_metacmd_ID_lister__backspace_text_field__file_path = 84; +static int32_t fcoder_metacmd_ID_lister__mouse_press = 85; +static int32_t fcoder_metacmd_ID_lister__mouse_release = 86; +static int32_t fcoder_metacmd_ID_lister__move_down = 87; +static int32_t fcoder_metacmd_ID_lister__move_down__default = 88; +static int32_t fcoder_metacmd_ID_lister__move_up = 89; +static int32_t fcoder_metacmd_ID_lister__move_up__default = 90; +static int32_t fcoder_metacmd_ID_lister__quit = 91; +static int32_t fcoder_metacmd_ID_lister__repaint = 92; +static int32_t fcoder_metacmd_ID_lister__wheel_scroll = 93; +static int32_t fcoder_metacmd_ID_lister__write_character = 94; +static int32_t fcoder_metacmd_ID_lister__write_character__default = 95; +static int32_t fcoder_metacmd_ID_lister__write_character__file_path = 96; +static int32_t fcoder_metacmd_ID_lister__write_character__fixed_list = 97; +static int32_t fcoder_metacmd_ID_load_project = 98; +static int32_t fcoder_metacmd_ID_make_directory_query = 99; +static int32_t fcoder_metacmd_ID_move_down = 100; +static int32_t fcoder_metacmd_ID_move_down_10 = 101; +static int32_t fcoder_metacmd_ID_move_down_textual = 102; +static int32_t fcoder_metacmd_ID_move_left = 103; +static int32_t fcoder_metacmd_ID_move_line_down = 104; +static int32_t fcoder_metacmd_ID_move_line_up = 105; +static int32_t fcoder_metacmd_ID_move_right = 106; +static int32_t fcoder_metacmd_ID_move_up = 107; +static int32_t fcoder_metacmd_ID_move_up_10 = 108; +static int32_t fcoder_metacmd_ID_newline_or_goto_position_direct = 109; +static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_direct = 110; +static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_sticky = 111; +static int32_t fcoder_metacmd_ID_newline_or_goto_position_sticky = 112; +static int32_t fcoder_metacmd_ID_open_all_code = 113; +static int32_t fcoder_metacmd_ID_open_all_code_recursive = 114; +static int32_t fcoder_metacmd_ID_open_color_tweaker = 115; +static int32_t fcoder_metacmd_ID_open_file_in_quotes = 116; +static int32_t fcoder_metacmd_ID_open_in_other = 117; +static int32_t fcoder_metacmd_ID_open_long_braces = 118; +static int32_t fcoder_metacmd_ID_open_long_braces_break = 119; +static int32_t fcoder_metacmd_ID_open_long_braces_semicolon = 120; +static int32_t fcoder_metacmd_ID_open_matching_file_cpp = 121; +static int32_t fcoder_metacmd_ID_open_panel_hsplit = 122; +static int32_t fcoder_metacmd_ID_open_panel_vsplit = 123; +static int32_t fcoder_metacmd_ID_page_down = 124; +static int32_t fcoder_metacmd_ID_page_up = 125; +static int32_t fcoder_metacmd_ID_paste = 126; +static int32_t fcoder_metacmd_ID_paste_and_indent = 127; +static int32_t fcoder_metacmd_ID_paste_next = 128; +static int32_t fcoder_metacmd_ID_paste_next_and_indent = 129; +static int32_t fcoder_metacmd_ID_place_in_scope = 130; +static int32_t fcoder_metacmd_ID_project_fkey_command = 131; +static int32_t fcoder_metacmd_ID_project_go_to_root_directory = 132; +static int32_t fcoder_metacmd_ID_query_replace = 133; +static int32_t fcoder_metacmd_ID_query_replace_identifier = 134; +static int32_t fcoder_metacmd_ID_query_replace_selection = 135; +static int32_t fcoder_metacmd_ID_redo = 136; +static int32_t fcoder_metacmd_ID_reload_themes = 137; +static int32_t fcoder_metacmd_ID_remap_interactive = 138; +static int32_t fcoder_metacmd_ID_rename_file_query = 139; +static int32_t fcoder_metacmd_ID_reopen = 140; +static int32_t fcoder_metacmd_ID_replace_in_range = 141; +static int32_t fcoder_metacmd_ID_reverse_search = 142; +static int32_t fcoder_metacmd_ID_reverse_search_identifier = 143; +static int32_t fcoder_metacmd_ID_save = 144; +static int32_t fcoder_metacmd_ID_save_all_dirty_buffers = 145; +static int32_t fcoder_metacmd_ID_save_to_query = 146; +static int32_t fcoder_metacmd_ID_scope_absorb_down = 147; +static int32_t fcoder_metacmd_ID_search = 148; +static int32_t fcoder_metacmd_ID_search_identifier = 149; +static int32_t fcoder_metacmd_ID_seek_alphanumeric_left = 150; +static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_left = 151; +static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_right = 152; +static int32_t fcoder_metacmd_ID_seek_alphanumeric_right = 153; +static int32_t fcoder_metacmd_ID_seek_beginning_of_line = 154; +static int32_t fcoder_metacmd_ID_seek_beginning_of_textual_line = 155; +static int32_t fcoder_metacmd_ID_seek_end_of_line = 156; +static int32_t fcoder_metacmd_ID_seek_end_of_textual_line = 157; +static int32_t fcoder_metacmd_ID_seek_token_left = 158; +static int32_t fcoder_metacmd_ID_seek_token_right = 159; +static int32_t fcoder_metacmd_ID_seek_white_or_token_left = 160; +static int32_t fcoder_metacmd_ID_seek_white_or_token_right = 161; +static int32_t fcoder_metacmd_ID_seek_whitespace_down = 162; +static int32_t fcoder_metacmd_ID_seek_whitespace_down_end_line = 163; +static int32_t fcoder_metacmd_ID_seek_whitespace_left = 164; +static int32_t fcoder_metacmd_ID_seek_whitespace_right = 165; +static int32_t fcoder_metacmd_ID_seek_whitespace_up = 166; +static int32_t fcoder_metacmd_ID_seek_whitespace_up_end_line = 167; +static int32_t fcoder_metacmd_ID_select_all = 168; +static int32_t fcoder_metacmd_ID_set_bindings_choose = 169; +static int32_t fcoder_metacmd_ID_set_bindings_default = 170; +static int32_t fcoder_metacmd_ID_set_bindings_mac_default = 171; +static int32_t fcoder_metacmd_ID_set_mark = 172; +static int32_t fcoder_metacmd_ID_setup_build_bat = 173; +static int32_t fcoder_metacmd_ID_setup_build_bat_and_sh = 174; +static int32_t fcoder_metacmd_ID_setup_build_sh = 175; +static int32_t fcoder_metacmd_ID_setup_new_project = 176; +static int32_t fcoder_metacmd_ID_show_filebar = 177; +static int32_t fcoder_metacmd_ID_show_scrollbar = 178; +static int32_t fcoder_metacmd_ID_snipe_token_or_word = 179; +static int32_t fcoder_metacmd_ID_snipe_token_or_word_right = 180; +static int32_t fcoder_metacmd_ID_suppress_mouse = 181; +static int32_t fcoder_metacmd_ID_swap_buffers_between_panels = 182; +static int32_t fcoder_metacmd_ID_to_lowercase = 183; +static int32_t fcoder_metacmd_ID_to_uppercase = 184; +static int32_t fcoder_metacmd_ID_toggle_filebar = 185; +static int32_t fcoder_metacmd_ID_toggle_fullscreen = 186; +static int32_t fcoder_metacmd_ID_toggle_line_wrap = 187; +static int32_t fcoder_metacmd_ID_toggle_mouse = 188; +static int32_t fcoder_metacmd_ID_toggle_show_whitespace = 189; +static int32_t fcoder_metacmd_ID_toggle_virtual_whitespace = 190; +static int32_t fcoder_metacmd_ID_undo = 191; +static int32_t fcoder_metacmd_ID_view_buffer_other_panel = 192; +static int32_t fcoder_metacmd_ID_word_complete = 193; +static int32_t fcoder_metacmd_ID_write_and_auto_tab = 194; +static int32_t fcoder_metacmd_ID_write_block = 195; +static int32_t fcoder_metacmd_ID_write_character = 196; +static int32_t fcoder_metacmd_ID_write_hack = 197; +static int32_t fcoder_metacmd_ID_write_note = 198; +static int32_t fcoder_metacmd_ID_write_todo = 199; +static int32_t fcoder_metacmd_ID_write_underscore = 200; +static int32_t fcoder_metacmd_ID_write_zero_struct = 201; #endif diff --git a/4coder_lists.cpp b/4coder_lists.cpp index d1ac8e5f..850aa2fe 100644 --- a/4coder_lists.cpp +++ b/4coder_lists.cpp @@ -416,21 +416,70 @@ begin_integrated_lister__ui_list(Application_Links *app, char *query_string, //////////////////////////////// +static void +generate_all_buffers_list__output_buffer(Partition *arena, Lister *lister, Buffer_Summary buffer){ + String status = {0}; + switch (buffer.dirty){ + case DirtyState_UnsavedChanges: status = make_lit_string(" *"); break; + case DirtyState_UnloadedChanges: status = make_lit_string(" !"); break; + } + String buffer_name = make_string(buffer.buffer_name, buffer.buffer_name_len); + lister_add_item(arena, lister, buffer_name, status, IntAsPtr(buffer.buffer_id), 0); +} + static void generate_all_buffers_list(Application_Links *app, Partition *arena, Lister *lister){ lister_begin_new_item_set(lister); + + Buffer_ID buffers_currently_being_viewed[16]; + int32_t currently_viewed_buffer_count = 0; + + // List currently viewed buffers + for (View_Summary view = get_view_first(app, AccessAll); + view.exists; + get_view_next(app, &view, AccessAll)){ + Buffer_ID new_buffer_id = view.buffer_id; + for (int32_t i = 0; i < currently_viewed_buffer_count; i += 1){ + if (new_buffer_id == buffers_currently_being_viewed[i]){ + goto skip0; + } + } + buffers_currently_being_viewed[currently_viewed_buffer_count++] = new_buffer_id; + skip0:; + } + + // Regular Buffers for (Buffer_Summary buffer = get_buffer_first(app, AccessAll); buffer.exists; get_buffer_next(app, &buffer, AccessAll)){ - String buffer_name = make_string(buffer.buffer_name, buffer.buffer_name_len); - Dirty_State dirty = buffer.dirty; - int32_t buffer_id = buffer.buffer_id; - String status = {0}; - switch (dirty){ - case DirtyState_UnsavedChanges: status = make_lit_string(" *"); break; - case DirtyState_UnloadedChanges: status = make_lit_string(" !"); break; + for (int32_t i = 0; i < currently_viewed_buffer_count; i += 1){ + if (buffer.buffer_id == buffers_currently_being_viewed[i]){ + goto skip1; + } } - lister_add_item(arena, lister, buffer_name, status, IntAsPtr(buffer_id), 0); + if (buffer.buffer_name_len == 0 || buffer.buffer_name[0] != '*'){ + generate_all_buffers_list__output_buffer(arena, lister, buffer); + } + skip1:; + } + // Buffers Starting with * + for (Buffer_Summary buffer = get_buffer_first(app, AccessAll); + buffer.exists; + get_buffer_next(app, &buffer, AccessAll)){ + for (int32_t i = 0; i < currently_viewed_buffer_count; i += 1){ + if (buffer.buffer_id == buffers_currently_being_viewed[i]){ + goto skip2; + } + } + if (buffer.buffer_name_len != 0 && buffer.buffer_name[0] == '*'){ + generate_all_buffers_list__output_buffer(arena, lister, buffer); + } + skip2:; + } + // Buffers That Are Open in Views + for (int32_t i = 0; i < currently_viewed_buffer_count; i += 1){ + Buffer_Summary buffer = get_buffer(app, buffers_currently_being_viewed[i], AccessAll); + generate_all_buffers_list__output_buffer(arena, lister, buffer); } } @@ -449,13 +498,12 @@ generate_hot_directory_file_list(Application_Links *app, Partition *arena, Liste } lister_begin_new_item_set(lister); - Temp_Memory temp = begin_temp_memory(arena); String hot = get_hot_directory(app, arena); + push_align(arena, 8); File_List file_list = {0}; if (hot.str != 0){ file_list = get_file_list(app, hot.str, hot.size); } - end_temp_memory(temp); if (hot.str != 0){ for (File_Info *info = file_list.infos, *one_past_last = file_list.infos + file_list.count; info < one_past_last; @@ -475,9 +523,24 @@ generate_hot_directory_file_list(Application_Links *app, Partition *arena, Liste String file_name = push_string_copy(arena, make_string(info->filename, info->filename_len)); char *is_loaded = ""; char *status_flag = ""; + + Temp_Memory path_temp = begin_temp_memory(arena); + String full_file_path = {0}; + full_file_path.size = 0; + full_file_path.memory_size = hot.size + 1 + info->filename_len + 1; + full_file_path.str = push_array(arena, char, full_file_path.memory_size); + append(&full_file_path, hot); + if (full_file_path.size == 0 || + char_is_slash(full_file_path.str[full_file_path.size - 1])){ + append(&full_file_path, "/"); + } + append(&full_file_path, make_string(info->filename, info->filename_len)); Buffer_Summary buffer = get_buffer_by_file_name(app, - info->filename, info->filename_len, + full_file_path.str, full_file_path.size, AccessAll); + + end_temp_memory(path_temp); + if (buffer.exists){ is_loaded = " LOADED"; switch (buffer.dirty){ @@ -627,7 +690,7 @@ CUSTOM_COMMAND_SIG(interactive_switch_buffer) CUSTOM_DOC("Interactively switch to an open buffer.") { View_Summary view = get_active_view(app, AccessAll); - for (;view_end_ui_mode(app, &view);); + view_end_ui_mode(app, &view); begin_integrated_lister__buffer_list(app, "Switch: ", activate_switch_buffer, 0, &view); } @@ -645,7 +708,7 @@ CUSTOM_COMMAND_SIG(interactive_kill_buffer) CUSTOM_DOC("Interactively kill an open buffer.") { View_Summary view = get_active_view(app, AccessAll); - for (;view_end_ui_mode(app, &view);); + view_end_ui_mode(app, &view); begin_integrated_lister__buffer_list(app, "Kill: ", activate_kill_buffer, 0, &view); } @@ -714,7 +777,7 @@ CUSTOM_COMMAND_SIG(interactive_open_or_new) CUSTOM_DOC("Interactively open a file out of the file system.") { View_Summary view = get_active_view(app, AccessAll); - for (;view_end_ui_mode(app, &view);); + view_end_ui_mode(app, &view); begin_integrated_lister__file_system_list(app, "Open: ", activate_open_or_new, 0, &view); } @@ -747,7 +810,7 @@ CUSTOM_COMMAND_SIG(interactive_new) CUSTOM_DOC("Interactively creates a new file.") { View_Summary view = get_active_view(app, AccessAll); - for (;view_end_ui_mode(app, &view);); + view_end_ui_mode(app, &view); begin_integrated_lister__file_system_list(app, "New: ", activate_new, 0, &view); } @@ -774,7 +837,7 @@ CUSTOM_COMMAND_SIG(interactive_open) CUSTOM_DOC("Interactively opens a file.") { View_Summary view = get_active_view(app, AccessAll); - for (;view_end_ui_mode(app, &view);); + view_end_ui_mode(app, &view); begin_integrated_lister__file_system_list(app, "Open: ", activate_open, 0, &view); } @@ -793,7 +856,7 @@ CUSTOM_DOC("Opens the 4coder theme selector list.") Temp_Memory temp = begin_temp_memory(scratch); View_Summary view = get_active_view(app, AccessAll); - for (;view_end_ui_mode(app, &view);); + view_end_ui_mode(app, &view); int32_t theme_count = get_theme_count(app); Lister_UI_Option *options = push_array(scratch, Lister_UI_Option, theme_count); for (int32_t i = 0; i < theme_count; i += 1){ diff --git a/4coder_ui_helper.cpp b/4coder_ui_helper.cpp index d171b98a..dff01650 100644 --- a/4coder_ui_helper.cpp +++ b/4coder_ui_helper.cpp @@ -260,17 +260,49 @@ lister_update_ui(Application_Links *app, Partition *scratch, View_Summary *view, state->raw_item_index = -1; + int32_t node_count = state->lister.options.count; + Lister_Option_Node_Ptr_Array exact_matches = {0}; + exact_matches.node_ptrs = push_array(scratch, Lister_Option_Node*, 1); + Lister_Option_Node_Ptr_Array before_extension_matches = {0}; + before_extension_matches.node_ptrs = push_array(scratch, Lister_Option_Node*, node_count); + Lister_Option_Node_Ptr_Array substring_matches = {0}; + substring_matches.node_ptrs = push_array(scratch, Lister_Option_Node*, node_count); + for (Lister_Option_Node *node = state->lister.options.first; + node != 0; + node = node->next){ + if (state->lister.key_string.size == 0 || + has_substr(node->string, state->lister.key_string)){ + if (match_insensitive(node->string, state->lister.key_string) && exact_matches.count == 0){ + exact_matches.node_ptrs[exact_matches.count++] = node; + } + else if (match_part_insensitive(node->string, state->lister.key_string) && + node->string.size > state->lister.key_string.size && + node->string.str[state->lister.key_string.size] == '.'){ + before_extension_matches.node_ptrs[before_extension_matches.count++] = node; + } + else{ + substring_matches.node_ptrs[substring_matches.count++] = node; + } + } + } + + Lister_Option_Node_Ptr_Array node_ptr_arrays[] = { + exact_matches, + before_extension_matches, + substring_matches, + }; + UI_List list = {0}; UI_Item *highlighted_item = 0; UI_Item *hot_item = 0; UI_Item *hovered_item = 0; int32_t item_index_counter = 0; int32_t raw_index_counter = 0; - for (Lister_Option_Node *node = state->lister.options.first; - node != 0; - node = node->next){ - if (state->lister.key_string.size == 0 || - has_substr(node->string, state->lister.key_string)){ + for (int32_t array_index = 0; array_index < ArrayCount(node_ptr_arrays); array_index += 1){ + Lister_Option_Node_Ptr_Array node_ptr_array = node_ptr_arrays[array_index]; + for (int32_t node_index = 0; node_index < node_ptr_array.count; node_index += 1){ + Lister_Option_Node *node = node_ptr_array.node_ptrs[node_index]; + i32_Rect item_rect = {0}; item_rect.x0 = x0; item_rect.y0 = y_pos; @@ -307,8 +339,8 @@ lister_update_ui(Application_Links *app, Partition *scratch, View_Summary *view, if (node->user_data == state->hot_user_data && hot_item != 0){ hot_item = item_ptr; } + raw_index_counter += 1; } - raw_index_counter += 1; } state->option_item_count = item_index_counter; @@ -486,12 +518,11 @@ lister_call_activate_handler(Application_Links *app, Partition *scratch, Heap *h switch (code){ case ListerActivation_Finished: { - if (view_end_ui_mode(app, view) == 0){ - state->initialized = false; - if (state->arena.base != 0){ - heap_free(heap, state->arena.base); - memset(&state->arena, 0, sizeof(state->arena)); - } + view_end_ui_mode(app, view); + state->initialized = false; + if (state->arena.base != 0){ + heap_free(heap, state->arena.base); + memset(&state->arena, 0, sizeof(state->arena)); } }break; diff --git a/4coder_ui_helper.h b/4coder_ui_helper.h index cbdd2f3a..377e77c3 100644 --- a/4coder_ui_helper.h +++ b/4coder_ui_helper.h @@ -36,6 +36,11 @@ struct Lister_Option_List{ int32_t count; }; +struct Lister_Option_Node_Ptr_Array{ + Lister_Option_Node **node_ptrs; + int32_t count; +}; + struct Lister_Handlers{ Lister_Activation_Function_Type *activate; Lister_Regenerate_List_Function_Type *refresh; diff --git a/4ed.cpp b/4ed.cpp index 37257d2e..72a6642f 100644 --- a/4ed.cpp +++ b/4ed.cpp @@ -277,7 +277,7 @@ COMMAND_DECL(reopen){ ++vptr_count; } - file_free(system, &models->app_links, heap, file); + file_free(system, &models->app_links, heap, &models->lifetime_allocator, file); init_normal_file(system, models, buffer, size, file); for (i32 i = 0; i < vptr_count; ++i){ @@ -1627,7 +1627,7 @@ App_Step_Sig(app_step){ GUI_Scroll_Vars *scroll_vars = 0; i32 max_y = 0; b32 file_scroll = false; - if (view->transient.ui_mode_counter == 0){ + if (!view->transient.ui_mode){ scroll_vars = &view->transient.edit_pos->scroll; max_y = view_compute_max_target_y(view); file_scroll = true; diff --git a/4ed_api_implementation.cpp b/4ed_api_implementation.cpp index a3e3226c..6c39b54c 100644 --- a/4ed_api_implementation.cpp +++ b/4ed_api_implementation.cpp @@ -86,11 +86,11 @@ fill_view_summary(System_Functions *system, View_Summary *view, View *vptr, Live view->view_region = vptr->transient.panel->inner; view->file_region = vptr->transient.file_region; - if (vptr->transient.ui_mode_counter == 0){ - view->scroll_vars = vptr->transient.edit_pos->scroll; + if (vptr->transient.ui_mode){ + view->scroll_vars = vptr->transient.ui_scroll; } else{ - view->scroll_vars = vptr->transient.ui_scroll; + view->scroll_vars = vptr->transient.edit_pos->scroll; } } } @@ -108,7 +108,7 @@ fill_view_summary(System_Functions *system, View_Summary *view, View *vptr, Comm internal void view_quit_ui(System_Functions *system, Models *models, View *view){ Assert(view != 0); - view->transient.ui_mode_counter = 0; + view->transient.ui_mode = false; if (view->transient.ui_quit != 0){ View_Summary view_summary = {0}; fill_view_summary(system, &view_summary, view, models); @@ -635,9 +635,11 @@ DOC_SEE(Access_Flag) Editing_File_Name canon = {0}; if (get_canon_name(system, fname, &canon)){ Editing_File *file = working_set_contains_canon(working_set, canon.name); - fill_buffer_summary(&buffer, file, working_set); - if (!access_test(buffer.lock_flags, access)){ - memset(&buffer, 0, sizeof(buffer)); + if (file != 0){ + fill_buffer_summary(&buffer, file, working_set); + if (!access_test(buffer.lock_flags, access)){ + memset(&buffer, 0, sizeof(buffer)); + } } } return(buffer); @@ -1178,10 +1180,7 @@ DOC(Whenever a buffer is killed an end signal is sent which triggers the end fil bool32 result = false; if (file != 0){ result = true; - Open_File_Hook_Function *hook_end_file = models->hook_end_file; - if (hook_end_file != 0){ - hook_end_file(app, file->id.id); - } + file_end_file(models, file); } return(result); @@ -1390,8 +1389,8 @@ DOC_SEE(Buffer_Identifier) if (file->canon.name.size != 0){ buffer_unbind_file(system, working_set, file); } - file_free(system, &models->app_links, &models->mem.heap, file); - working_set_free_file(&models->mem.heap, &models->lifetime_allocator, working_set, file); + file_free(system, &models->app_links, &models->mem.heap, &models->lifetime_allocator, file); + working_set_free_file(&models->mem.heap, working_set, file); File_Node *used = &working_set->used_sentinel; File_Node *node = used->next; @@ -1948,7 +1947,7 @@ DOC_SEE(GUI_Scroll_Vars) Assert(file != 0); if (!file->is_loading){ result = true; - if (vptr->transient.ui_mode_counter == 0){ + if (!vptr->transient.ui_mode){ view_set_scroll(system, vptr, scroll); } else{ @@ -2090,18 +2089,22 @@ DOC_SEE(int_color) return(result); } -API_EXPORT int32_t +API_EXPORT bool32 View_Start_UI_Mode(Application_Links *app, View_Summary *view) { Command_Data *cmd = (Command_Data*)app->cmd_context; View *vptr = imp_get_view(cmd, view); if (vptr != 0){ - vptr->transient.ui_mode_counter = clamp_bottom(0, vptr->transient.ui_mode_counter); - vptr->transient.ui_mode_counter += 1; - return(vptr->transient.ui_mode_counter); + if (vptr->transient.ui_mode){ + return(false); + } + else{ + vptr->transient.ui_mode = true; + return(true); + } } else{ - return(0); + return(false); } } @@ -2111,22 +2114,19 @@ View_End_UI_Mode(Application_Links *app, View_Summary *view) Command_Data *cmd = (Command_Data*)app->cmd_context; View *vptr = imp_get_view(cmd, view); if (vptr != 0){ - vptr->transient.ui_mode_counter = clamp_bottom(0, vptr->transient.ui_mode_counter); - if (vptr->transient.ui_mode_counter > 0){ - vptr->transient.ui_mode_counter -= 1; - if (vptr->transient.ui_mode_counter == 0){ - System_Functions *system = cmd->system; - Models *models = cmd->models; - view_quit_ui(system, models, vptr); - } - return(vptr->transient.ui_mode_counter); + if (vptr->transient.ui_mode){ + System_Functions *system = cmd->system; + Models *models = cmd->models; + view_quit_ui(system, models, vptr); + vptr->transient.ui_mode = false; + return(true); } else{ - return(0); + return(false); } } else{ - return(0); + return(false); } } @@ -2443,7 +2443,7 @@ Alloc_Buffer_Markers_On_Buffer(Application_Links *app, Buffer_ID buffer_id, int3 Managed_Object result = 0; if (workspace != 0){ i32 size = count*sizeof(Marker); - void *ptr = dynamic_memory_bank_allocate(heap, &workspace->mem_bank, size + sizeof(Managed_Buffer_Markers_Header)); + void *ptr = dynamic_memory_bank_allocate(heap, &workspace->mem_bank, size + sizeof(Managed_Buffer_Markers_Header)); Managed_Buffer_Markers_Header *header = (Managed_Buffer_Markers_Header*)ptr; header->std_header.type = ManagedObjectType_Markers; header->std_header.item_size = sizeof(Marker); diff --git a/4ed_dynamic_variables.cpp b/4ed_dynamic_variables.cpp index bc39c46d..5eaf7921 100644 --- a/4ed_dynamic_variables.cpp +++ b/4ed_dynamic_variables.cpp @@ -426,6 +426,7 @@ lifetime__object_add_key(Heap *heap, Lifetime_Allocator *lifetime_allocator, i32 next_insert_slot = object->key_count%ArrayCount(last_node->keys); if (next_insert_slot != 0){ last_node->keys[next_insert_slot] = key; + object->key_count += 1; } else{ insert_on_new_node = true; diff --git a/4ed_edit.cpp b/4ed_edit.cpp index c26f8a25..a36e5809 100644 --- a/4ed_edit.cpp +++ b/4ed_edit.cpp @@ -413,12 +413,22 @@ edit_batch(System_Functions *system, Models *models, Editing_File *file, edit_fix_marks(system, models, file, layout, desc); } -inline void -edit_clear(System_Functions *system, Models *models, Editing_File *file){ +internal void +file_end_file(Models *models, Editing_File *file){ if (models->hook_end_file != 0){ models->hook_end_file(&models->app_links, file->id.id); } + Heap *heap = &models->mem.heap; + Lifetime_Allocator *lifetime_allocator = &models->lifetime_allocator; + lifetime_free_object(heap, lifetime_allocator, file->lifetime_object); + file->lifetime_object = lifetime_alloc_object(heap, lifetime_allocator, DynamicWorkspace_Buffer, file); +} + +inline void +edit_clear(System_Functions *system, Models *models, Editing_File *file){ + file_end_file(models, file); + b32 no_views_see_file = true; Editing_Layout *layout = &models->layout; diff --git a/4ed_file.cpp b/4ed_file.cpp index a652faaa..25f08c1a 100644 --- a/4ed_file.cpp +++ b/4ed_file.cpp @@ -518,6 +518,8 @@ file_create_from_string(System_Functions *system, Models *models, Editing_File * //adjust_views_looking_at_files_to_new_cursor(system, models, file); } + file->lifetime_object = lifetime_alloc_object(heap, &models->lifetime_allocator, DynamicWorkspace_Buffer, file); + file->settings.read_only = ((flags & FileCreateFlag_ReadOnly) != 0); if (!file->settings.read_only){ // TODO(allen): Redo undo system (if you don't mind the pun) @@ -554,7 +556,8 @@ file_create_from_string(System_Functions *system, Models *models, Editing_File * } internal void -file_free(System_Functions *system, Application_Links *app, Heap *heap, Editing_File *file){ +file_free(System_Functions *system, Application_Links *app, Heap *heap, Lifetime_Allocator *lifetime_allocator, + Editing_File *file){ if (file->state.still_lexing){ system->cancel_job(BACKGROUND_THREADS, file->state.lex_job); if (file->state.swap_array.tokens){ @@ -566,6 +569,8 @@ file_free(System_Functions *system, Application_Links *app, Heap *heap, Editing_ heap_free(heap, file->state.token_array.tokens); } + lifetime_free_object(heap, lifetime_allocator, file->lifetime_object); + Gap_Buffer *buffer = &file->state.buffer; if (buffer->data){ heap_free(heap, buffer->data); diff --git a/4ed_view.cpp b/4ed_view.cpp index 7a94f665..ebeacb62 100644 --- a/4ed_view.cpp +++ b/4ed_view.cpp @@ -11,7 +11,7 @@ internal i32 view_get_map(View *view){ - if (view->transient.ui_mode_counter > 0){ + if (view->transient.ui_mode){ return(view->transient.ui_map_id); } else{ @@ -99,10 +99,11 @@ view_get_cursor_xy(View *view){ return(result); } +#if 0 internal f32 view_get_scroll_y(View *view){ f32 v = 0; - if (view->transient.ui_mode_counter == 0){ + if (!view->transient.ui_mode){ File_Edit_Positions *edit_pos = view->transient.edit_pos; TentativeAssert(edit_pos != 0); if (edit_pos != 0){ @@ -110,12 +111,11 @@ view_get_scroll_y(View *view){ } } else{ -#if 0 - v = view->transient.gui_scroll.scroll_y; -#endif + // TODO(allen): // TODO(allen): // TODO(allen): // TODO(allen): } return(v); } +#endif inline Cursor_Limits view_cursor_limits(View *view){ @@ -170,7 +170,7 @@ inline u32 view_lock_flags(View *view){ u32 result = AccessOpen; File_Viewing_Data *data = &view->transient.file_data; - if (view->transient.ui_mode_counter > 0){ + if (view->transient.ui_mode){ result |= AccessHidden; } if (data->file_locked || (data->file && data->file->settings.read_only)){ diff --git a/4ed_view.h b/4ed_view.h index 7aeb657b..b9ba59af 100644 --- a/4ed_view.h +++ b/4ed_view.h @@ -44,7 +44,7 @@ struct View_Transient{ i32_Rect scroll_region; File_Edit_Positions *edit_pos; - i32 ui_mode_counter; + b32 ui_mode; UI_Quit_Function_Type *ui_quit; UI_Control ui_control; GUI_Scroll_Vars ui_scroll; diff --git a/4ed_view_ui.cpp b/4ed_view_ui.cpp index bcd69616..62bd6f33 100644 --- a/4ed_view_ui.cpp +++ b/4ed_view_ui.cpp @@ -70,7 +70,7 @@ do_step_file_view(System_Functions *system, View *view, Models *models, i32_Rect slot = slot->next, ++bar_count); view->transient.widget_height = (f32)bar_count*(view->transient.line_height + 2); - if (view->transient.ui_mode_counter == 0){ + if (!view->transient.ui_mode){ if (user_input->mouse.wheel != 0){ result.scroll.target_y += user_input->mouse.wheel; result.scroll.target_y = clamp(0, result.scroll.target_y, max_y); @@ -278,7 +278,7 @@ do_render_file_view(System_Functions *system, View *view, Models *models, GUI_Sc view->transient.widget_height = (f32)bar_count*(view->transient.line_height + 2); draw_push_clip(target, rect); - if (view->transient.ui_mode_counter == 0){ + if (!view->transient.ui_mode){ if (file_is_ready(file)){ result = render_loaded_file_in_view(system, view, models, rect, is_active, target); } diff --git a/4ed_working_set.cpp b/4ed_working_set.cpp index b9615ae1..4f982c83 100644 --- a/4ed_working_set.cpp +++ b/4ed_working_set.cpp @@ -87,7 +87,6 @@ working_set_alloc_always(Working_Set *working_set, Heap *heap, Lifetime_Allocato result->settings.display_width = working_set->default_display_width; result->settings.minimum_base_display_width = working_set->default_minimum_base_display_width; result->settings.wrap_indicator = WrapIndicator_Show_At_Wrap_Edge; - result->lifetime_object = lifetime_alloc_object(heap, lifetime_allocator, DynamicWorkspace_Buffer, result); ++working_set->file_count; } @@ -95,13 +94,11 @@ working_set_alloc_always(Working_Set *working_set, Heap *heap, Lifetime_Allocato } inline void -working_set_free_file(Heap *heap, Lifetime_Allocator *lifetime_allocator, Working_Set *working_set, Editing_File *file){ +working_set_free_file(Heap *heap, Working_Set *working_set, Editing_File *file){ if (working_set->sync_check_iter == &file->node){ working_set->sync_check_iter = working_set->sync_check_iter->next; } - lifetime_free_object(heap, lifetime_allocator, file->lifetime_object); - file->is_dummy = true; dll_remove(&file->node); dll_insert(&working_set->free_sentinel, &file->node); diff --git a/todo.txt b/todo.txt index fae1776d..2f5d6520 100644 --- a/todo.txt +++ b/todo.txt @@ -3,17 +3,8 @@ { Features { - [x] Lister API - [x] Managed Cooperative Memory API - [x] Separate distinct buffer groups by newline - [x] If no results put message explaining that fact (search buffer) - [x] Quit UI events - [] Change UI API to not be counted, toggle only for this build, no "UI stacks" - [] end file signal dumps the current managed scope - [] Fixup File Lister Sorting - [] Exact Matches Sort to Top Always ALWAYS ALWAYS ALWAYS - [] File System Lister Missing Status [] Command Lister + [] Function Lister [] Color Pallette Expansion For Keywords [] Color Pallette Expansion For Paren/Brace Matching [] Visible Markers @@ -25,6 +16,7 @@ [] Highlight Range } [] Reload all out of sync files + [] Doubly Linked List Node Managed Object } Bugs @@ -40,7 +32,7 @@ Documentation { - + [] ALL } } @@ -68,7 +60,12 @@ Change Log { 4.0.29 { - + [x] Lister API + [x] Managed Cooperative Memory API + [x] Separate distinct buffer groups by newline + [x] If no results put message explaining that fact (search buffer) + [x] Quit UI events + [x] Exact Matches Sort to Top Always ALWAYS ALWAYS ALWAYS } }