Allen Webster 2018-06-16 14:22:39 -07:00
commit 3f09a0e530
9 changed files with 184 additions and 668 deletions

View File

@ -605,7 +605,7 @@ CUSTOM_COMMAND_SIG(search);
CUSTOM_COMMAND_SIG(reverse_search); CUSTOM_COMMAND_SIG(reverse_search);
static void static void
isearch(Application_Links *app, int32_t start_reversed, String query_init){ isearch(Application_Links *app, bool32 start_reversed, String query_init, bool32 on_the_query_init_string){
View_Summary view = get_active_view(app, AccessProtected); View_Summary view = get_active_view(app, AccessProtected);
Buffer_Summary buffer = get_buffer(app, view.buffer_id, AccessProtected); Buffer_Summary buffer = get_buffer(app, view.buffer_id, AccessProtected);
if (!buffer.exists) return; if (!buffer.exists) return;
@ -626,7 +626,7 @@ isearch(Application_Links *app, int32_t start_reversed, String query_init){
char bar_string_space[256]; char bar_string_space[256];
bar.string = make_fixed_width_string(bar_string_space); bar.string = make_fixed_width_string(bar_string_space);
copy_ss(&bar.string, query_init); copy(&bar.string, query_init);
String isearch_str = make_lit_string("I-Search: "); String isearch_str = make_lit_string("I-Search: ");
String rsearch_str = make_lit_string("Reverse-I-Search: "); String rsearch_str = make_lit_string("Reverse-I-Search: ");
@ -650,7 +650,6 @@ isearch(Application_Links *app, int32_t start_reversed, String query_init){
bool32 backspace = false; bool32 backspace = false;
if (!first_step){ if (!first_step){
//in = get_user_input(app, EventOnAnyKey, EventOnEsc | EventOnButton);
in = get_user_input(app, EventOnAnyKey, EventOnEsc); in = get_user_input(app, EventOnAnyKey, EventOnEsc);
if (in.abort) break; if (in.abort) break;
@ -662,15 +661,32 @@ isearch(Application_Links *app, int32_t start_reversed, String query_init){
bool32 made_change = false; bool32 made_change = false;
if (in.key.keycode == '\n' || in.key.keycode == '\t'){ if (in.key.keycode == '\n' || in.key.keycode == '\t'){
break; if (in.key.modifiers[MDFR_CONTROL_INDEX]){
copy(&bar.string, previous_isearch_query);
}
else{
String previous_isearch_query_str = make_fixed_width_string(previous_isearch_query);
append(&previous_isearch_query_str, bar.string);
terminate_with_null(&previous_isearch_query_str);
break;
}
} }
else if (length != 0 && key_is_unmodified(&in.key)){ else if (length != 0 && key_is_unmodified(&in.key)){
append_ss(&bar.string, make_string(character, length)); append(&bar.string, make_string(character, length));
made_change = true; made_change = true;
} }
else if (in.key.keycode == key_back){ else if (in.key.keycode == key_back){
made_change = backspace_utf8(&bar.string); if (key_is_unmodified(&in.key)){
backspace = true; made_change = backspace_utf8(&bar.string);
backspace = true;
}
else if (in.key.modifiers[MDFR_CONTROL_INDEX]){
if (bar.string.size > 0){
made_change = true;
bar.string.size = 0;
backspace = true;
}
}
} }
if ((in.command.command == search) || in.key.keycode == key_page_down || in.key.keycode == key_down){ if ((in.command.command == search) || in.key.keycode == key_page_down || in.key.keycode == key_down){
@ -682,7 +698,7 @@ isearch(Application_Links *app, int32_t start_reversed, String query_init){
} }
} }
else{ else{
if (bar.string.size != 0){ if (query_init.size != 0 && on_the_query_init_string){
step_backward = true; step_backward = true;
} }
first_step = false; first_step = false;
@ -745,6 +761,9 @@ isearch(Application_Links *app, int32_t start_reversed, String query_init){
view_set_highlight(app, &view, 0, 0, false); view_set_highlight(app, &view, 0, 0, false);
if (in.abort){ if (in.abort){
String previous_isearch_query_str = make_fixed_width_string(previous_isearch_query);
append(&previous_isearch_query_str, bar.string);
terminate_with_null(&previous_isearch_query_str);
view_set_cursor(app, &view, seek_pos(first_pos), true); view_set_cursor(app, &view, seek_pos(first_pos), true);
return; return;
} }
@ -756,14 +775,14 @@ CUSTOM_COMMAND_SIG(search)
CUSTOM_DOC("Begins an incremental search down through the current buffer for a user specified string.") CUSTOM_DOC("Begins an incremental search down through the current buffer for a user specified string.")
{ {
String query = {0}; String query = {0};
isearch(app, false, query); isearch(app, false, query, false);
} }
CUSTOM_COMMAND_SIG(reverse_search) CUSTOM_COMMAND_SIG(reverse_search)
CUSTOM_DOC("Begins an incremental search up through the current buffer for a user specified string.") CUSTOM_DOC("Begins an incremental search up through the current buffer for a user specified string.")
{ {
String query = {0}; String query = {0};
isearch(app, true, query); isearch(app, true, query, false);
} }
CUSTOM_COMMAND_SIG(search_identifier) CUSTOM_COMMAND_SIG(search_identifier)
@ -774,7 +793,7 @@ CUSTOM_DOC("Begins an incremental search down through the current buffer for the
char space[256]; char space[256];
String query = read_identifier_at_pos(app, &buffer, view.cursor.pos, space, sizeof(space), 0); String query = read_identifier_at_pos(app, &buffer, view.cursor.pos, space, sizeof(space), 0);
isearch(app, false, query); isearch(app, false, query, true);
} }
CUSTOM_COMMAND_SIG(reverse_search_identifier) CUSTOM_COMMAND_SIG(reverse_search_identifier)
@ -785,7 +804,7 @@ CUSTOM_DOC("Begins an incremental search up through the current buffer for the w
char space[256]; char space[256];
String query = read_identifier_at_pos(app, &buffer, view.cursor.pos, space, sizeof(space), 0); String query = read_identifier_at_pos(app, &buffer, view.cursor.pos, space, sizeof(space), 0);
isearch(app, true, query); isearch(app, true, query, true);
} }
CUSTOM_COMMAND_SIG(replace_in_range) CUSTOM_COMMAND_SIG(replace_in_range)

View File

@ -45,4 +45,6 @@ static ID_Based_Jump_Location prev_location = {0};
static Config_Data global_config = {0}; static Config_Data global_config = {0};
static char previous_isearch_query[256] = {0};
// BOTTOM // BOTTOM

View File

@ -4,9 +4,6 @@
// TOP // TOP
#if !defined(FCODER_EXPERIMENTS_CPP)
#define FCODER_EXPERIMENTS_CPP
#include "4coder_default_include.cpp" #include "4coder_default_include.cpp"
#include "4coder_miblo_numbers.cpp" #include "4coder_miblo_numbers.cpp"
@ -740,7 +737,7 @@ replace_all_occurrences_parameters(Application_Links *app, General_Memory *gener
match.found_match; match.found_match;
match = search_next_match(app, &set, &iter)){ match = search_next_match(app, &set, &iter)){
Replace_Target *new_target= push_array(part, Replace_Target, 1); Replace_Target *new_target = push_array(part, Replace_Target, 1);
if (new_target != 0){ if (new_target != 0){
new_target->buffer_id = match.buffer.buffer_id; new_target->buffer_id = match.buffer.buffer_id;
new_target->start_pos = match.start; new_target->start_pos = match.start;
@ -758,10 +755,19 @@ replace_all_occurrences_parameters(Application_Links *app, General_Memory *gener
} }
// Use replacement list to do replacements // Use replacement list to do replacements
for (int32_t i = 0; i < target_count; ++i){ int32_t shift_per_replacement = new_string.size - target_string.size;
Replace_Target *target = &targets[i]; int32_t current_offset = 0;
Buffer_Summary buffer= get_buffer(app, target->buffer_id, AccessOpen); int32_t current_buffer_id = 0;
buffer_replace_range(app, &buffer, target->start_pos, target->start_pos + target_string.size, new_string.str, new_string.size); Replace_Target *target = targets;
for (int32_t i = 0; i < target_count; ++i, ++target){
if (target->buffer_id != current_buffer_id){
current_buffer_id = target->buffer_id;
current_offset = 0;
}
Buffer_Summary buffer = get_buffer(app, target->buffer_id, AccessOpen);
int32_t pos = target->start_pos + current_offset;
buffer_replace_range(app, &buffer, pos, pos + target_string.size, new_string.str, new_string.size);
current_offset += shift_per_replacement;
} }
end_temp_memory(temp); end_temp_memory(temp);
@ -842,7 +848,5 @@ get_bindings(void *data, int32_t size){
return(result); return(result);
} }
#endif
// BOTTOM // BOTTOM

View File

@ -1,577 +0,0 @@
#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 184
#if defined(CUSTOM_COMMAND_SIG)
#define PROC_LINKS(x,y) x
#else
#define PROC_LINKS(x,y) y
#endif
#if defined(CUSTOM_COMMAND_SIG)
CUSTOM_COMMAND_SIG(allow_mouse);
CUSTOM_COMMAND_SIG(auto_tab_line_at_cursor);
CUSTOM_COMMAND_SIG(auto_tab_range);
CUSTOM_COMMAND_SIG(auto_tab_whole_file);
CUSTOM_COMMAND_SIG(backspace_char);
CUSTOM_COMMAND_SIG(backspace_word);
CUSTOM_COMMAND_SIG(basic_change_active_panel);
CUSTOM_COMMAND_SIG(build_in_build_panel);
CUSTOM_COMMAND_SIG(build_search);
CUSTOM_COMMAND_SIG(center_view);
CUSTOM_COMMAND_SIG(change_active_panel);
CUSTOM_COMMAND_SIG(change_active_panel_backwards);
CUSTOM_COMMAND_SIG(change_to_build_panel);
CUSTOM_COMMAND_SIG(clean_all_lines);
CUSTOM_COMMAND_SIG(click_set_cursor);
CUSTOM_COMMAND_SIG(click_set_mark);
CUSTOM_COMMAND_SIG(close_all_code);
CUSTOM_COMMAND_SIG(close_build_panel);
CUSTOM_COMMAND_SIG(close_panel);
CUSTOM_COMMAND_SIG(copy);
CUSTOM_COMMAND_SIG(cursor_mark_swap);
CUSTOM_COMMAND_SIG(cut);
CUSTOM_COMMAND_SIG(decrease_face_size);
CUSTOM_COMMAND_SIG(decrease_line_wrap);
CUSTOM_COMMAND_SIG(delete_char);
CUSTOM_COMMAND_SIG(delete_current_scope);
CUSTOM_COMMAND_SIG(delete_file_query);
CUSTOM_COMMAND_SIG(delete_line);
CUSTOM_COMMAND_SIG(delete_range);
CUSTOM_COMMAND_SIG(delete_word);
CUSTOM_COMMAND_SIG(duplicate_line);
CUSTOM_COMMAND_SIG(eol_dosify);
CUSTOM_COMMAND_SIG(eol_nixify);
CUSTOM_COMMAND_SIG(execute_any_cli);
CUSTOM_COMMAND_SIG(execute_arbitrary_command);
CUSTOM_COMMAND_SIG(execute_previous_cli);
CUSTOM_COMMAND_SIG(exit_4coder);
CUSTOM_COMMAND_SIG(goto_beginning_of_file);
CUSTOM_COMMAND_SIG(goto_end_of_file);
CUSTOM_COMMAND_SIG(goto_first_jump_direct);
CUSTOM_COMMAND_SIG(goto_first_jump_same_panel_sticky);
CUSTOM_COMMAND_SIG(goto_first_jump_sticky);
CUSTOM_COMMAND_SIG(goto_jump_at_cursor_direct);
CUSTOM_COMMAND_SIG(goto_jump_at_cursor_same_panel_direct);
CUSTOM_COMMAND_SIG(goto_jump_at_cursor_same_panel_sticky);
CUSTOM_COMMAND_SIG(goto_jump_at_cursor_sticky);
CUSTOM_COMMAND_SIG(goto_line);
CUSTOM_COMMAND_SIG(goto_next_jump_direct);
CUSTOM_COMMAND_SIG(goto_next_jump_no_skips_direct);
CUSTOM_COMMAND_SIG(goto_next_jump_no_skips_sticky);
CUSTOM_COMMAND_SIG(goto_next_jump_sticky);
CUSTOM_COMMAND_SIG(goto_prev_jump_direct);
CUSTOM_COMMAND_SIG(goto_prev_jump_no_skips_direct);
CUSTOM_COMMAND_SIG(goto_prev_jump_no_skips_sticky);
CUSTOM_COMMAND_SIG(goto_prev_jump_sticky);
CUSTOM_COMMAND_SIG(hide_filebar);
CUSTOM_COMMAND_SIG(hide_scrollbar);
CUSTOM_COMMAND_SIG(highlight_next_scope_absolute);
CUSTOM_COMMAND_SIG(highlight_prev_scope_absolute);
CUSTOM_COMMAND_SIG(highlight_surrounding_scope);
CUSTOM_COMMAND_SIG(if0_off);
CUSTOM_COMMAND_SIG(increase_face_size);
CUSTOM_COMMAND_SIG(increase_line_wrap);
CUSTOM_COMMAND_SIG(interactive_kill_buffer);
CUSTOM_COMMAND_SIG(interactive_new);
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(left_adjust_view);
CUSTOM_COMMAND_SIG(list_all_functions_current_buffer);
CUSTOM_COMMAND_SIG(list_all_locations);
CUSTOM_COMMAND_SIG(list_all_locations_case_insensitive);
CUSTOM_COMMAND_SIG(list_all_locations_of_identifier);
CUSTOM_COMMAND_SIG(list_all_locations_of_identifier_case_insensitive);
CUSTOM_COMMAND_SIG(list_all_locations_of_selection);
CUSTOM_COMMAND_SIG(list_all_locations_of_selection_case_insensitive);
CUSTOM_COMMAND_SIG(list_all_locations_of_type_definition);
CUSTOM_COMMAND_SIG(list_all_locations_of_type_definition_of_identifier);
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(move_down);
CUSTOM_COMMAND_SIG(move_down_10);
CUSTOM_COMMAND_SIG(move_down_textual);
CUSTOM_COMMAND_SIG(move_left);
CUSTOM_COMMAND_SIG(move_line_down);
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(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);
CUSTOM_COMMAND_SIG(newline_or_goto_position_sticky);
CUSTOM_COMMAND_SIG(open_all_code);
CUSTOM_COMMAND_SIG(open_all_code_recursive);
CUSTOM_COMMAND_SIG(open_color_tweaker);
CUSTOM_COMMAND_SIG(open_file_in_quotes);
CUSTOM_COMMAND_SIG(open_in_other);
CUSTOM_COMMAND_SIG(open_long_braces);
CUSTOM_COMMAND_SIG(open_long_braces_break);
CUSTOM_COMMAND_SIG(open_long_braces_semicolon);
CUSTOM_COMMAND_SIG(open_matching_file_cpp);
CUSTOM_COMMAND_SIG(open_panel_hsplit);
CUSTOM_COMMAND_SIG(open_panel_vsplit);
CUSTOM_COMMAND_SIG(page_down);
CUSTOM_COMMAND_SIG(page_up);
CUSTOM_COMMAND_SIG(paste);
CUSTOM_COMMAND_SIG(paste_and_indent);
CUSTOM_COMMAND_SIG(paste_next);
CUSTOM_COMMAND_SIG(paste_next_and_indent);
CUSTOM_COMMAND_SIG(place_in_scope);
CUSTOM_COMMAND_SIG(project_fkey_command);
CUSTOM_COMMAND_SIG(project_go_to_root_directory);
CUSTOM_COMMAND_SIG(query_replace);
CUSTOM_COMMAND_SIG(query_replace_identifier);
CUSTOM_COMMAND_SIG(query_replace_selection);
CUSTOM_COMMAND_SIG(redo);
CUSTOM_COMMAND_SIG(remap_interactive);
CUSTOM_COMMAND_SIG(rename_file_query);
CUSTOM_COMMAND_SIG(reopen);
CUSTOM_COMMAND_SIG(replace_in_range);
CUSTOM_COMMAND_SIG(reverse_search);
CUSTOM_COMMAND_SIG(reverse_search_identifier);
CUSTOM_COMMAND_SIG(save);
CUSTOM_COMMAND_SIG(save_all_dirty_buffers);
CUSTOM_COMMAND_SIG(save_to_query);
CUSTOM_COMMAND_SIG(scope_absorb_down);
CUSTOM_COMMAND_SIG(search);
CUSTOM_COMMAND_SIG(search_identifier);
CUSTOM_COMMAND_SIG(seek_alphanumeric_left);
CUSTOM_COMMAND_SIG(seek_alphanumeric_or_camel_left);
CUSTOM_COMMAND_SIG(seek_alphanumeric_or_camel_right);
CUSTOM_COMMAND_SIG(seek_alphanumeric_right);
CUSTOM_COMMAND_SIG(seek_beginning_of_line);
CUSTOM_COMMAND_SIG(seek_beginning_of_textual_line);
CUSTOM_COMMAND_SIG(seek_end_of_line);
CUSTOM_COMMAND_SIG(seek_end_of_textual_line);
CUSTOM_COMMAND_SIG(seek_token_left);
CUSTOM_COMMAND_SIG(seek_token_right);
CUSTOM_COMMAND_SIG(seek_white_or_token_left);
CUSTOM_COMMAND_SIG(seek_white_or_token_right);
CUSTOM_COMMAND_SIG(seek_whitespace_down);
CUSTOM_COMMAND_SIG(seek_whitespace_down_end_line);
CUSTOM_COMMAND_SIG(seek_whitespace_left);
CUSTOM_COMMAND_SIG(seek_whitespace_right);
CUSTOM_COMMAND_SIG(seek_whitespace_up);
CUSTOM_COMMAND_SIG(seek_whitespace_up_end_line);
CUSTOM_COMMAND_SIG(select_all);
CUSTOM_COMMAND_SIG(set_bindings_choose);
CUSTOM_COMMAND_SIG(set_bindings_default);
CUSTOM_COMMAND_SIG(set_bindings_mac_default);
CUSTOM_COMMAND_SIG(set_mark);
CUSTOM_COMMAND_SIG(setup_build_bat);
CUSTOM_COMMAND_SIG(setup_build_bat_and_sh);
CUSTOM_COMMAND_SIG(setup_build_sh);
CUSTOM_COMMAND_SIG(setup_new_project);
CUSTOM_COMMAND_SIG(show_filebar);
CUSTOM_COMMAND_SIG(show_scrollbar);
CUSTOM_COMMAND_SIG(snipe_token_or_word);
CUSTOM_COMMAND_SIG(snipe_token_or_word_right);
CUSTOM_COMMAND_SIG(suppress_mouse);
CUSTOM_COMMAND_SIG(swap_buffers_between_panels);
CUSTOM_COMMAND_SIG(to_lowercase);
CUSTOM_COMMAND_SIG(to_uppercase);
CUSTOM_COMMAND_SIG(toggle_filebar);
CUSTOM_COMMAND_SIG(toggle_fullscreen);
CUSTOM_COMMAND_SIG(toggle_line_wrap);
CUSTOM_COMMAND_SIG(toggle_mouse);
CUSTOM_COMMAND_SIG(toggle_show_whitespace);
CUSTOM_COMMAND_SIG(toggle_virtual_whitespace);
CUSTOM_COMMAND_SIG(undo);
CUSTOM_COMMAND_SIG(view_buffer_other_panel);
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_hack);
CUSTOM_COMMAND_SIG(write_note);
CUSTOM_COMMAND_SIG(write_todo);
CUSTOM_COMMAND_SIG(write_underscore);
CUSTOM_COMMAND_SIG(write_zero_struct);
#endif
struct Command_Metadata{
PROC_LINKS(Custom_Command_Function, void) *proc;
char *name;
int32_t name_len;
char *description;
int32_t description_len;
char *source_name;
int32_t source_name_len;
int32_t line_number;
};
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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 14332 },
{ PROC_LINKS(auto_tab_line_at_cursor, 0), "auto_tab_line_at_cursor", 23, "Auto-indents the line on which the cursor sits.", 47, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17828 },
{ PROC_LINKS(auto_tab_range, 0), "auto_tab_range", 14, "Auto-indents the range between the cursor and the mark.", 55, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17839 },
{ PROC_LINKS(auto_tab_whole_file, 0), "auto_tab_whole_file", 19, "Audo-indents the entire current buffer.", 39, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17818 },
{ PROC_LINKS(backspace_char, 0), "backspace_char", 14, "Deletes the character to the left of the cursor.", 48, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15795 },
{ PROC_LINKS(backspace_word, 0), "backspace_word", 14, "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15704 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16161 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 20289 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 20255 },
{ PROC_LINKS(center_view, 0), "center_view", 11, "Centers the view vertically on the line on which the cursor sits.", 65, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15848 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 14274 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 14284 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 20311 },
{ PROC_LINKS(clean_all_lines, 0), "clean_all_lines", 15, "Removes trailing whitespace from all lines in the current buffer.", 65, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16096 },
{ PROC_LINKS(click_set_cursor, 0), "click_set_cursor", 16, "Sets the cursor position to the mouse position.", 47, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15902 },
{ PROC_LINKS(click_set_mark, 0), "click_set_mark", 14, "Sets the mark position to the mouse position.", 45, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15915 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 21320 },
{ PROC_LINKS(close_build_panel, 0), "close_build_panel", 17, "If the special build panel is open, closes it.", 46, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 20305 },
{ PROC_LINKS(close_panel, 0), "close_panel", 11, "Closes the currently active panel if it is not the only panel open.", 67, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16169 },
{ PROC_LINKS(copy, 0), "copy", 4, "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19969 },
{ PROC_LINKS(cursor_mark_swap, 0), "cursor_mark_swap", 16, "Swaps the position of the cursor and the mark.", 46, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15823 },
{ PROC_LINKS(cut, 0), "cut", 3, "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19978 },
{ PROC_LINKS(decrease_face_size, 0), "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16259 },
{ PROC_LINKS(decrease_line_wrap, 0), "decrease_line_wrap", 18, "Decrases the current buffer's width for line wrapping.", 54, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16236 },
{ PROC_LINKS(delete_char, 0), "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15777 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22578 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16721 },
{ PROC_LINKS(delete_line, 0), "delete_line", 11, "Delete the line the on which the cursor sits.", 45, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16971 },
{ PROC_LINKS(delete_range, 0), "delete_range", 12, "Deletes the text in the range between the cursor and the mark.", 62, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15835 },
{ PROC_LINKS(delete_word, 0), "delete_word", 11, "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15710 },
{ PROC_LINKS(duplicate_line, 0), "duplicate_line", 14, "Create a copy of the line on which the cursor sits.", 51, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16949 },
{ PROC_LINKS(eol_dosify, 0), "eol_dosify", 10, "Puts the buffer in DOS line ending mode.", 40, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16289 },
{ PROC_LINKS(eol_nixify, 0), "eol_nixify", 10, "Puts the buffer in NIX line ending mode.", 40, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16297 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 20108 },
{ PROC_LINKS(execute_arbitrary_command, 0), "execute_arbitrary_command", 25, "Execute a 'long form' command.", 30, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 23028 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 20092 },
{ PROC_LINKS(exit_4coder, 0), "exit_4coder", 11, "Attempts to close 4coder.", 25, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16305 },
{ PROC_LINKS(goto_beginning_of_file, 0), "goto_beginning_of_file", 22, "Sets the cursor to the beginning of the file.", 45, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15625 },
{ PROC_LINKS(goto_end_of_file, 0), "goto_end_of_file", 16, "Sets the cursor to the end of the file.", 39, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15632 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19294 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19874 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19856 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19218 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19239 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19706 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19678 },
{ PROC_LINKS(goto_line, 0), "goto_line", 9, "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16313 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19258 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19276 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19825 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19795 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19267 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19285 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19841 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19811 },
{ PROC_LINKS(hide_filebar, 0), "hide_filebar", 12, "Sets the current view to hide it's filebar.", 43, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16199 },
{ PROC_LINKS(hide_scrollbar, 0), "hide_scrollbar", 14, "Sets the current view to hide it's scrollbar.", 45, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16185 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22454 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22473 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22432 },
{ PROC_LINKS(if0_off, 0), "if0_off", 7, "Surround the range between the cursor and mark with an '#if 0' and an '#endif'", 78, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22984 },
{ PROC_LINKS(increase_face_size, 0), "increase_face_size", 18, "Increase the size of the face used by the current buffer.", 57, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16247 },
{ PROC_LINKS(increase_line_wrap, 0), "increase_line_wrap", 18, "Increases the current buffer's width for line wrapping.", 55, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16225 },
{ PROC_LINKS(interactive_kill_buffer, 0), "interactive_kill_buffer", 23, "Interactively kill an open buffer.", 34, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17177 },
{ PROC_LINKS(interactive_new, 0), "interactive_new", 15, "Interactively creates a new file.", 33, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17153 },
{ PROC_LINKS(interactive_open, 0), "interactive_open", 16, "Interactively opens a file.", 27, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17159 },
{ PROC_LINKS(interactive_open_or_new, 0), "interactive_open_or_new", 23, "Interactively opens or creates a new file.", 42, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17165 },
{ PROC_LINKS(interactive_switch_buffer, 0), "interactive_switch_buffer", 25, "Interactively switch to an open buffer.", 39, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17171 },
{ PROC_LINKS(kill_buffer, 0), "kill_buffer", 11, "Kills the current buffer.", 25, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17195 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15863 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22082 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 18600 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 18612 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 18624 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 18630 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 18636 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 18642 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 18648 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 18659 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 18606 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 18618 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 21343 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16829 },
{ PROC_LINKS(move_down, 0), "move_down", 9, "Moves the cursor down one line.", 31, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15978 },
{ PROC_LINKS(move_down_10, 0), "move_down_10", 12, "Moves the cursor down ten lines.", 32, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15990 },
{ PROC_LINKS(move_down_textual, 0), "move_down_textual", 17, "Moves down to the next line of actual text, regardless of line wrapping.", 72, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15996 },
{ PROC_LINKS(move_left, 0), "move_left", 9, "Moves the cursor one character to the left.", 43, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16027 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16926 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16862 },
{ PROC_LINKS(move_right, 0), "move_right", 10, "Moves the cursor one character to the right.", 44, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16036 },
{ PROC_LINKS(move_up, 0), "move_up", 7, "Moves the cursor up one line.", 29, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15972 },
{ PROC_LINKS(move_up_10, 0), "move_up_10", 10, "Moves the cursor up ten lines.", 30, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15984 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19311 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19326 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19912 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19897 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 21327 },
{ PROC_LINKS(open_all_code_recursive, 0), "open_all_code_recursive", 23, "Works as open_all_code but also runs in all subdirectories.", 59, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 21334 },
{ PROC_LINKS(open_color_tweaker, 0), "open_color_tweaker", 18, "Opens the 4coder colors and fonts selector menu.", 48, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17201 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17048 },
{ PROC_LINKS(open_in_other, 0), "open_in_other", 13, "Interactively opens a file in the other panel.", 46, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17209 },
{ PROC_LINKS(open_long_braces, 0), "open_long_braces", 16, "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22960 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22976 },
{ PROC_LINKS(open_long_braces_semicolon, 0), "open_long_braces_semicolon", 26, "At the cursor, insert a '{' and '};' separated by a blank line.", 63, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22968 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17084 },
{ PROC_LINKS(open_panel_hsplit, 0), "open_panel_hsplit", 17, "Create a new panel by horizontally splitting the active panel.", 62, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 14303 },
{ PROC_LINKS(open_panel_vsplit, 0), "open_panel_vsplit", 17, "Create a new panel by vertically splitting the active panel.", 60, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 14294 },
{ PROC_LINKS(page_down, 0), "page_down", 9, "Scrolls the view down one view height and moves the cursor down one view height.", 80, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16016 },
{ PROC_LINKS(page_up, 0), "page_up", 7, "Scrolls the view up one view height and moves the cursor up one view height.", 76, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16007 },
{ PROC_LINKS(paste, 0), "paste", 5, "At the cursor, insert the text at the top of the clipboard.", 59, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 19989 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 20071 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 20027 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 20078 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22572 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 21350 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 21375 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16621 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16641 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16659 },
{ PROC_LINKS(redo, 0), "redo", 4, "Advances forewards through the undo history.", 44, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17147 },
{ PROC_LINKS(remap_interactive, 0), "remap_interactive", 17, "Switch to a named key binding map.", 34, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 14352 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16787 },
{ PROC_LINKS(reopen, 0), "reopen", 6, "Reopen the current buffer from the hard drive.", 46, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17183 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16519 },
{ PROC_LINKS(reverse_search, 0), "reverse_search", 14, "Begins an incremental search up through the current buffer for a user specified string.", 87, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16490 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16508 },
{ PROC_LINKS(save, 0), "save", 4, "Saves the current buffer.", 25, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17189 },
{ PROC_LINKS(save_all_dirty_buffers, 0), "save_all_dirty_buffers", 22, "Saves all buffers marked dirty (showing the '*' indicator).", 59, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16686 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16747 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22829 },
{ PROC_LINKS(search, 0), "search", 6, "Begins an incremental search down through the current buffer for a user specified string.", 89, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16483 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16497 },
{ PROC_LINKS(seek_alphanumeric_left, 0), "seek_alphanumeric_left", 22, "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15684 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15696 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15690 },
{ PROC_LINKS(seek_alphanumeric_right, 0), "seek_alphanumeric_right", 23, "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15678 },
{ PROC_LINKS(seek_beginning_of_line, 0), "seek_beginning_of_line", 22, "Seeks the cursor to the beginning of the visual line.", 53, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15583 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15565 },
{ PROC_LINKS(seek_end_of_line, 0), "seek_end_of_line", 16, "Seeks the cursor to the end of the visual line.", 47, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15594 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15574 },
{ PROC_LINKS(seek_token_left, 0), "seek_token_left", 15, "Seek left for the next beginning of a token.", 44, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15660 },
{ PROC_LINKS(seek_token_right, 0), "seek_token_right", 16, "Seek right for the next end of a token.", 39, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15654 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15672 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15666 },
{ PROC_LINKS(seek_whitespace_down, 0), "seek_whitespace_down", 20, "Seeks the cursor down to the next blank line.", 45, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15556 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15615 },
{ PROC_LINKS(seek_whitespace_left, 0), "seek_whitespace_left", 20, "Seek left for the next boundary between whitespace and non-whitespace.", 70, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15648 },
{ PROC_LINKS(seek_whitespace_right, 0), "seek_whitespace_right", 21, "Seek right for the next boundary between whitespace and non-whitespace.", 71, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15642 },
{ PROC_LINKS(seek_whitespace_up, 0), "seek_whitespace_up", 18, "Seeks the cursor up to the next blank line.", 43, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15547 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15605 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16045 },
{ PROC_LINKS(set_bindings_choose, 0), "set_bindings_choose", 19, "Remap keybindings using the 'choose' mapping rule.", 50, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 24604 },
{ PROC_LINKS(set_bindings_default, 0), "set_bindings_default", 20, "Remap keybindings using the 'default' mapping rule.", 51, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 24618 },
{ PROC_LINKS(set_bindings_mac_default, 0), "set_bindings_mac_default", 24, "Remap keybindings using the 'mac-default' mapping rule.", 55, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 24632 },
{ PROC_LINKS(set_mark, 0), "set_mark", 8, "Sets the mark to the current position of the cursor.", 52, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15814 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 21760 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 21772 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 21766 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 21753 },
{ PROC_LINKS(show_filebar, 0), "show_filebar", 12, "Sets the current view to show it's filebar.", 43, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16192 },
{ PROC_LINKS(show_scrollbar, 0), "show_scrollbar", 14, "Sets the current view to show it's scrollbar.", 45, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16178 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15716 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15722 },
{ PROC_LINKS(suppress_mouse, 0), "suppress_mouse", 14, "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 14326 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17108 },
{ PROC_LINKS(to_lowercase, 0), "to_lowercase", 12, "Converts all ascii text in the range between the cursor and the mark to lowercase.", 82, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16076 },
{ PROC_LINKS(to_uppercase, 0), "to_uppercase", 12, "Converts all ascii text in the range between the cursor and the mark to uppercase.", 82, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16056 },
{ PROC_LINKS(toggle_filebar, 0), "toggle_filebar", 14, "Toggles the visibility status of the current view's filebar.", 60, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16206 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 14344 },
{ PROC_LINKS(toggle_line_wrap, 0), "toggle_line_wrap", 16, "Toggles the current buffer's line wrapping status.", 50, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16215 },
{ PROC_LINKS(toggle_mouse, 0), "toggle_mouse", 12, "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 14338 },
{ PROC_LINKS(toggle_show_whitespace, 0), "toggle_show_whitespace", 22, "Toggles the current buffer's whitespace visibility status.", 58, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16282 },
{ PROC_LINKS(toggle_virtual_whitespace, 0), "toggle_virtual_whitespace", 25, "Toggles the current buffer's virtual whitespace status.", 55, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 16271 },
{ PROC_LINKS(undo, 0), "undo", 4, "Advances backwards through the undo history.", 44, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17141 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17098 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 18679 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 17851 },
{ PROC_LINKS(write_block, 0), "write_block", 11, "At the cursor, insert a block comment.", 38, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 23008 },
{ PROC_LINKS(write_character, 0), "write_character", 15, "Inserts whatever character was used to trigger this command.", 60, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15761 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22996 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 23002 },
{ 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, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 22990 },
{ PROC_LINKS(write_underscore, 0), "write_underscore", 16, "Inserts an underscore.", 22, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 15770 },
{ PROC_LINKS(write_zero_struct, 0), "write_zero_struct", 17, "At the cursor, insert a ' = {0};'.", 34, "/home/allen/4ed/build/4coder_command_metadata.i", 47, 23014 },
};
static int32_t fcoder_metacmd_ID_allow_mouse = 0;
static int32_t fcoder_metacmd_ID_auto_tab_line_at_cursor = 1;
static int32_t fcoder_metacmd_ID_auto_tab_range = 2;
static int32_t fcoder_metacmd_ID_auto_tab_whole_file = 3;
static int32_t fcoder_metacmd_ID_backspace_char = 4;
static int32_t fcoder_metacmd_ID_backspace_word = 5;
static int32_t fcoder_metacmd_ID_basic_change_active_panel = 6;
static int32_t fcoder_metacmd_ID_build_in_build_panel = 7;
static int32_t fcoder_metacmd_ID_build_search = 8;
static int32_t fcoder_metacmd_ID_center_view = 9;
static int32_t fcoder_metacmd_ID_change_active_panel = 10;
static int32_t fcoder_metacmd_ID_change_active_panel_backwards = 11;
static int32_t fcoder_metacmd_ID_change_to_build_panel = 12;
static int32_t fcoder_metacmd_ID_clean_all_lines = 13;
static int32_t fcoder_metacmd_ID_click_set_cursor = 14;
static int32_t fcoder_metacmd_ID_click_set_mark = 15;
static int32_t fcoder_metacmd_ID_close_all_code = 16;
static int32_t fcoder_metacmd_ID_close_build_panel = 17;
static int32_t fcoder_metacmd_ID_close_panel = 18;
static int32_t fcoder_metacmd_ID_copy = 19;
static int32_t fcoder_metacmd_ID_cursor_mark_swap = 20;
static int32_t fcoder_metacmd_ID_cut = 21;
static int32_t fcoder_metacmd_ID_decrease_face_size = 22;
static int32_t fcoder_metacmd_ID_decrease_line_wrap = 23;
static int32_t fcoder_metacmd_ID_delete_char = 24;
static int32_t fcoder_metacmd_ID_delete_current_scope = 25;
static int32_t fcoder_metacmd_ID_delete_file_query = 26;
static int32_t fcoder_metacmd_ID_delete_line = 27;
static int32_t fcoder_metacmd_ID_delete_range = 28;
static int32_t fcoder_metacmd_ID_delete_word = 29;
static int32_t fcoder_metacmd_ID_duplicate_line = 30;
static int32_t fcoder_metacmd_ID_eol_dosify = 31;
static int32_t fcoder_metacmd_ID_eol_nixify = 32;
static int32_t fcoder_metacmd_ID_execute_any_cli = 33;
static int32_t fcoder_metacmd_ID_execute_arbitrary_command = 34;
static int32_t fcoder_metacmd_ID_execute_previous_cli = 35;
static int32_t fcoder_metacmd_ID_exit_4coder = 36;
static int32_t fcoder_metacmd_ID_goto_beginning_of_file = 37;
static int32_t fcoder_metacmd_ID_goto_end_of_file = 38;
static int32_t fcoder_metacmd_ID_goto_first_jump_direct = 39;
static int32_t fcoder_metacmd_ID_goto_first_jump_same_panel_sticky = 40;
static int32_t fcoder_metacmd_ID_goto_first_jump_sticky = 41;
static int32_t fcoder_metacmd_ID_goto_jump_at_cursor_direct = 42;
static int32_t fcoder_metacmd_ID_goto_jump_at_cursor_same_panel_direct = 43;
static int32_t fcoder_metacmd_ID_goto_jump_at_cursor_same_panel_sticky = 44;
static int32_t fcoder_metacmd_ID_goto_jump_at_cursor_sticky = 45;
static int32_t fcoder_metacmd_ID_goto_line = 46;
static int32_t fcoder_metacmd_ID_goto_next_jump_direct = 47;
static int32_t fcoder_metacmd_ID_goto_next_jump_no_skips_direct = 48;
static int32_t fcoder_metacmd_ID_goto_next_jump_no_skips_sticky = 49;
static int32_t fcoder_metacmd_ID_goto_next_jump_sticky = 50;
static int32_t fcoder_metacmd_ID_goto_prev_jump_direct = 51;
static int32_t fcoder_metacmd_ID_goto_prev_jump_no_skips_direct = 52;
static int32_t fcoder_metacmd_ID_goto_prev_jump_no_skips_sticky = 53;
static int32_t fcoder_metacmd_ID_goto_prev_jump_sticky = 54;
static int32_t fcoder_metacmd_ID_hide_filebar = 55;
static int32_t fcoder_metacmd_ID_hide_scrollbar = 56;
static int32_t fcoder_metacmd_ID_highlight_next_scope_absolute = 57;
static int32_t fcoder_metacmd_ID_highlight_prev_scope_absolute = 58;
static int32_t fcoder_metacmd_ID_highlight_surrounding_scope = 59;
static int32_t fcoder_metacmd_ID_if0_off = 60;
static int32_t fcoder_metacmd_ID_increase_face_size = 61;
static int32_t fcoder_metacmd_ID_increase_line_wrap = 62;
static int32_t fcoder_metacmd_ID_interactive_kill_buffer = 63;
static int32_t fcoder_metacmd_ID_interactive_new = 64;
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_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

View File

@ -315,6 +315,20 @@ parse_project__extract_pattern_array(Partition *arena, Config *parsed,
} }
} }
static Project_OS_Match_Level
parse_project__version_1__os_match(String str, String this_os_str){
if (match(str, this_os_str)){
return(ProjectOSMatchLevel_ActiveMatch);
}
else if (match(str, make_lit_string("all"))){
return(ProjectOSMatchLevel_ActiveMatch);
}
else if (match(str, make_lit_string("default"))){
return(ProjectOSMatchLevel_PassiveMatch);
}
return(ProjectOSMatchLevel_NoMatch);
}
static Project* static Project*
parse_project__config_data__version_1(Partition *arena, String root_dir, Config *parsed){ parse_project__config_data__version_1(Partition *arena, String root_dir, Config *parsed){
Project *project = push_array(arena, Project, 1); Project *project = push_array(arena, Project, 1);
@ -349,6 +363,9 @@ parse_project__config_data__version_1(Partition *arena, String root_dir, Config
{ {
Config_Compound *compound = 0; Config_Compound *compound = 0;
if (config_compound_var(parsed, "load_paths", 0, &compound)){ if (config_compound_var(parsed, "load_paths", 0, &compound)){
bool32 found_match = false;
Config_Compound *best_paths = 0;
for (int32_t i = 0;; ++i){ for (int32_t i = 0;; ++i){
Config_Iteration_Step_Result result = typed_array_iteration_step(parsed, compound, ConfigRValueType_Compound, i); Config_Iteration_Step_Result result = typed_array_iteration_step(parsed, compound, ConfigRValueType_Compound, i);
if (result.step == Iteration_Skip){ if (result.step == Iteration_Skip){
@ -359,43 +376,48 @@ parse_project__config_data__version_1(Partition *arena, String root_dir, Config
} }
Config_Compound *paths_option = result.get.compound; Config_Compound *paths_option = result.get.compound;
bool32 use_this_option = false;
Config_Compound *paths = 0; Config_Compound *paths = 0;
if (config_compound_compound_member(parsed, paths_option, "paths", 0, &paths)){ if (config_compound_compound_member(parsed, paths_option, "paths", 0, &paths)){
String str = {0}; String str = {0};
if (config_compound_string_member(parsed, paths_option, "os", 1, &str)){ if (config_compound_string_member(parsed, paths_option, "os", 1, &str)){
if (match(str, make_lit_string(PlatformName))){ Project_OS_Match_Level r = parse_project__version_1__os_match(str, make_lit_string(PlatformName));
use_this_option = true; if (r == ProjectOSMatchLevel_ActiveMatch){
found_match = true;
best_paths = paths;
break;
}
else if (r == ProjectOSMatchLevel_PassiveMatch){
if (!found_match){
found_match = true;
best_paths = paths;
}
} }
} }
} }
}
if (use_this_option){ if (found_match){
Config_Get_Result_List list = typed_compound_array_reference_list(arena, parsed, paths); Config_Get_Result_List list = typed_compound_array_reference_list(arena, parsed, best_paths);
project->load_path_array.paths = push_array(arena, Project_File_Load_Path, list.count); project->load_path_array.paths = push_array(arena, Project_File_Load_Path, list.count);
project->load_path_array.count = list.count; project->load_path_array.count = list.count;
Project_File_Load_Path *dst = project->load_path_array.paths; Project_File_Load_Path *dst = project->load_path_array.paths;
for (Config_Get_Result_Node *node = list.first; for (Config_Get_Result_Node *node = list.first;
node != 0; node != 0;
node = node->next, ++dst){ node = node->next, ++dst){
Config_Compound *src = node->result.compound; Config_Compound *src = node->result.compound;
memset(dst, 0, sizeof(*dst)); memset(dst, 0, sizeof(*dst));
dst->recursive = true; dst->recursive = true;
dst->relative = true; dst->relative = true;
String str = {0}; String str = {0};
if (config_compound_string_member(parsed, src, "path", 0, &str)){ if (config_compound_string_member(parsed, src, "path", 0, &str)){
dst->path = push_string_copy(arena, str); dst->path = push_string_copy(arena, str);
}
config_compound_bool_member(parsed, src, "recursive", 1, &dst->recursive);
config_compound_bool_member(parsed, src, "relative", 2, &dst->relative);
} }
break; config_compound_bool_member(parsed, src, "recursive", 1, &dst->recursive);
config_compound_bool_member(parsed, src, "relative", 2, &dst->relative);
} }
} }
} }
@ -459,23 +481,24 @@ parse_project__config_data__version_1(Partition *arena, String root_dir, Config
} }
Config_Compound *cmd_option = result.get.compound; Config_Compound *cmd_option = result.get.compound;
bool32 use_this_option = false;
String cmd = {0}; String cmd = {0};
if (config_compound_string_member(parsed, cmd_option, "cmd", 0, &cmd)){ if (config_compound_string_member(parsed, cmd_option, "cmd", 0, &cmd)){
String str = {0}; String str = {0};
if (config_compound_string_member(parsed, cmd_option, "os", 1, &str)){ if (config_compound_string_member(parsed, cmd_option, "os", 1, &str)){
if (match(str, make_lit_string(PlatformName))){ Project_OS_Match_Level r = parse_project__version_1__os_match(str, make_lit_string(PlatformName));
use_this_option = true; if (r == ProjectOSMatchLevel_ActiveMatch){
can_emit_command = true;
cmd_str = cmd;
break;
}
else if (r == ProjectOSMatchLevel_PassiveMatch){
if (!can_emit_command){
can_emit_command = true;
cmd_str = cmd;
}
} }
} }
} }
if (use_this_option){
can_emit_command = true;
cmd_str = cmd;
break;
}
} }
if (!can_emit_command){ if (!can_emit_command){
@ -938,21 +961,11 @@ set_current_project_from_nearest_project_file(Application_Links *app, Partition
} }
static void static void
exec_project_fkey_command(Application_Links *app, int32_t fkey_index){ exec_project_command(Application_Links *app, Project_Command *command){
if (!current_project.loaded){ if (command->cmd.size > 0){
return; bool32 footer_panel = command->footer_panel;
} bool32 save_dirty_files = command->save_dirty_files;
bool32 cursor_at_end = command->cursor_at_end;
int32_t command_index = current_project.fkey_commands[fkey_index];
if (command_index < 0 || command_index >= current_project.command_array.count){
return;
}
Project_Command *fkey = &current_project.command_array.commands[command_index];
if (fkey->cmd.size > 0){
bool32 footer_panel = fkey->footer_panel;
bool32 save_dirty_files = fkey->save_dirty_files;
bool32 cursor_at_end = fkey->cursor_at_end;
if (save_dirty_files){ if (save_dirty_files){
save_all_dirty_buffers(app); save_all_dirty_buffers(app);
@ -967,12 +980,12 @@ exec_project_fkey_command(Application_Links *app, int32_t fkey_index){
} }
bool32 set_fancy_font = false; bool32 set_fancy_font = false;
if (fkey->out.size > 0){ if (command->out.size > 0){
buffer_id = buffer_identifier(fkey->out.str, fkey->out.size); buffer_id = buffer_identifier(command->out.str, command->out.size);
if (footer_panel){ if (footer_panel){
view = get_or_open_build_panel(app); view = get_or_open_build_panel(app);
if (match(fkey->out, "*compilation*")){ if (match(command->out, "*compilation*")){
set_fancy_font = true; set_fancy_font = true;
} }
} }
@ -982,7 +995,7 @@ exec_project_fkey_command(Application_Links *app, int32_t fkey_index){
view_ptr = &view; view_ptr = &view;
memset(&prev_location, 0, sizeof(prev_location)); memset(&prev_location, 0, sizeof(prev_location));
lock_jump_buffer(fkey->out.str, fkey->out.size); lock_jump_buffer(command->out.str, command->out.size);
} }
else{ else{
// TODO(allen): fix the exec_system_command call so it can take a null buffer_id. // TODO(allen): fix the exec_system_command call so it can take a null buffer_id.
@ -990,7 +1003,7 @@ exec_project_fkey_command(Application_Links *app, int32_t fkey_index){
} }
String dir = current_project.dir; String dir = current_project.dir;
String cmd = fkey->cmd; String cmd = command->cmd;
exec_system_command(app, view_ptr, buffer_id, dir.str, dir.size, cmd.str, cmd.size, flags); exec_system_command(app, view_ptr, buffer_id, dir.str, dir.size, cmd.str, cmd.size, flags);
if (set_fancy_font){ if (set_fancy_font){
set_fancy_compilation_buffer_font(app); set_fancy_compilation_buffer_font(app);
@ -998,6 +1011,38 @@ exec_project_fkey_command(Application_Links *app, int32_t fkey_index){
} }
} }
static void
exec_project_fkey_command(Application_Links *app, int32_t fkey_index){
if (!current_project.loaded){
return;
}
int32_t command_index = current_project.fkey_commands[fkey_index];
if (command_index < 0 || command_index >= current_project.command_array.count){
return;
}
Project_Command *fkey = &current_project.command_array.commands[command_index];
exec_project_command(app, fkey);
}
static void
exec_project_command_by_name(Application_Links *app, String name){
if (!current_project.loaded){
return;
}
Project_Command *command = current_project.command_array.commands;
for (int32_t i = 0; i < current_project.command_array.count; ++i, ++command){
if (match(command->name, name)){
exec_project_command(app, command);
break;
}
}
}
static void
exec_project_command_by_name(Application_Links *app, char *name){
exec_project_command_by_name(app, make_string_slowly(name));
}
//////////////////////////////// ////////////////////////////////
CUSTOM_COMMAND_SIG(close_all_code) CUSTOM_COMMAND_SIG(close_all_code)

View File

@ -63,6 +63,13 @@ struct Project{
int32_t fkey_commands[16]; int32_t fkey_commands[16];
}; };
typedef int32_t Project_OS_Match_Level;
enum{
ProjectOSMatchLevel_NoMatch = 0,
ProjectOSMatchLevel_PassiveMatch = 1,
ProjectOSMatchLevel_ActiveMatch = 2,
};
struct Project_Parse_Result{ struct Project_Parse_Result{
Config *parsed; Config *parsed;
Project *project; Project *project;

View File

@ -496,7 +496,7 @@ initialize_generic_search_all_buffers(Application_Links *app, General_Memory *ge
// TODO(allen): Why on earth am I allocating these separately in this case? Upgrade to just use the string array on the stack! // TODO(allen): Why on earth am I allocating these separately in this case? Upgrade to just use the string array on the stack!
search_key_alloc(general, &key, sizes, count); search_key_alloc(general, &key, sizes, count);
for (int32_t i = 0; i < count; ++i){ for (int32_t i = 0; i < count; ++i){
copy_ss(&key.words[i], strings[i]); copy(&key.words[i], strings[i]);
} }
search_iter_init(iter, key); search_iter_init(iter, key);

View File

@ -360,8 +360,8 @@ gui_do_color_button(GUI_Target *target, GUI_id id, u32 fore, u32 back, String te
internal b32 internal b32
gui_begin_list(GUI_Target *target, GUI_id id, i32 list_i, gui_begin_list(GUI_Target *target, GUI_id id, i32 list_i,
b32 activate_item, b32 snap_into_view, GUI_Item_Update *update){ b32 activate_item, b32 snap_into_view, GUI_Item_Update *update){
b32 result = 0; b32 result = false;
b32 active = 0; b32 active = false;
i32 list_min = 0; i32 list_min = 0;
i32 list_max = target->list_max; i32 list_max = target->list_max;
@ -373,8 +373,8 @@ gui_begin_list(GUI_Target *target, GUI_id id, i32 list_i,
result = target->has_keys || target->has_list_index_position; result = target->has_keys || target->has_list_index_position;
if (gui_id_eq(id, target->active)){ if (gui_id_eq(id, target->active)){
active = 1; active = true;
result = 1; result = true;
} }
if (snap_into_view){ if (snap_into_view){
@ -388,18 +388,30 @@ gui_begin_list(GUI_Target *target, GUI_id id, i32 list_i,
if (list_max > 0){ if (list_max > 0){
if (list_i < list_min || list_i >= list_max){ if (list_i < list_min || list_i >= list_max){
result = 1; result = true;
} }
} }
if (result){ if (result){
gui_fill_update(update, target, h); gui_fill_update(update, target, h);
if (list_i < list_min){ if (list_i < list_min){
gui_update_adjustment(update, list_min); if (list_max > 0){
i32 range_size = list_max - list_min;
i32 roll_down = (list_min - list_i)%range_size;
if (roll_down == 0){
roll_down = range_size;
}
gui_update_adjustment(update, list_max - roll_down);
}
else{
gui_update_adjustment(update, 0);
}
} }
else if (list_i >= list_max){ else if (list_i >= list_max){
if (list_max > 0){ if (list_max > 0){
gui_update_adjustment(update, list_max - 1); i32 range_size = list_max - list_min;
i32 roll_over = (list_i - list_max)%range_size;
gui_update_adjustment(update, list_min + roll_over);
} }
else{ else{
gui_update_adjustment(update, 0); gui_update_adjustment(update, 0);

View File

@ -421,11 +421,14 @@ build(u32 flags, u32 arch, char *code_path, char *code_file, char *out_path, cha
// TODO(NAME): build metadata fully from C++ and eliminate build_metadata.bat and build_metadata.sh // TODO(NAME): build metadata fully from C++ and eliminate build_metadata.bat and build_metadata.sh
internal void
build_metadata(void){
systemf("%s \"..%scode%s4coder_default_bindings.cpp\"", "build_metadata" BAT, SLASH, SLASH);
}
internal void internal void
site_build(char *cdir, u32 flags){ site_build(char *cdir, u32 flags){
{ build_metadata();
systemf("%s \"..%scode%s4coder_default_bindings.cpp\"", "build_metadata" BAT, SLASH, SLASH);
}
{ {
char *file = fm_str("site/4ed_sitegen.cpp"); char *file = fm_str("site/4ed_sitegen.cpp");
@ -582,8 +585,8 @@ internal void
standard_build(char *cdir, u32 flags, u32 arch){ standard_build(char *cdir, u32 flags, u32 arch){
fsm_generator(cdir); fsm_generator(cdir);
metagen(cdir); metagen(cdir);
do_buildsuper(cdir, fm_str(custom_files[Custom_Default]), arch); //do_buildsuper(cdir, fm_str(custom_files[Custom_Default]), arch);
//do_buildsuper(cdir, fm_str(custom_files[Custom_Experiments]), arch); do_buildsuper(cdir, fm_str(custom_files[Custom_Experiments]), arch);
//do_buildsuper(cdir, fm_str(custom_files[Custom_Casey]), arch); //do_buildsuper(cdir, fm_str(custom_files[Custom_Casey]), arch);
//do_buildsuper(cdir, fm_str(custom_files[Custom_ChronalVim]), arch); //do_buildsuper(cdir, fm_str(custom_files[Custom_ChronalVim]), arch);
build_main(cdir, true, flags, arch); build_main(cdir, true, flags, arch);
@ -639,6 +642,7 @@ package(char *cdir){
char *fonts_dir = fm_str(dir, "/fonts"); char *fonts_dir = fm_str(dir, "/fonts");
char *zip_dir = fm_str(pack_dir, "/", tier, "_", arch_names[arch]); char *zip_dir = fm_str(pack_dir, "/", tier, "_", arch_names[arch]);
build_metadata();
build_main(cdir, false, flags, arch); build_main(cdir, false, flags, arch);
fm_clear_folder(par_dir); fm_clear_folder(par_dir);