diff --git a/4coder_API/types.h b/4coder_API/types.h index e371fe04..1093baf9 100644 --- a/4coder_API/types.h +++ b/4coder_API/types.h @@ -790,9 +790,15 @@ STRUCT Buffer_Batch_Edit{ TYPEDEF void Custom_Command_Function(struct Application_Links *app); // TODO(allen): Improve meta system so that the system for picking up macros is universal. -#define CUSTOM_COMMAND_SIG(name) void name(struct Application_Links *app) -#define CUSTOM_DOC(str) -#define CUSTOM_ALIAS(x) x +#if !defined(CUSTOM_COMMAND_SIG) +# define CUSTOM_COMMAND_SIG(name) void name(struct Application_Links *app) +#endif +#if !defined(CUSTOM_DOC) +# define CUSTOM_DOC(str) +#endif +#if !defined(CUSTOM_ALIAS) +# define CUSTOM_ALIAS(x) x +#endif /* DOC(Generic_Command acts as a name for a command, and can name an internal command or a custom command.) */ UNION Generic_Command{ diff --git a/4coder_cpp_preprocessor.cpp b/4coder_cpp_preprocessor.cpp deleted file mode 100644 index 744d265f..00000000 --- a/4coder_cpp_preprocessor.cpp +++ /dev/null @@ -1,11 +0,0 @@ -/* -4coder_cpp_preprocessor.cpp - An unoptimized non-in-place preprocessor. -*/ - -// TOP - - - -// BOTTOM - - diff --git a/4coder_cpp_preprocessor.h b/4coder_cpp_preprocessor.h deleted file mode 100644 index 89730f5e..00000000 --- a/4coder_cpp_preprocessor.h +++ /dev/null @@ -1,16 +0,0 @@ -/* -4coder_cpp_preprocessor.h - An unoptimized non-in-place preprocessor. -*/ - -// TOP - -#if !defined(FCODER_CPP_PREPROCESSOR_H) -#define FCODER_CPP_PREPROCESSOR_H - - - -#endif - -// BOTTOM - - diff --git a/4coder_default_include.cpp b/4coder_default_include.cpp index 57bb6c19..623649fe 100644 --- a/4coder_default_include.cpp +++ b/4coder_default_include.cpp @@ -13,6 +13,8 @@ #include "4coder_API/custom.h" #include "4coder_os_comp_cracking.h" +#include "4coder_generated/command_metadata.h" + #define FSTRING_IMPLEMENTATION #include "4coder_lib/4coder_string.h" #include "4coder_lib/4coder_table.h" diff --git a/4coder_file.h b/4coder_file.h index 1b5b622a..3a6c50f9 100644 --- a/4coder_file.h +++ b/4coder_file.h @@ -159,7 +159,7 @@ get_file_list(Partition *part, Filename_Character *pattern, File_Filter *filter) int32_t pattern_length = 0; for (; pattern[pattern_length] != 0; ++pattern_length); int32_t last_slash = pattern_length; - for (; last_slash > 0 && pattern[last_slash] != SLASH; --last_slash); + for (; last_slash >= 0 && pattern[last_slash] != SLASH; --last_slash); if (last_slash < 0){ fprintf(stdout, "fatal error: invalid file pattern\n"); exit(1); diff --git a/4coder_generated/command_metadata.h b/4coder_generated/command_metadata.h index 95009c8c..11e49357 100644 --- a/4coder_generated/command_metadata.h +++ b/4coder_generated/command_metadata.h @@ -1,7 +1,8 @@ +#if !defined(NO_COMMAND_METADATA) #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 196 +#define command_one_past_last_id 184 #if defined(CUSTOM_COMMAND_SIG) #define PROC_LINKS(x,y) x #else @@ -77,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); @@ -92,12 +92,6 @@ CUSTOM_COMMAND_SIG(list_all_substring_locations); CUSTOM_COMMAND_SIG(list_all_substring_locations_case_insensitive); 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); @@ -107,7 +101,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); @@ -138,9 +131,7 @@ CUSTOM_COMMAND_SIG(query_replace_selection); CUSTOM_COMMAND_SIG(redo); 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); @@ -197,8 +188,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); @@ -215,203 +204,191 @@ char *source_name; int32_t source_name_len; int32_t line_number; }; -static Command_Metadata fcoder_metacmd_table[196] = { -{ PROC_LINKS(allow_mouse, 0), "allow_mouse", 11, "Shows the mouse and causes all mouse input to be processed normally.", 68, "C:\\work\\4ed\\code\\4coder_default_framework.cpp", 49, 168 }, -{ 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:\\work\\4ed\\code\\4coder_auto_indent.cpp", 43, 722 }, -{ PROC_LINKS(auto_tab_range, 0), "auto_tab_range", 14, "Auto-indents the range between the cursor and the mark.", 55, "C:\\work\\4ed\\code\\4coder_auto_indent.cpp", 43, 733 }, -{ PROC_LINKS(auto_tab_whole_file, 0), "auto_tab_whole_file", 19, "Audo-indents the entire current buffer.", 39, "C:\\work\\4ed\\code\\4coder_auto_indent.cpp", 43, 712 }, -{ PROC_LINKS(backspace_char, 0), "backspace_char", 14, "Deletes the character to the left of the cursor.", 48, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 67 }, -{ PROC_LINKS(backspace_word, 0), "backspace_word", 14, "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 433 }, -{ 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:\\work\\4ed\\code\\4coder_build_commands.cpp", 46, 189 }, -{ 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:\\work\\4ed\\code\\4coder_build_commands.cpp", 46, 155 }, -{ PROC_LINKS(center_view, 0), "center_view", 11, "Centers the view vertically on the line on which the cursor sits.", 65, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 120 }, -{ 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:\\work\\4ed\\code\\4coder_default_framework.cpp", 49, 110 }, -{ 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:\\work\\4ed\\code\\4coder_default_framework.cpp", 49, 120 }, -{ 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:\\work\\4ed\\code\\4coder_build_commands.cpp", 46, 211 }, -{ PROC_LINKS(clean_all_lines, 0), "clean_all_lines", 15, "Removes trailing whitespace from all lines in the current buffer.", 65, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 368 }, -{ PROC_LINKS(click_set_cursor, 0), "click_set_cursor", 16, "Sets the cursor position to the mouse position.", 47, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 174 }, -{ PROC_LINKS(click_set_mark, 0), "click_set_mark", 14, "Sets the mark position to the mouse position.", 45, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 187 }, -{ 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:\\work\\4ed\\code\\4coder_project_commands.cpp", 48, 1003 }, -{ PROC_LINKS(close_build_panel, 0), "close_build_panel", 17, "If the special build panel is open, closes it.", 46, "C:\\work\\4ed\\code\\4coder_build_commands.cpp", 46, 205 }, -{ PROC_LINKS(close_panel, 0), "close_panel", 11, "Closes the currently active panel if it is not the only panel open.", 67, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 441 }, -{ PROC_LINKS(copy, 0), "copy", 4, "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "C:\\work\\4ed\\code\\4coder_clipboard.cpp", 41, 26 }, -{ PROC_LINKS(cursor_mark_swap, 0), "cursor_mark_swap", 16, "Swaps the position of the cursor and the mark.", 46, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 95 }, -{ PROC_LINKS(cut, 0), "cut", 3, "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "C:\\work\\4ed\\code\\4coder_clipboard.cpp", 41, 35 }, -{ PROC_LINKS(decrease_face_size, 0), "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 531 }, -{ PROC_LINKS(decrease_line_wrap, 0), "decrease_line_wrap", 18, "Decrases the current buffer's width for line wrapping.", 54, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 508 }, -{ PROC_LINKS(delete_char, 0), "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 49 }, -{ 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:\\work\\4ed\\code\\4coder_scope_commands.cpp", 46, 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 993 }, -{ PROC_LINKS(delete_line, 0), "delete_line", 11, "Delete the line the on which the cursor sits.", 45, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1243 }, -{ PROC_LINKS(delete_range, 0), "delete_range", 12, "Deletes the text in the range between the cursor and the mark.", 62, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 107 }, -{ PROC_LINKS(delete_word, 0), "delete_word", 11, "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 1253 }, -{ PROC_LINKS(duplicate_line, 0), "duplicate_line", 14, "Create a copy of the line on which the cursor sits.", 51, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1221 }, -{ PROC_LINKS(eol_dosify, 0), "eol_dosify", 10, "Puts the buffer in DOS line ending mode.", 40, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 561 }, -{ PROC_LINKS(eol_nixify, 0), "eol_nixify", 10, "Puts the buffer in NIX line ending mode.", 40, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 569 }, -{ 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:\\work\\4ed\\code\\4coder_system_command.cpp", 46, 23 }, -{ PROC_LINKS(execute_arbitrary_command, 0), "execute_arbitrary_command", 25, "Execute a 'long form' command.", 30, "C:\\work\\4ed\\code\\4coder_long_command_switch.cpp", 51, 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:\\work\\4ed\\code\\4coder_system_command.cpp", 46, 7 }, -{ PROC_LINKS(exit_4coder, 0), "exit_4coder", 11, "Attempts to close 4coder.", 25, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 577 }, -{ PROC_LINKS(goto_beginning_of_file, 0), "goto_beginning_of_file", 22, "Sets the cursor to the beginning of the file.", 45, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 1168 }, -{ PROC_LINKS(goto_end_of_file, 0), "goto_end_of_file", 16, "Sets the cursor to the end of the file.", 39, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_jump_direct.cpp", 43, 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:\\work\\4ed\\code\\4coder_jump_sticky.cpp", 43, 533 }, -{ 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:\\work\\4ed\\code\\4coder_jump_sticky.cpp", 43, 515 }, -{ 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:\\work\\4ed\\code\\4coder_jump_direct.cpp", 43, 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:\\work\\4ed\\code\\4coder_jump_direct.cpp", 43, 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:\\work\\4ed\\code\\4coder_jump_sticky.cpp", 43, 365 }, -{ 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:\\work\\4ed\\code\\4coder_jump_sticky.cpp", 43, 337 }, -{ PROC_LINKS(goto_line, 0), "goto_line", 9, "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 585 }, -{ 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:\\work\\4ed\\code\\4coder_jump_direct.cpp", 43, 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:\\work\\4ed\\code\\4coder_jump_direct.cpp", 43, 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:\\work\\4ed\\code\\4coder_jump_sticky.cpp", 43, 484 }, -{ 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:\\work\\4ed\\code\\4coder_jump_sticky.cpp", 43, 454 }, -{ 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:\\work\\4ed\\code\\4coder_jump_direct.cpp", 43, 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:\\work\\4ed\\code\\4coder_jump_direct.cpp", 43, 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:\\work\\4ed\\code\\4coder_jump_sticky.cpp", 43, 500 }, -{ 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:\\work\\4ed\\code\\4coder_jump_sticky.cpp", 43, 470 }, -{ PROC_LINKS(hide_filebar, 0), "hide_filebar", 12, "Sets the current view to hide it's filebar.", 43, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 471 }, -{ PROC_LINKS(hide_scrollbar, 0), "hide_scrollbar", 14, "Sets the current view to hide it's scrollbar.", 45, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 457 }, -{ 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:\\work\\4ed\\code\\4coder_scope_commands.cpp", 46, 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:\\work\\4ed\\code\\4coder_scope_commands.cpp", 46, 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:\\work\\4ed\\code\\4coder_scope_commands.cpp", 46, 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:\\work\\4ed\\code\\4coder_combined_write_commands.cpp", 55, 82 }, -{ PROC_LINKS(increase_face_size, 0), "increase_face_size", 18, "Increase the size of the face used by the current buffer.", 57, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 519 }, -{ PROC_LINKS(increase_line_wrap, 0), "increase_line_wrap", 18, "Increases the current buffer's width for line wrapping.", 55, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 497 }, -{ PROC_LINKS(interactive_kill_buffer, 0), "interactive_kill_buffer", 23, "Interactively kill an open buffer.", 34, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1449 }, -{ PROC_LINKS(interactive_new, 0), "interactive_new", 15, "Interactively creates a new file.", 33, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1425 }, -{ PROC_LINKS(interactive_open, 0), "interactive_open", 16, "Interactively opens a file.", 27, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1431 }, -{ PROC_LINKS(interactive_open_or_new, 0), "interactive_open_or_new", 23, "Interactively opens or creates a new file.", 42, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1437 }, -{ PROC_LINKS(interactive_switch_buffer, 0), "interactive_switch_buffer", 25, "Interactively switch to an open buffer.", 39, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1443 }, -{ PROC_LINKS(kill_buffer, 0), "kill_buffer", 11, "Kills the current buffer.", 25, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1467 }, -{ PROC_LINKS(kill_rect, 0), "kill_rect", 9, "Delete characters in a rectangular region. Range testing is done by unwrapped-xy coordinates.", 93, "C:\\work\\4ed\\code\\4coder_experiments.cpp", 43, 29 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 135 }, -{ 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:\\work\\4ed\\code\\4coder_function_list.cpp", 45, 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:\\work\\4ed\\code\\4coder_search.cpp", 38, 741 }, -{ 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:\\work\\4ed\\code\\4coder_search.cpp", 38, 753 }, -{ 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:\\work\\4ed\\code\\4coder_search.cpp", 38, 765 }, -{ 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:\\work\\4ed\\code\\4coder_search.cpp", 38, 771 }, -{ 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:\\work\\4ed\\code\\4coder_search.cpp", 38, 777 }, -{ 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:\\work\\4ed\\code\\4coder_search.cpp", 38, 783 }, -{ 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:\\work\\4ed\\code\\4coder_search.cpp", 38, 789 }, -{ 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:\\work\\4ed\\code\\4coder_search.cpp", 38, 800 }, -{ 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:\\work\\4ed\\code\\4coder_search.cpp", 38, 747 }, -{ 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:\\work\\4ed\\code\\4coder_search.cpp", 38, 759 }, -{ 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:\\work\\4ed\\code\\4coder_project_commands.cpp", 48, 1026 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1101 }, -{ PROC_LINKS(miblo_decrement_basic, 0), "miblo_decrement_basic", 21, "Decrement an integer under the cursor by one.", 45, "C:\\work\\4ed\\code\\4coder_miblo_numbers.cpp", 45, 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:\\work\\4ed\\code\\4coder_miblo_numbers.cpp", 45, 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:\\work\\4ed\\code\\4coder_miblo_numbers.cpp", 45, 395 }, -{ PROC_LINKS(miblo_increment_basic, 0), "miblo_increment_basic", 21, "Increment an integer under the cursor by one.", 45, "C:\\work\\4ed\\code\\4coder_miblo_numbers.cpp", 45, 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:\\work\\4ed\\code\\4coder_miblo_numbers.cpp", 45, 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:\\work\\4ed\\code\\4coder_miblo_numbers.cpp", 45, 389 }, -{ PROC_LINKS(move_down, 0), "move_down", 9, "Moves the cursor down one line.", 31, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 250 }, -{ PROC_LINKS(move_down_10, 0), "move_down_10", 12, "Moves the cursor down ten lines.", 32, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 262 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 268 }, -{ PROC_LINKS(move_left, 0), "move_left", 9, "Moves the cursor one character to the left.", 43, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 299 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1198 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1134 }, -{ PROC_LINKS(move_right, 0), "move_right", 10, "Moves the cursor one character to the right.", 44, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 308 }, -{ PROC_LINKS(move_up, 0), "move_up", 7, "Moves the cursor up one line.", 29, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 244 }, -{ PROC_LINKS(move_up_10, 0), "move_up_10", 10, "Moves the cursor up ten lines.", 30, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 256 }, -{ 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:\\work\\4ed\\code\\4coder_experiments.cpp", 43, 120 }, -{ 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:\\work\\4ed\\code\\4coder_jump_direct.cpp", 43, 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:\\work\\4ed\\code\\4coder_jump_direct.cpp", 43, 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:\\work\\4ed\\code\\4coder_jump_sticky.cpp", 43, 571 }, -{ 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:\\work\\4ed\\code\\4coder_jump_sticky.cpp", 43, 556 }, -{ 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:\\work\\4ed\\code\\4coder_project_commands.cpp", 48, 1010 }, -{ 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:\\work\\4ed\\code\\4coder_project_commands.cpp", 48, 1017 }, -{ PROC_LINKS(open_color_tweaker, 0), "open_color_tweaker", 18, "Opens the 4coder colors and fonts selector menu.", 48, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1473 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1320 }, -{ PROC_LINKS(open_in_other, 0), "open_in_other", 13, "Interactively opens a file in the other panel.", 46, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1481 }, -{ PROC_LINKS(open_long_braces, 0), "open_long_braces", 16, "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "C:\\work\\4ed\\code\\4coder_combined_write_commands.cpp", 55, 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:\\work\\4ed\\code\\4coder_combined_write_commands.cpp", 55, 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:\\work\\4ed\\code\\4coder_combined_write_commands.cpp", 55, 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1356 }, -{ PROC_LINKS(open_panel_hsplit, 0), "open_panel_hsplit", 17, "Create a new panel by horizontally splitting the active panel.", 62, "C:\\work\\4ed\\code\\4coder_default_framework.cpp", 49, 139 }, -{ PROC_LINKS(open_panel_vsplit, 0), "open_panel_vsplit", 17, "Create a new panel by vertically splitting the active panel.", 60, "C:\\work\\4ed\\code\\4coder_default_framework.cpp", 49, 130 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 288 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 279 }, -{ PROC_LINKS(paste, 0), "paste", 5, "At the cursor, insert the text at the top of the clipboard.", 59, "C:\\work\\4ed\\code\\4coder_clipboard.cpp", 41, 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:\\work\\4ed\\code\\4coder_clipboard.cpp", 41, 128 }, -{ 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:\\work\\4ed\\code\\4coder_clipboard.cpp", 41, 84 }, -{ 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:\\work\\4ed\\code\\4coder_clipboard.cpp", 41, 135 }, -{ 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:\\work\\4ed\\code\\4coder_scope_commands.cpp", 46, 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:\\work\\4ed\\code\\4coder_project_commands.cpp", 48, 1033 }, -{ 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:\\work\\4ed\\code\\4coder_project_commands.cpp", 48, 1058 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 893 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 913 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 931 }, -{ PROC_LINKS(redo, 0), "redo", 4, "Advances forewards through the undo history.", 44, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1419 }, -{ PROC_LINKS(remap_interactive, 0), "remap_interactive", 17, "Switch to a named key binding map.", 34, "C:\\work\\4ed\\code\\4coder_default_framework.cpp", 49, 188 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1059 }, -{ 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:\\work\\4ed\\code\\4coder_experiments.cpp", 43, 385 }, -{ PROC_LINKS(reopen, 0), "reopen", 6, "Reopen the current buffer from the hard drive.", 46, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1455 }, -{ 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:\\work\\4ed\\code\\4coder_experiments.cpp", 43, 771 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 791 }, -{ PROC_LINKS(reverse_search, 0), "reverse_search", 14, "Begins an incremental search up through the current buffer for a user specified string.", 87, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 762 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 780 }, -{ PROC_LINKS(save, 0), "save", 4, "Saves the current buffer.", 25, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1461 }, -{ PROC_LINKS(save_all_dirty_buffers, 0), "save_all_dirty_buffers", 22, "Saves all buffers marked dirty (showing the '*' indicator).", 59, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 958 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1019 }, -{ 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:\\work\\4ed\\code\\4coder_scope_commands.cpp", 46, 738 }, -{ PROC_LINKS(search, 0), "search", 6, "Begins an incremental search down through the current buffer for a user specified string.", 89, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 755 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 769 }, -{ PROC_LINKS(seek_alphanumeric_left, 0), "seek_alphanumeric_left", 22, "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 1233 }, -{ PROC_LINKS(seek_alphanumeric_right, 0), "seek_alphanumeric_right", 23, "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 1117 }, -{ PROC_LINKS(seek_token_left, 0), "seek_token_left", 15, "Seek left for the next beginning of a token.", 44, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 1203 }, -{ PROC_LINKS(seek_token_right, 0), "seek_token_right", 16, "Seek right for the next end of a token.", 39, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 1209 }, -{ PROC_LINKS(seek_whitespace_down, 0), "seek_whitespace_down", 20, "Seeks the cursor down to the next blank line.", 45, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 1158 }, -{ PROC_LINKS(seek_whitespace_left, 0), "seek_whitespace_left", 20, "Seek left for the next boundary between whitespace and non-whitespace.", 70, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 1191 }, -{ PROC_LINKS(seek_whitespace_right, 0), "seek_whitespace_right", 21, "Seek right for the next boundary between whitespace and non-whitespace.", 71, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 1185 }, -{ PROC_LINKS(seek_whitespace_up, 0), "seek_whitespace_up", 18, "Seeks the cursor up to the next blank line.", 43, "C:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 317 }, -{ PROC_LINKS(set_bindings_choose, 0), "set_bindings_choose", 19, "Remap keybindings using the 'choose' mapping rule.", 50, "C:\\work\\4ed\\code\\4coder_remapping_commands.cpp", 50, 47 }, -{ PROC_LINKS(set_bindings_default, 0), "set_bindings_default", 20, "Remap keybindings using the 'default' mapping rule.", 51, "C:\\work\\4ed\\code\\4coder_remapping_commands.cpp", 50, 61 }, -{ PROC_LINKS(set_bindings_mac_default, 0), "set_bindings_mac_default", 24, "Remap keybindings using the 'mac-default' mapping rule.", 55, "C:\\work\\4ed\\code\\4coder_remapping_commands.cpp", 50, 75 }, -{ PROC_LINKS(set_mark, 0), "set_mark", 8, "Sets the mark to the current position of the cursor.", 52, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 86 }, -{ 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:\\work\\4ed\\code\\4coder_project_commands.cpp", 48, 1443 }, -{ 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:\\work\\4ed\\code\\4coder_project_commands.cpp", 48, 1455 }, -{ 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:\\work\\4ed\\code\\4coder_project_commands.cpp", 48, 1449 }, -{ 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:\\work\\4ed\\code\\4coder_project_commands.cpp", 48, 1436 }, -{ PROC_LINKS(show_filebar, 0), "show_filebar", 12, "Sets the current view to show it's filebar.", 43, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 464 }, -{ PROC_LINKS(show_scrollbar, 0), "show_scrollbar", 14, "Sets the current view to show it's scrollbar.", 45, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 450 }, -{ 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_seek.cpp", 36, 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:\\work\\4ed\\code\\4coder_default_framework.cpp", 49, 162 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1380 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 348 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 328 }, -{ PROC_LINKS(toggle_filebar, 0), "toggle_filebar", 14, "Toggles the visibility status of the current view's filebar.", 60, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 478 }, -{ 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:\\work\\4ed\\code\\4coder_default_framework.cpp", 49, 180 }, -{ PROC_LINKS(toggle_line_wrap, 0), "toggle_line_wrap", 16, "Toggles the current buffer's line wrapping status.", 50, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 487 }, -{ PROC_LINKS(toggle_mouse, 0), "toggle_mouse", 12, "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "C:\\work\\4ed\\code\\4coder_default_framework.cpp", 49, 174 }, -{ PROC_LINKS(toggle_show_whitespace, 0), "toggle_show_whitespace", 22, "Toggles the current buffer's whitespace visibility status.", 58, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 554 }, -{ PROC_LINKS(toggle_virtual_whitespace, 0), "toggle_virtual_whitespace", 25, "Toggles the current buffer's virtual whitespace status.", 55, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 543 }, -{ PROC_LINKS(undo, 0), "undo", 4, "Advances backwards through the undo history.", 44, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1413 }, -{ 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:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 1370 }, -{ 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:\\work\\4ed\\code\\4coder_search.cpp", 38, 820 }, -{ 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:\\work\\4ed\\code\\4coder_auto_indent.cpp", 43, 745 }, -{ PROC_LINKS(write_block, 0), "write_block", 11, "At the cursor, insert a block comment.", 38, "C:\\work\\4ed\\code\\4coder_combined_write_commands.cpp", 55, 106 }, -{ PROC_LINKS(write_character, 0), "write_character", 15, "Inserts whatever character was used to trigger this command.", 60, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 33 }, -{ 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:\\work\\4ed\\code\\4coder_experiments.cpp", 43, 707 }, -{ 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:\\work\\4ed\\code\\4coder_experiments.cpp", 43, 701 }, -{ 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:\\work\\4ed\\code\\4coder_combined_write_commands.cpp", 55, 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:\\work\\4ed\\code\\4coder_combined_write_commands.cpp", 55, 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:\\work\\4ed\\code\\4coder_combined_write_commands.cpp", 55, 88 }, -{ PROC_LINKS(write_underscore, 0), "write_underscore", 16, "Inserts an underscore.", 22, "C:\\work\\4ed\\code\\4coder_base_commands.cpp", 45, 42 }, -{ PROC_LINKS(write_zero_struct, 0), "write_zero_struct", 17, "At the cursor, insert a ' = {0};'.", 34, "C:\\work\\4ed\\code\\4coder_combined_write_commands.cpp", 55, 112 }, +static Command_Metadata fcoder_metacmd_table[184] = { +{ PROC_LINKS(allow_mouse, 0), "allow_mouse", 11, "Shows the mouse and causes all mouse input to be processed normally.", 68, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 33182 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36809 }, +{ PROC_LINKS(auto_tab_range, 0), "auto_tab_range", 14, "Auto-indents the range between the cursor and the mark.", 55, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36820 }, +{ PROC_LINKS(auto_tab_whole_file, 0), "auto_tab_whole_file", 19, "Audo-indents the entire current buffer.", 39, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36799 }, +{ PROC_LINKS(backspace_char, 0), "backspace_char", 14, "Deletes the character to the left of the cursor.", 48, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34662 }, +{ PROC_LINKS(backspace_word, 0), "backspace_word", 14, "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34567 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35028 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39364 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39330 }, +{ PROC_LINKS(center_view, 0), "center_view", 11, "Centers the view vertically on the line on which the cursor sits.", 65, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34715 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 33124 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 33134 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39386 }, +{ PROC_LINKS(clean_all_lines, 0), "clean_all_lines", 15, "Removes trailing whitespace from all lines in the current buffer.", 65, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34963 }, +{ PROC_LINKS(click_set_cursor, 0), "click_set_cursor", 16, "Sets the cursor position to the mouse position.", 47, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34769 }, +{ PROC_LINKS(click_set_mark, 0), "click_set_mark", 14, "Sets the mark position to the mouse position.", 45, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34782 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 40410 }, +{ PROC_LINKS(close_build_panel, 0), "close_build_panel", 17, "If the special build panel is open, closes it.", 46, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39380 }, +{ PROC_LINKS(close_panel, 0), "close_panel", 11, "Closes the currently active panel if it is not the only panel open.", 67, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35036 }, +{ PROC_LINKS(copy, 0), "copy", 4, "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39012 }, +{ PROC_LINKS(cursor_mark_swap, 0), "cursor_mark_swap", 16, "Swaps the position of the cursor and the mark.", 46, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34690 }, +{ PROC_LINKS(cut, 0), "cut", 3, "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39021 }, +{ PROC_LINKS(decrease_face_size, 0), "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35126 }, +{ PROC_LINKS(decrease_line_wrap, 0), "decrease_line_wrap", 18, "Decrases the current buffer's width for line wrapping.", 54, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35103 }, +{ PROC_LINKS(delete_char, 0), "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34644 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 41689 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35588 }, +{ PROC_LINKS(delete_line, 0), "delete_line", 11, "Delete the line the on which the cursor sits.", 45, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35838 }, +{ PROC_LINKS(delete_range, 0), "delete_range", 12, "Deletes the text in the range between the cursor and the mark.", 62, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34702 }, +{ PROC_LINKS(delete_word, 0), "delete_word", 11, "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34573 }, +{ PROC_LINKS(duplicate_line, 0), "duplicate_line", 14, "Create a copy of the line on which the cursor sits.", 51, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35816 }, +{ PROC_LINKS(eol_dosify, 0), "eol_dosify", 10, "Puts the buffer in DOS line ending mode.", 40, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35156 }, +{ PROC_LINKS(eol_nixify, 0), "eol_nixify", 10, "Puts the buffer in NIX line ending mode.", 40, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35164 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39154 }, +{ PROC_LINKS(execute_arbitrary_command, 0), "execute_arbitrary_command", 25, "Execute a 'long form' command.", 30, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 42146 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39138 }, +{ PROC_LINKS(exit_4coder, 0), "exit_4coder", 11, "Attempts to close 4coder.", 25, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35172 }, +{ PROC_LINKS(goto_beginning_of_file, 0), "goto_beginning_of_file", 22, "Sets the cursor to the beginning of the file.", 45, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34488 }, +{ PROC_LINKS(goto_end_of_file, 0), "goto_end_of_file", 16, "Sets the cursor to the end of the file.", 39, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34495 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38331 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38914 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38896 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38255 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38276 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38746 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38718 }, +{ PROC_LINKS(goto_line, 0), "goto_line", 9, "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35180 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38295 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38313 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38865 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38835 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38304 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38322 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38881 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38851 }, +{ PROC_LINKS(hide_filebar, 0), "hide_filebar", 12, "Sets the current view to hide it's filebar.", 43, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35066 }, +{ PROC_LINKS(hide_scrollbar, 0), "hide_scrollbar", 14, "Sets the current view to hide it's scrollbar.", 45, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35052 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 41565 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 41584 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 41543 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 42099 }, +{ PROC_LINKS(increase_face_size, 0), "increase_face_size", 18, "Increase the size of the face used by the current buffer.", 57, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35114 }, +{ PROC_LINKS(increase_line_wrap, 0), "increase_line_wrap", 18, "Increases the current buffer's width for line wrapping.", 55, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35092 }, +{ PROC_LINKS(interactive_kill_buffer, 0), "interactive_kill_buffer", 23, "Interactively kill an open buffer.", 34, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36044 }, +{ PROC_LINKS(interactive_new, 0), "interactive_new", 15, "Interactively creates a new file.", 33, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36020 }, +{ PROC_LINKS(interactive_open, 0), "interactive_open", 16, "Interactively opens a file.", 27, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36026 }, +{ PROC_LINKS(interactive_open_or_new, 0), "interactive_open_or_new", 23, "Interactively opens or creates a new file.", 42, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36032 }, +{ PROC_LINKS(interactive_switch_buffer, 0), "interactive_switch_buffer", 25, "Interactively switch to an open buffer.", 39, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36038 }, +{ PROC_LINKS(kill_buffer, 0), "kill_buffer", 11, "Kills the current buffer.", 25, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36062 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34730 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 41190 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 37595 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 37607 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 37619 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 37625 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 37631 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 37637 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 37643 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 37654 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 37601 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 37613 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 40433 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35696 }, +{ PROC_LINKS(move_down, 0), "move_down", 9, "Moves the cursor down one line.", 31, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34845 }, +{ PROC_LINKS(move_down_10, 0), "move_down_10", 12, "Moves the cursor down ten lines.", 32, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34857 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34863 }, +{ PROC_LINKS(move_left, 0), "move_left", 9, "Moves the cursor one character to the left.", 43, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34894 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35793 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35729 }, +{ PROC_LINKS(move_right, 0), "move_right", 10, "Moves the cursor one character to the right.", 44, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34903 }, +{ PROC_LINKS(move_up, 0), "move_up", 7, "Moves the cursor up one line.", 29, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34839 }, +{ PROC_LINKS(move_up_10, 0), "move_up_10", 10, "Moves the cursor up ten lines.", 30, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34851 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38348 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38363 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38952 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 38937 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 40417 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 40424 }, +{ PROC_LINKS(open_color_tweaker, 0), "open_color_tweaker", 18, "Opens the 4coder colors and fonts selector menu.", 48, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36068 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35915 }, +{ PROC_LINKS(open_in_other, 0), "open_in_other", 13, "Interactively opens a file in the other panel.", 46, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36076 }, +{ PROC_LINKS(open_long_braces, 0), "open_long_braces", 16, "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 42075 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 42091 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 42083 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35951 }, +{ PROC_LINKS(open_panel_hsplit, 0), "open_panel_hsplit", 17, "Create a new panel by horizontally splitting the active panel.", 62, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 33153 }, +{ PROC_LINKS(open_panel_vsplit, 0), "open_panel_vsplit", 17, "Create a new panel by vertically splitting the active panel.", 60, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 33144 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34883 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34874 }, +{ PROC_LINKS(paste, 0), "paste", 5, "At the cursor, insert the text at the top of the clipboard.", 59, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39032 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39114 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39070 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 39121 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 41683 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 40440 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 40465 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35488 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35508 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35526 }, +{ PROC_LINKS(redo, 0), "redo", 4, "Advances forewards through the undo history.", 44, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36014 }, +{ PROC_LINKS(remap_interactive, 0), "remap_interactive", 17, "Switch to a named key binding map.", 34, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 33202 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35654 }, +{ PROC_LINKS(reopen, 0), "reopen", 6, "Reopen the current buffer from the hard drive.", 46, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36050 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35386 }, +{ PROC_LINKS(reverse_search, 0), "reverse_search", 14, "Begins an incremental search up through the current buffer for a user specified string.", 87, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35357 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35375 }, +{ PROC_LINKS(save, 0), "save", 4, "Saves the current buffer.", 25, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36056 }, +{ PROC_LINKS(save_all_dirty_buffers, 0), "save_all_dirty_buffers", 22, "Saves all buffers marked dirty (showing the '*' indicator).", 59, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35553 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35614 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 41940 }, +{ PROC_LINKS(search, 0), "search", 6, "Begins an incremental search down through the current buffer for a user specified string.", 89, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35350 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35364 }, +{ PROC_LINKS(seek_alphanumeric_left, 0), "seek_alphanumeric_left", 22, "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34547 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34559 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34553 }, +{ PROC_LINKS(seek_alphanumeric_right, 0), "seek_alphanumeric_right", 23, "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34541 }, +{ PROC_LINKS(seek_beginning_of_line, 0), "seek_beginning_of_line", 22, "Seeks the cursor to the beginning of the visual line.", 53, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34446 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34428 }, +{ PROC_LINKS(seek_end_of_line, 0), "seek_end_of_line", 16, "Seeks the cursor to the end of the visual line.", 47, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34457 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34437 }, +{ PROC_LINKS(seek_token_left, 0), "seek_token_left", 15, "Seek left for the next beginning of a token.", 44, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34523 }, +{ PROC_LINKS(seek_token_right, 0), "seek_token_right", 16, "Seek right for the next end of a token.", 39, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34517 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34535 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34529 }, +{ PROC_LINKS(seek_whitespace_down, 0), "seek_whitespace_down", 20, "Seeks the cursor down to the next blank line.", 45, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34419 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34478 }, +{ PROC_LINKS(seek_whitespace_left, 0), "seek_whitespace_left", 20, "Seek left for the next boundary between whitespace and non-whitespace.", 70, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34511 }, +{ PROC_LINKS(seek_whitespace_right, 0), "seek_whitespace_right", 21, "Seek right for the next boundary between whitespace and non-whitespace.", 71, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34505 }, +{ PROC_LINKS(seek_whitespace_up, 0), "seek_whitespace_up", 18, "Seeks the cursor up to the next blank line.", 43, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34410 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34468 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34912 }, +{ PROC_LINKS(set_bindings_choose, 0), "set_bindings_choose", 19, "Remap keybindings using the 'choose' mapping rule.", 50, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 43830 }, +{ PROC_LINKS(set_bindings_default, 0), "set_bindings_default", 20, "Remap keybindings using the 'default' mapping rule.", 51, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 43844 }, +{ PROC_LINKS(set_bindings_mac_default, 0), "set_bindings_mac_default", 24, "Remap keybindings using the 'mac-default' mapping rule.", 55, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 43858 }, +{ PROC_LINKS(set_mark, 0), "set_mark", 8, "Sets the mark to the current position of the cursor.", 52, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34681 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 40850 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 40862 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 40856 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 40843 }, +{ PROC_LINKS(show_filebar, 0), "show_filebar", 12, "Sets the current view to show it's filebar.", 43, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35059 }, +{ PROC_LINKS(show_scrollbar, 0), "show_scrollbar", 14, "Sets the current view to show it's scrollbar.", 45, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35045 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34579 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34585 }, +{ PROC_LINKS(suppress_mouse, 0), "suppress_mouse", 14, "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 33176 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35975 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34943 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34923 }, +{ PROC_LINKS(toggle_filebar, 0), "toggle_filebar", 14, "Toggles the visibility status of the current view's filebar.", 60, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35073 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 33194 }, +{ PROC_LINKS(toggle_line_wrap, 0), "toggle_line_wrap", 16, "Toggles the current buffer's line wrapping status.", 50, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35082 }, +{ PROC_LINKS(toggle_mouse, 0), "toggle_mouse", 12, "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 33188 }, +{ PROC_LINKS(toggle_show_whitespace, 0), "toggle_show_whitespace", 22, "Toggles the current buffer's whitespace visibility status.", 58, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35149 }, +{ PROC_LINKS(toggle_virtual_whitespace, 0), "toggle_virtual_whitespace", 25, "Toggles the current buffer's virtual whitespace status.", 55, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35138 }, +{ PROC_LINKS(undo, 0), "undo", 4, "Advances backwards through the undo history.", 44, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36008 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 35965 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 37674 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 36832 }, +{ PROC_LINKS(write_block, 0), "write_block", 11, "At the cursor, insert a block comment.", 38, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 42123 }, +{ PROC_LINKS(write_character, 0), "write_character", 15, "Inserts whatever character was used to trigger this command.", 60, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34628 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 42111 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 42117 }, +{ 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:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 42105 }, +{ PROC_LINKS(write_underscore, 0), "write_underscore", 16, "Inserts an underscore.", 22, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 34637 }, +{ PROC_LINKS(write_zero_struct, 0), "write_zero_struct", 17, "At the cursor, insert a ' = {0};'.", 34, "C:\\work\\4ed\\build\\4coder_command_metadata.i", 47, 42129 }, }; static int32_t fcoder_metacmd_ID_allow_mouse = 0; static int32_t fcoder_metacmd_ID_auto_tab_line_at_cursor = 1; @@ -482,130 +459,119 @@ 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_load_project = 82; -static int32_t fcoder_metacmd_ID_make_directory_query = 83; -static int32_t fcoder_metacmd_ID_miblo_decrement_basic = 84; -static int32_t fcoder_metacmd_ID_miblo_decrement_time_stamp = 85; -static int32_t fcoder_metacmd_ID_miblo_decrement_time_stamp_minute = 86; -static int32_t fcoder_metacmd_ID_miblo_increment_basic = 87; -static int32_t fcoder_metacmd_ID_miblo_increment_time_stamp = 88; -static int32_t fcoder_metacmd_ID_miblo_increment_time_stamp_minute = 89; -static int32_t fcoder_metacmd_ID_move_down = 90; -static int32_t fcoder_metacmd_ID_move_down_10 = 91; -static int32_t fcoder_metacmd_ID_move_down_textual = 92; -static int32_t fcoder_metacmd_ID_move_left = 93; -static int32_t fcoder_metacmd_ID_move_line_down = 94; -static int32_t fcoder_metacmd_ID_move_line_up = 95; -static int32_t fcoder_metacmd_ID_move_right = 96; -static int32_t fcoder_metacmd_ID_move_up = 97; -static int32_t fcoder_metacmd_ID_move_up_10 = 98; -static int32_t fcoder_metacmd_ID_multi_line_edit = 99; -static int32_t fcoder_metacmd_ID_newline_or_goto_position_direct = 100; -static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_direct = 101; -static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_sticky = 102; -static int32_t fcoder_metacmd_ID_newline_or_goto_position_sticky = 103; -static int32_t fcoder_metacmd_ID_open_all_code = 104; -static int32_t fcoder_metacmd_ID_open_all_code_recursive = 105; -static int32_t fcoder_metacmd_ID_open_color_tweaker = 106; -static int32_t fcoder_metacmd_ID_open_file_in_quotes = 107; -static int32_t fcoder_metacmd_ID_open_in_other = 108; -static int32_t fcoder_metacmd_ID_open_long_braces = 109; -static int32_t fcoder_metacmd_ID_open_long_braces_break = 110; -static int32_t fcoder_metacmd_ID_open_long_braces_semicolon = 111; -static int32_t fcoder_metacmd_ID_open_matching_file_cpp = 112; -static int32_t fcoder_metacmd_ID_open_panel_hsplit = 113; -static int32_t fcoder_metacmd_ID_open_panel_vsplit = 114; -static int32_t fcoder_metacmd_ID_page_down = 115; -static int32_t fcoder_metacmd_ID_page_up = 116; -static int32_t fcoder_metacmd_ID_paste = 117; -static int32_t fcoder_metacmd_ID_paste_and_indent = 118; -static int32_t fcoder_metacmd_ID_paste_next = 119; -static int32_t fcoder_metacmd_ID_paste_next_and_indent = 120; -static int32_t fcoder_metacmd_ID_place_in_scope = 121; -static int32_t fcoder_metacmd_ID_project_fkey_command = 122; -static int32_t fcoder_metacmd_ID_project_go_to_root_directory = 123; -static int32_t fcoder_metacmd_ID_query_replace = 124; -static int32_t fcoder_metacmd_ID_query_replace_identifier = 125; -static int32_t fcoder_metacmd_ID_query_replace_selection = 126; -static int32_t fcoder_metacmd_ID_redo = 127; -static int32_t fcoder_metacmd_ID_remap_interactive = 128; -static int32_t fcoder_metacmd_ID_rename_file_query = 129; -static int32_t fcoder_metacmd_ID_rename_parameter = 130; -static int32_t fcoder_metacmd_ID_reopen = 131; -static int32_t fcoder_metacmd_ID_replace_all_occurrences = 132; -static int32_t fcoder_metacmd_ID_replace_in_range = 133; -static int32_t fcoder_metacmd_ID_reverse_search = 134; -static int32_t fcoder_metacmd_ID_reverse_search_identifier = 135; -static int32_t fcoder_metacmd_ID_save = 136; -static int32_t fcoder_metacmd_ID_save_all_dirty_buffers = 137; -static int32_t fcoder_metacmd_ID_save_to_query = 138; -static int32_t fcoder_metacmd_ID_scope_absorb_down = 139; -static int32_t fcoder_metacmd_ID_search = 140; -static int32_t fcoder_metacmd_ID_search_identifier = 141; -static int32_t fcoder_metacmd_ID_seek_alphanumeric_left = 142; -static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_left = 143; -static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_right = 144; -static int32_t fcoder_metacmd_ID_seek_alphanumeric_right = 145; -static int32_t fcoder_metacmd_ID_seek_beginning_of_line = 146; -static int32_t fcoder_metacmd_ID_seek_beginning_of_textual_line = 147; -static int32_t fcoder_metacmd_ID_seek_end_of_line = 148; -static int32_t fcoder_metacmd_ID_seek_end_of_textual_line = 149; -static int32_t fcoder_metacmd_ID_seek_token_left = 150; -static int32_t fcoder_metacmd_ID_seek_token_right = 151; -static int32_t fcoder_metacmd_ID_seek_white_or_token_left = 152; -static int32_t fcoder_metacmd_ID_seek_white_or_token_right = 153; -static int32_t fcoder_metacmd_ID_seek_whitespace_down = 154; -static int32_t fcoder_metacmd_ID_seek_whitespace_down_end_line = 155; -static int32_t fcoder_metacmd_ID_seek_whitespace_left = 156; -static int32_t fcoder_metacmd_ID_seek_whitespace_right = 157; -static int32_t fcoder_metacmd_ID_seek_whitespace_up = 158; -static int32_t fcoder_metacmd_ID_seek_whitespace_up_end_line = 159; -static int32_t fcoder_metacmd_ID_select_all = 160; -static int32_t fcoder_metacmd_ID_set_bindings_choose = 161; -static int32_t fcoder_metacmd_ID_set_bindings_default = 162; -static int32_t fcoder_metacmd_ID_set_bindings_mac_default = 163; -static int32_t fcoder_metacmd_ID_set_mark = 164; -static int32_t fcoder_metacmd_ID_setup_build_bat = 165; -static int32_t fcoder_metacmd_ID_setup_build_bat_and_sh = 166; -static int32_t fcoder_metacmd_ID_setup_build_sh = 167; -static int32_t fcoder_metacmd_ID_setup_new_project = 168; -static int32_t fcoder_metacmd_ID_show_filebar = 169; -static int32_t fcoder_metacmd_ID_show_scrollbar = 170; -static int32_t fcoder_metacmd_ID_snipe_token_or_word = 171; -static int32_t fcoder_metacmd_ID_snipe_token_or_word_right = 172; -static int32_t fcoder_metacmd_ID_suppress_mouse = 173; -static int32_t fcoder_metacmd_ID_swap_buffers_between_panels = 174; -static int32_t fcoder_metacmd_ID_to_lowercase = 175; -static int32_t fcoder_metacmd_ID_to_uppercase = 176; -static int32_t fcoder_metacmd_ID_toggle_filebar = 177; -static int32_t fcoder_metacmd_ID_toggle_fullscreen = 178; -static int32_t fcoder_metacmd_ID_toggle_line_wrap = 179; -static int32_t fcoder_metacmd_ID_toggle_mouse = 180; -static int32_t fcoder_metacmd_ID_toggle_show_whitespace = 181; -static int32_t fcoder_metacmd_ID_toggle_virtual_whitespace = 182; -static int32_t fcoder_metacmd_ID_undo = 183; -static int32_t fcoder_metacmd_ID_view_buffer_other_panel = 184; -static int32_t fcoder_metacmd_ID_word_complete = 185; -static int32_t fcoder_metacmd_ID_write_and_auto_tab = 186; -static int32_t fcoder_metacmd_ID_write_block = 187; -static int32_t fcoder_metacmd_ID_write_character = 188; -static int32_t fcoder_metacmd_ID_write_explicit_enum_flags = 189; -static int32_t fcoder_metacmd_ID_write_explicit_enum_values = 190; -static int32_t fcoder_metacmd_ID_write_hack = 191; -static int32_t fcoder_metacmd_ID_write_note = 192; -static int32_t fcoder_metacmd_ID_write_todo = 193; -static int32_t fcoder_metacmd_ID_write_underscore = 194; -static int32_t fcoder_metacmd_ID_write_zero_struct = 195; +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_load_project = 81; +static int32_t fcoder_metacmd_ID_make_directory_query = 82; +static int32_t fcoder_metacmd_ID_move_down = 83; +static int32_t fcoder_metacmd_ID_move_down_10 = 84; +static int32_t fcoder_metacmd_ID_move_down_textual = 85; +static int32_t fcoder_metacmd_ID_move_left = 86; +static int32_t fcoder_metacmd_ID_move_line_down = 87; +static int32_t fcoder_metacmd_ID_move_line_up = 88; +static int32_t fcoder_metacmd_ID_move_right = 89; +static int32_t fcoder_metacmd_ID_move_up = 90; +static int32_t fcoder_metacmd_ID_move_up_10 = 91; +static int32_t fcoder_metacmd_ID_newline_or_goto_position_direct = 92; +static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_direct = 93; +static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_sticky = 94; +static int32_t fcoder_metacmd_ID_newline_or_goto_position_sticky = 95; +static int32_t fcoder_metacmd_ID_open_all_code = 96; +static int32_t fcoder_metacmd_ID_open_all_code_recursive = 97; +static int32_t fcoder_metacmd_ID_open_color_tweaker = 98; +static int32_t fcoder_metacmd_ID_open_file_in_quotes = 99; +static int32_t fcoder_metacmd_ID_open_in_other = 100; +static int32_t fcoder_metacmd_ID_open_long_braces = 101; +static int32_t fcoder_metacmd_ID_open_long_braces_break = 102; +static int32_t fcoder_metacmd_ID_open_long_braces_semicolon = 103; +static int32_t fcoder_metacmd_ID_open_matching_file_cpp = 104; +static int32_t fcoder_metacmd_ID_open_panel_hsplit = 105; +static int32_t fcoder_metacmd_ID_open_panel_vsplit = 106; +static int32_t fcoder_metacmd_ID_page_down = 107; +static int32_t fcoder_metacmd_ID_page_up = 108; +static int32_t fcoder_metacmd_ID_paste = 109; +static int32_t fcoder_metacmd_ID_paste_and_indent = 110; +static int32_t fcoder_metacmd_ID_paste_next = 111; +static int32_t fcoder_metacmd_ID_paste_next_and_indent = 112; +static int32_t fcoder_metacmd_ID_place_in_scope = 113; +static int32_t fcoder_metacmd_ID_project_fkey_command = 114; +static int32_t fcoder_metacmd_ID_project_go_to_root_directory = 115; +static int32_t fcoder_metacmd_ID_query_replace = 116; +static int32_t fcoder_metacmd_ID_query_replace_identifier = 117; +static int32_t fcoder_metacmd_ID_query_replace_selection = 118; +static int32_t fcoder_metacmd_ID_redo = 119; +static int32_t fcoder_metacmd_ID_remap_interactive = 120; +static int32_t fcoder_metacmd_ID_rename_file_query = 121; +static int32_t fcoder_metacmd_ID_reopen = 122; +static int32_t fcoder_metacmd_ID_replace_in_range = 123; +static int32_t fcoder_metacmd_ID_reverse_search = 124; +static int32_t fcoder_metacmd_ID_reverse_search_identifier = 125; +static int32_t fcoder_metacmd_ID_save = 126; +static int32_t fcoder_metacmd_ID_save_all_dirty_buffers = 127; +static int32_t fcoder_metacmd_ID_save_to_query = 128; +static int32_t fcoder_metacmd_ID_scope_absorb_down = 129; +static int32_t fcoder_metacmd_ID_search = 130; +static int32_t fcoder_metacmd_ID_search_identifier = 131; +static int32_t fcoder_metacmd_ID_seek_alphanumeric_left = 132; +static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_left = 133; +static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_right = 134; +static int32_t fcoder_metacmd_ID_seek_alphanumeric_right = 135; +static int32_t fcoder_metacmd_ID_seek_beginning_of_line = 136; +static int32_t fcoder_metacmd_ID_seek_beginning_of_textual_line = 137; +static int32_t fcoder_metacmd_ID_seek_end_of_line = 138; +static int32_t fcoder_metacmd_ID_seek_end_of_textual_line = 139; +static int32_t fcoder_metacmd_ID_seek_token_left = 140; +static int32_t fcoder_metacmd_ID_seek_token_right = 141; +static int32_t fcoder_metacmd_ID_seek_white_or_token_left = 142; +static int32_t fcoder_metacmd_ID_seek_white_or_token_right = 143; +static int32_t fcoder_metacmd_ID_seek_whitespace_down = 144; +static int32_t fcoder_metacmd_ID_seek_whitespace_down_end_line = 145; +static int32_t fcoder_metacmd_ID_seek_whitespace_left = 146; +static int32_t fcoder_metacmd_ID_seek_whitespace_right = 147; +static int32_t fcoder_metacmd_ID_seek_whitespace_up = 148; +static int32_t fcoder_metacmd_ID_seek_whitespace_up_end_line = 149; +static int32_t fcoder_metacmd_ID_select_all = 150; +static int32_t fcoder_metacmd_ID_set_bindings_choose = 151; +static int32_t fcoder_metacmd_ID_set_bindings_default = 152; +static int32_t fcoder_metacmd_ID_set_bindings_mac_default = 153; +static int32_t fcoder_metacmd_ID_set_mark = 154; +static int32_t fcoder_metacmd_ID_setup_build_bat = 155; +static int32_t fcoder_metacmd_ID_setup_build_bat_and_sh = 156; +static int32_t fcoder_metacmd_ID_setup_build_sh = 157; +static int32_t fcoder_metacmd_ID_setup_new_project = 158; +static int32_t fcoder_metacmd_ID_show_filebar = 159; +static int32_t fcoder_metacmd_ID_show_scrollbar = 160; +static int32_t fcoder_metacmd_ID_snipe_token_or_word = 161; +static int32_t fcoder_metacmd_ID_snipe_token_or_word_right = 162; +static int32_t fcoder_metacmd_ID_suppress_mouse = 163; +static int32_t fcoder_metacmd_ID_swap_buffers_between_panels = 164; +static int32_t fcoder_metacmd_ID_to_lowercase = 165; +static int32_t fcoder_metacmd_ID_to_uppercase = 166; +static int32_t fcoder_metacmd_ID_toggle_filebar = 167; +static int32_t fcoder_metacmd_ID_toggle_fullscreen = 168; +static int32_t fcoder_metacmd_ID_toggle_line_wrap = 169; +static int32_t fcoder_metacmd_ID_toggle_mouse = 170; +static int32_t fcoder_metacmd_ID_toggle_show_whitespace = 171; +static int32_t fcoder_metacmd_ID_toggle_virtual_whitespace = 172; +static int32_t fcoder_metacmd_ID_undo = 173; +static int32_t fcoder_metacmd_ID_view_buffer_other_panel = 174; +static int32_t fcoder_metacmd_ID_word_complete = 175; +static int32_t fcoder_metacmd_ID_write_and_auto_tab = 176; +static int32_t fcoder_metacmd_ID_write_block = 177; +static int32_t fcoder_metacmd_ID_write_character = 178; +static int32_t fcoder_metacmd_ID_write_hack = 179; +static int32_t fcoder_metacmd_ID_write_note = 180; +static int32_t fcoder_metacmd_ID_write_todo = 181; +static int32_t fcoder_metacmd_ID_write_underscore = 182; +static int32_t fcoder_metacmd_ID_write_zero_struct = 183; +#endif diff --git a/4coder_metadata_generator.cpp b/4coder_metadata_generator.cpp index d8f5a83b..a516ee50 100644 --- a/4coder_metadata_generator.cpp +++ b/4coder_metadata_generator.cpp @@ -632,7 +632,7 @@ parse_file(Partition *part, Meta_Command_Entry_Arrays *entry_arrays, Filename_Ch static void parse_files_by_pattern(Partition *part, Meta_Command_Entry_Arrays *entry_arrays, Filename_Character *pattern, bool32 recursive){ - Cross_Platform_File_List list = get_file_list(part, pattern, filter_is_code_file); + Cross_Platform_File_List list = get_file_list(part, pattern, filter_all); for (int32_t i = 0; i < list.count; ++i){ Cross_Platform_File_Info *info = &list.info[i]; @@ -735,6 +735,7 @@ main(int argc, char **argv){ int32_t entry_count = entry_arrays.doc_string_count; Meta_Command_Entry **entries = get_sorted_meta_commands(part, entry_arrays.first_doc_string, entry_count); + fprintf(out, "#if !defined(NO_COMMAND_METADATA)\n"); fprintf(out, "#define command_id(c) (fcoder_metacmd_ID_##c)\n"); fprintf(out, "#define command_metadata(c) (&fcoder_metacmd_table[command_id(c)])\n"); fprintf(out, "#define command_metadata_by_id(id) (&fcoder_metacmd_table[id])\n"); @@ -800,6 +801,10 @@ main(int argc, char **argv){ str_to_l_c(entry->name), id); ++id; } + + fprintf(out, "#endif\n"); + + fclose(out); } else{ fprintf(stdout, "fatal error: could not open output file %s%s\n", out_directory, COMMAND_METADATA_OUT); diff --git a/build_metadata.bat b/build_metadata.bat index 0a66d2a7..97a4550e 100644 --- a/build_metadata.bat +++ b/build_metadata.bat @@ -1,14 +1,23 @@ @echo off -set OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4390 /WX -set OPTS=%OPTS% /GR- /EHa- /nologo /FC - -pushd ..\build -cl %OPTS% ..\code\4coder_metadata_generator.cpp /Zi /Femetadata_generator -popd - set code_home=%~dp0 if %code_home:~-1%==\ (set code_home=%code_home:~0,-1%) -..\build\metadata_generator -R "%code_home%" "%code_home%\*" + +set src=%1 +if "%src%" == "" set src=4coder_default_bindings.cpp + +set opts=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4390 /WX +set opts=%opts% /GR- /EHa- /nologo /FC + +pushd ..\build +set preproc_file=4coder_command_metadata.i +set meta_macros=/DCUSTOM_COMMAND_SIG=CUSTOM_COMMAND_SIG /DCUSTOM_DOC=CUSTOM_DOC /DCUSTOM_ALIAS=CUSTOM_ALIAS /DNO_COMMAND_METADATA +cl /I"%code_home%" %opts% %debug% %src% /P /Fi%preproc_file% %meta_macros% +metadata_generator -R "%code_home%" "%cd%\\%preproc_file%" + +cl %opts% ..\code\4coder_metadata_generator.cpp /Zi /Femetadata_generator + +del %preproc_file% +popd diff --git a/buildsuper_x64.bat b/buildsuper_x64.bat index 374c9917..03f0f392 100644 --- a/buildsuper_x64.bat +++ b/buildsuper_x64.bat @@ -9,23 +9,26 @@ if %code_home:~-1%==\ (set code_home=%code_home:~0,-1%) if NOT "%Platform%" == "X64" IF NOT "%Platform%" == "x64" (call "%code_home%\windows_scripts\setup_cl_x64.bat") -set SRC=%1 -if "%SRC%" == "" set SRC=4coder_default_bindings.cpp +set src=%1 +if "%src%" == "" set src=4coder_default_bindings.cpp -set OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4457 /WX -set OPTS=%OPTS% /GR- /nologo /FC -set DEBUG=/Zi -set BUILD_DLL=/LD /link /INCREMENTAL:NO /OPT:REF -set EXPORTS=/EXPORT:get_bindings /EXPORT:get_alpha_4coder_version +set opts=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4457 /WX +set opts=%opts% /GR- /nologo /FC +set debug=/Zi +set build_dll=/LD /link /INCREMENTAL:NO /OPT:REF +set exports=/EXPORT:get_bindings /EXPORT:get_alpha_4coder_version -cl /I"%code_home%" %OPTS% %DEBUG% "%code_home%\4coder_metadata_generator.cpp" /Femetadata_generator -metadata_generator -R "%code_home%" "%code_home%\*" +set preproc_file=4coder_command_metadata.i +set meta_macros=/DCUSTOM_COMMAND_SIG=CUSTOM_COMMAND_SIG /DCUSTOM_DOC=CUSTOM_DOC /DCUSTOM_ALIAS=CUSTOM_ALIAS /DNO_COMMAND_METADATA +cl /I"%code_home%" %opts% %debug% %src% /P /Fi%preproc_file% %meta_macros% +cl /I"%code_home%" %opts% %debug% "%code_home%\4coder_metadata_generator.cpp" /Femetadata_generator +metadata_generator -R "%code_home%" "%cd%\\%preproc_file%" -cl /I"%code_home%" %OPTS% %DEBUG% %SRC% /Fecustom_4coder %BUILD_DLL% %EXPORTS% +cl /I"%code_home%" %opts% %debug% %src% /Fecustom_4coder %build_dll% %exports% REM file spammation preventation del metadata_generator* del *.exp del *.obj del *.lib - +del %preproc_file% diff --git a/buildsuper_x86.bat b/buildsuper_x86.bat index 72a36a96..5e6a89eb 100644 --- a/buildsuper_x86.bat +++ b/buildsuper_x86.bat @@ -9,22 +9,26 @@ if %code_home:~-1%==\ (set code_home=%code_home:~0,-1%) if NOT "%Platform%" == "X86" IF NOT "%Platform%" == "x86" (call "%code_home%\windows_scripts\setup_cl_x86.bat") -set SRC=%1 -if "%SRC%" == "" set SRC=4coder_default_bindings.cpp +set src=%1 +if "%src%" == "" set src=4coder_default_bindings.cpp -set OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4457 /WX -set OPTS=%OPTS% /GR- /nologo /FC -set DEBUG=/Zi -set BUILD_DLL=/LD /link /INCREMENTAL:NO /OPT:REF -set EXPORTS=/EXPORT:get_bindings /EXPORT:get_alpha_4coder_version +set opts=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4457 /WX +set opts=%opts% /GR- /nologo /FC +set debug=/Zi +set build_dll=/LD /link /INCREMENTAL:NO /OPT:REF +set exports=/EXPORT:get_bindings /EXPORT:get_alpha_4coder_version -cl %OPTS% /I"%code_home%" %DEBUG% "%code_home%\4coder_metadata_generator.cpp" /Femetadata_generator -metadata_generator -R "%code_home%" "%code_home%\*" +set preproc_file=4coder_command_metadata.i +set meta_macros=/DCUSTOM_COMMAND_SIG=CUSTOM_COMMAND_SIG /DCUSTOM_DOC=CUSTOM_DOC /DCUSTOM_ALIAS=CUSTOM_ALIAS /DNO_COMMAND_METADATA +cl /I"%code_home%" %opts% %debug% %src% /P /Fi%preproc_file% %meta_macros% +cl /I"%code_home%" %opts% %debug% "%code_home%\4coder_metadata_generator.cpp" /Femetadata_generator +metadata_generator -R "%code_home%" "%cd%\\%preproc_file%" -cl %OPTS% /I"%code_home%" %DEBUG% "%SRC%" /Fecustom_4coder %BUILD_DLL% %EXPORTS% +cl %opts% /I"%code_home%" %debug% "%src%" /Fecustom_4coder %build_dll% %exports% REM file spammation preventation del metadata_generator* del *.exp del *.obj del *.lib +del %preproc_file% diff --git a/meta/4ed_build.cpp b/meta/4ed_build.cpp index 6b872c5d..ba4dbca2 100644 --- a/meta/4ed_build.cpp +++ b/meta/4ed_build.cpp @@ -424,7 +424,7 @@ build(u32 flags, u32 arch, char *code_path, char *code_file, char *out_path, cha internal void site_build(char *cdir, u32 flags){ { - systemf("%s -R %s", "build_metadata" BAT, cdir); + systemf("%s \"..%scode%s4coder_default_bindings.cpp\"", "build_metadata" BAT, SLASH, SLASH); } { diff --git a/project.4coder b/project.4coder index 26bf65e0..2a99f7f2 100644 --- a/project.4coder +++ b/project.4coder @@ -65,14 +65,6 @@ command_list = { .cmd = { {"..\\build\\generate_config_parser", .os = "win" }, {"../build/generate_config_parser" , .os = "linux"}, {"../build/generate_config_parser" , .os = "mac" }, }, }, - { .name = "build cpp preproc test", - .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, - .cmd = { {"pushd test_preproc & build.bat", .os = "win"}, - }, }, - { .name = "run cpp preproc test", - .out = "*run*", .footer_panel = false, .save_dirty_files = true, - .cmd = { {"pushd test_preproc & ..\\..\\build\\test_preproc test_1_src.cpp test_1_res.i", .os = "win"}, - }, }, }; fkey_command[1] = "build x64"; @@ -83,6 +75,3 @@ fkey_command[5] = "build metadata"; fkey_command[6] = "build config parser generator"; fkey_command[7] = "generate config parser"; fkey_command[12] = "package"; - -//fkey_command[1] = "build cpp preproc test"; -//fkey_command[2] = "run cpp preproc test"; diff --git a/test_preproc/build.bat b/test_preproc/build.bat deleted file mode 100644 index 3290f1d5..00000000 --- a/test_preproc/build.bat +++ /dev/null @@ -1,7 +0,0 @@ -@echo off - -set opts=-FC -GR- -EHa- -nologo -Zi -set code=%cd% -pushd ..\..\build -cl %opts% %code%\test_preproc_main.cpp -Fetest_preproc -popd diff --git a/test_preproc/test_1_res.i b/test_preproc/test_1_res.i deleted file mode 100644 index b9ebe683..00000000 --- a/test_preproc/test_1_res.i +++ /dev/null @@ -1,139 +0,0 @@ -#line 1 "test_1_src.cpp" - - - - - - -0; - - - - - - -1; - - - - - - - - - - -#line 26 "test_1_src.cpp" - -2; - -#line 30 "test_1_src.cpp" - - - - - - - - - - - - -3; - - - - - -#line 49 "test_1_src.cpp" - - - - - - - - - -#line 59 "test_1_src.cpp" - -4; - -#line 63 "test_1_src.cpp" - - - - - - -(5 + (0)); - - - -(5 + (4)); - - - -(5 + ((5 + (4)))); - - - - - - - - - -(((4 + (0))) + ((4 + (1))) + ((4 + (2)))); - - - - - - -(baz(4, 4, 4, 4)); - - - - - - -FOO; - - - - - - - - - -BAR; - - - - - - -FOO(0) + 20; - - - - - - - - - - - - - - - - -(a) + 2*(b) + (c)/2 +(d) + 2*(e) + (f)/2 +(g) + 2*(h) + (i)/2 +(j) + 2*(k) + (l)/2 +(m) + 2*(n) + (o)/2 +(p) + 2*(q) + (r)/2 +(s) + 2*(t) + (u)/2 + 0; - -#line 138 "test_1_src.cpp" - diff --git a/test_preproc/test_1_src.cpp b/test_preproc/test_1_src.cpp deleted file mode 100644 index 937f448e..00000000 --- a/test_preproc/test_1_src.cpp +++ /dev/null @@ -1,138 +0,0 @@ - -// F0 - -#if !defined(FOO) -#define FOO 0 - -FOO; - -// F1 - -#undef FOO -#define FOO 1 - -FOO; - -// F2 - -#undef FOO -#define FOO 2 - -#if !defined(FOO) - -2; - -#else - -FOO; - -#endif - -// F3 - -#undef FOO -#define BAR 3 - -#ifdef FOO - -FOO; - -#elif defined(BAR) - -BAR; - -#else - -3; - -#endif - -// F4 - -#define FOO 4 - -#if FOO < BAR - -BAR; - -#else - -FOO; - -#endif - -// F5 - -#undef BAR -#define BAR(a) (5 + (a)) - -BAR(0); - -// F9 - -BAR(FOO); - -// F14 - -BAR(BAR(FOO)); - -// F15 - -#undef BAR -#define BAR(a,b,c) ((a) + (b) + (c)) - -#undef FOO -#define FOO(n) (4 + (n)) - -BAR(FOO(0), FOO(1), FOO(2)); - -// F16 - -#undef BAR -#define BAR(a,...) (a(__VA_ARGS__)) - -BAR(baz, 4, 4, 4, 4); - -// F17 - -#undef FOO -#define FOO FOO - -FOO; - -// F18 - -#undef FOO -#define FOO BAR - -#undef BAR -#define BAR FOO - -BAR; - -// F20 - -#undef FOO -#define FOO(a) FOO(a) + 20 - -FOO(0); - -// L1 - -#undef FOO -#define FOO(x)\ -x(a,b,c)\ -x(d,e,f)\ -x(g,h,i)\ -x(j,k,l)\ -x(m,n,o)\ -x(p,q,r)\ -x(s,t,u) - -#undef BAR -#define BAR(x,y,z) (x) + 2*(y) + (z)/2 + - -FOO(BAR) 0; - -#endif - diff --git a/test_preproc/test_preproc_main.cpp b/test_preproc/test_preproc_main.cpp deleted file mode 100644 index 05215f30..00000000 --- a/test_preproc/test_preproc_main.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Mr. 4th Dimention - Allen Webster - * - * 10.06.2018 - * - * Test bed for developing 4coder_cpp_preprocessor - * - */ - -// TOP - -#include "../4ed_defines.h" -#include "../meta/4ed_meta_defines.h" - -#include "../4coder_file.h" - -#include "../4coder_lib/4coder_mem.h" -#include "../4coder_lib/4cpp_lexer.h" -#include "../4coder_cpp_preprocessor.h" - -#include "../4coder_cpp_preprocessor.cpp" - -void -print_usage(void){ - fprintf(stdout, "test_preproc src correct_result\n"); -} - -int main(int argc, char **argv){ - if (argc != 3){ - print_usage(); - exit(1); - } - - char *input_file_name = argv[1]; - char *compare_file_name = argv[2]; - - i32 memory_size = MB(512); - void *memory = malloc(memory_size); - Partition part = make_part(memory, memory_size); - String text = file_dump(&part, input_file_name); - if (text.str != 0){ - String compare_text = file_dump(&part, compare_file_name); - if (compare_text.str != 0){ - if (text.size != compare_text.size || - memcmp(text.str, compare_text.str, text.size) != 0){ - fprintf(stdout, "dif failed\n"); - } - } - else{ - fprintf(stdout, "could not open comparison file %s\n", compare_file_name); - } - } - else{ - fprintf(stdout, "could not open input %s\n", input_file_name); - } - return(0); -} - -// BOTTOM \ No newline at end of file