From 3f72512332719c4bb542800a1c161391c501efae Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Wed, 9 Oct 2019 17:07:38 -0700 Subject: [PATCH] Partially finished rewriting events (STILL BROKEN, FILE TRANSFER) --- 4ed.cpp | 90 +-- 4ed.h | 51 +- 4ed_api_definition.cpp | 6 +- 4ed_api_implementation.cpp | 6 +- 4ed_app_models.h | 4 +- 4ed_app_target.cpp | 3 +- 4ed_command.cpp | 3 - 4ed_command.h | 1 - 4ed_generate_keycodes.cpp | 147 ++++ 4ed_system_api.cpp | 4 + custom/4coder_base_commands.cpp | 72 +- custom/4coder_default_hooks.cpp | 2 - custom/4coder_default_include.cpp | 3 +- custom/4coder_helper.cpp | 70 +- custom/4coder_keycode_extension.h | 26 + custom/4coder_keycodes.h | 102 --- custom/4coder_log_parser.cpp | 12 +- custom/4coder_project_commands.cpp | 4 +- custom/4coder_remapping_commands.cpp | 18 - custom/4coder_types.h | 89 ++- custom/generated/4coder_keycodes.h | 179 +++++ custom/generated/command_metadata.h | 874 +++++++++++----------- custom/generated/custom_api.h | 6 +- custom/generated/custom_api_master_list.h | 2 +- custom/generated/remapping.h | 719 +++++------------- custom/generated/system_api.cpp | 2 + custom/generated/system_api.h | 5 + custom/generated/system_api_master_list.h | 1 + platform_linux/linux_4ed.cpp | 1 + platform_mac/mac_4ed.cpp | 1 + platform_win32/win32_4ed.cpp | 112 +-- project.4coder | 6 +- 32 files changed, 1266 insertions(+), 1355 deletions(-) create mode 100644 4ed_generate_keycodes.cpp create mode 100644 custom/4coder_keycode_extension.h delete mode 100644 custom/4coder_keycodes.h create mode 100644 custom/generated/4coder_keycodes.h diff --git a/4ed.cpp b/4ed.cpp index 960bd729..18da4df8 100644 --- a/4ed.cpp +++ b/4ed.cpp @@ -114,21 +114,6 @@ DELTA_RULE_SIG(fallback_scroll_rule){ #define DEFAULT_MAP_SIZE 10 #define DEFAULT_UI_MAP_SIZE 32 -internal void -setup_ui_commands(Command_Map *commands, Cursor *cursor, i32 parent){ - map_init(commands, cursor, DEFAULT_UI_MAP_SIZE, parent); - // TODO(allen): do(fix the weird built-in-ness of the ui map) - u8 mdfr_array[] = {MDFR_NONE, MDFR_SHIFT, MDFR_CTRL, MDFR_SHIFT | MDFR_CTRL}; - for (i32 i = 0; i < 4; ++i){ - u8 mdfr = mdfr_array[i]; - map_add(commands, key_left , mdfr, (Custom_Command_Function*)0); - map_add(commands, key_right, mdfr, (Custom_Command_Function*)0); - map_add(commands, key_up , mdfr, (Custom_Command_Function*)0); - map_add(commands, key_down , mdfr, (Custom_Command_Function*)0); - map_add(commands, key_back , mdfr, (Custom_Command_Function*)0); - } -} - internal void setup_file_commands(Command_Map *commands, Cursor *cursor, i32 parent){ map_init(commands, cursor, DEFAULT_MAP_SIZE, parent); @@ -184,7 +169,7 @@ interpret_binding_buffer(Models *models, void *buffer, i32 size){ { i32 mapid = unit->map_begin.mapid; - if (mapid == mapid_ui || mapid == mapid_nomap){ + if (mapid == mapid_nomap){ break; } else if (mapid == mapid_global){ @@ -268,7 +253,7 @@ interpret_binding_buffer(Models *models, void *buffer, i32 size){ { i32 mapid = unit->map_begin.mapid; - if (mapid == mapid_ui || mapid == mapid_nomap){ + if (mapid == mapid_nomap){ map_ptr = 0; break; } @@ -421,7 +406,6 @@ interpret_binding_buffer(Models *models, void *buffer, i32 size){ if (!did_file){ setup_file_commands(&new_mapping.map_file, &local_cursor, mapid_global); } - setup_ui_commands(&new_mapping.map_ui, &local_cursor, mapid_global); } else{ // TODO(allen): do(Error report: bad binding units map.) @@ -563,9 +547,6 @@ init_command_line_settings(App_Settings *settings, Plat_Settings *plat_settings, case 'f': action = CLAct_FontSize; break; case 'h': action = CLAct_FontUseHinting; --i; break; - - case 'l': action = CLAct_LogStdout; --i; break; - case 'L': action = CLAct_LogFile; --i; break; } } else if (arg[0] != 0){ @@ -659,18 +640,6 @@ init_command_line_settings(App_Settings *settings, Plat_Settings *plat_settings, settings->use_hinting = plat_settings->use_hinting; action = CLAct_Nothing; }break; - - case CLAct_LogStdout: - { - plat_settings->use_log = LogTo_Stdout; - action = CLAct_Nothing; - }break; - - case CLAct_LogFile: - { - plat_settings->use_log = LogTo_LogFile; - action = CLAct_Nothing; - }break; } }break; @@ -700,26 +669,29 @@ models_init(Thread_Context *tctx){ internal u32 get_event_flags(Key_Code keycode){ u32 event_flags = 0; - if (keycode == key_esc){ + if (keycode == KeyCode_Escape){ event_flags |= EventOnEsc; event_flags |= EventOnAnyKey; } - else if (keycode == key_mouse_left || keycode == key_mouse_left_release){ + else if (keycode == KeyCodeExt_MouseLeft || + keycode == KeyCodeExt_MouseLeftRelease){ event_flags |= EventOnMouseLeftButton; } - else if (keycode == key_mouse_right || keycode == key_mouse_right_release){ + else if (keycode == KeyCodeExt_MouseRight || + keycode == KeyCodeExt_MouseRightRelease){ event_flags |= EventOnMouseRightButton; } - else if (keycode == key_mouse_wheel){ + else if (keycode == KeyCodeExt_MouseWheel){ event_flags |= EventOnMouseWheel; } - else if (keycode == key_mouse_move){ + else if (keycode == KeyCodeExt_MouseMove){ event_flags |= EventOnMouseMove; } - else if (keycode == key_animate){ + else if (keycode == KeyCodeExt_Animate){ event_flags |= EventOnAnimate; } - else if (keycode == key_click_activate_view || keycode == key_click_deactivate_view){ + else if (keycode == KeyCodeExt_ClickActivateView || + keycode == KeyCodeExt_ClickDeactivateView){ event_flags |= EventOnViewActivation; } else{ @@ -761,7 +733,7 @@ launch_command_via_event(Models *models, View *view, Key_Event_Data event){ models->command_coroutine = app_coroutine_run(models, Co_Command, models->command_coroutine, &cmd_in, models->command_coroutine_flags); models->prev_command = cmd_bind; - if (event.keycode != key_animate){ + if (event.keycode != KeyCodeExt_Animate){ models->animate_next_frame = true; } } @@ -930,8 +902,8 @@ App_Init_Sig(app_init){ // NOTE(allen): miscellaneous init hot_directory_init(arena, &models->hot_directory, current_directory); child_process_container_init(models->tctx->allocator, &models->child_processes); - models->user_up_key = key_up; - models->user_down_key = key_down; + models->user_up_key = KeyCode_Up; + models->user_down_key = KeyCode_Down; models->period_wakeup_timer = system_wake_up_timer_create(); } @@ -1021,39 +993,39 @@ App_Step_Sig(app_step){ models->input_filter(&input->mouse); } - Key_Event_Data mouse_event = {}; - block_copy(mouse_event.modifiers, input->keys.modifiers, sizeof(mouse_event.modifiers)); + + Key_Modifiers modifiers = system_get_modifiers(); if (input->mouse.press_l){ - mouse_event.keycode = key_mouse_left; + mouse_event.keycode = KeyCodeExt_MouseLeft; input->keys.keys[input->keys.count++] = mouse_event; } else if (input->mouse.release_l){ - mouse_event.keycode = key_mouse_left_release; + mouse_event.keycode = KeyCodeExt_MouseLeftRelease; input->keys.keys[input->keys.count++] = mouse_event; } if (input->mouse.press_r){ - mouse_event.keycode = key_mouse_right; + mouse_event.keycode = KeyCodeExt_MouseRight; input->keys.keys[input->keys.count++] = mouse_event; } else if (input->mouse.release_r){ - mouse_event.keycode = key_mouse_right_release; + mouse_event.keycode = KeyCodeExt_MouseRightRelease; input->keys.keys[input->keys.count++] = mouse_event; } if (input->mouse.wheel != 0){ - mouse_event.keycode = key_mouse_wheel; + mouse_event.keycode = KeyCodeExt_MouseWheel; input->keys.keys[input->keys.count++] = mouse_event; } if (input->mouse.p != models->prev_p){ b32 was_in_window = rect_contains_point(Ri32(0, 0, prev_dim.x, prev_dim.y), models->prev_p); b32 is_in_window = rect_contains_point(Ri32(0, 0, current_dim.x, current_dim.y), input->mouse.p); if (is_in_window || was_in_window){ - mouse_event.keycode = key_mouse_move; + mouse_event.keycode = KeyCodeExt_MouseMove; input->keys.keys[input->keys.count++] = mouse_event; } } if (models->animated_last_frame){ - mouse_event.keycode = key_animate; + mouse_event.keycode = KeyCodeExt_Animate; input->keys.keys[input->keys.count++] = mouse_event; } @@ -1119,10 +1091,10 @@ App_Step_Sig(app_step){ EventConsume_Command, }; i32 event_consume_mode = EventConsume_Command; - if (keycode == key_mouse_left && input->mouse.press_l && (divider_panel != 0)){ + if (keycode == KeyCodeExt_MouseLeft && input->mouse.press_l && (divider_panel != 0)){ event_consume_mode = EventConsume_BeginResize; } - else if (keycode == key_mouse_left && input->mouse.press_l && mouse_panel != 0 && mouse_panel != active_panel){ + else if (keycode == KeyCodeExt_MouseLeft && input->mouse.press_l && mouse_panel != 0 && mouse_panel != active_panel){ event_consume_mode = EventConsume_ClickChangeView; } @@ -1141,7 +1113,7 @@ App_Step_Sig(app_step){ } // NOTE(allen): run deactivate command - launch_command_via_keycode(models, view, key_click_deactivate_view); + launch_command_via_keycode(models, view, KeyCodeExt_ClickDeactivateView); // NOTE(allen): kill coroutine if we have one (again because we just launched a command) if (models->command_coroutine != 0){ @@ -1154,7 +1126,7 @@ App_Step_Sig(app_step){ view = active_panel->view; // NOTE(allen): run activate command - launch_command_via_keycode(models, view, key_click_activate_view); + launch_command_via_keycode(models, view, KeyCodeExt_ClickActivateView); }break; case EventConsume_Command: @@ -1178,7 +1150,7 @@ App_Step_Sig(app_step){ user_in.abort = ((abort_flags & event_flags) != 0); models->command_coroutine = app_coroutine_run(models, Co_Command, command_coroutine, &user_in, models->command_coroutine_flags); - if (user_in.key.keycode != key_animate){ + if (user_in.key.keycode != KeyCodeExt_Animate){ models->animate_next_frame = true; } @@ -1200,10 +1172,10 @@ App_Step_Sig(app_step){ { Key_Code keycode = key_ptr->keycode; u32 event_flags = get_event_flags(keycode); - if (event_flags & EventOnAnyKey || keycode == key_mouse_left_release){ + if (event_flags & EventOnAnyKey || keycode == KeyCodeExt_MouseLeftRelease){ models->state = APP_STATE_EDIT; } - else if (keycode == key_mouse_move){ + else if (keycode == KeyCodeExt_MouseMove){ if (input->mouse.l){ Panel *split = models->resizing_intermediate_panel; Range limits = layout_get_limiting_range_on_split(layout, split); diff --git a/4ed.h b/4ed.h index e5532c68..ba3747db 100644 --- a/4ed.h +++ b/4ed.h @@ -14,36 +14,11 @@ #define MAX_VIEWS 16 -// TODO(allen): // TODO(allen): // TODO(allen): // TODO(allen): // TODO(allen): -// TODO(allen): // TODO(allen): // TODO(allen): // TODO(allen): // TODO(allen): -// TODO(allen): // TODO(allen): // TODO(allen): // TODO(allen): // TODO(allen): -// TODO(allen): // TODO(allen): // TODO(allen): // TODO(allen): // TODO(allen): -// TODO(allen): // TODO(allen): // TODO(allen): // TODO(allen): // TODO(allen): -// TODO(allen): Fix this nonsense -#define KEY_INPUT_BUFFER_SIZE 8 -#define KEY_EXTRA_SIZE 5 - -struct Key_Input_Data{ - Key_Event_Data keys[KEY_INPUT_BUFFER_SIZE + KEY_EXTRA_SIZE]; - i32 count; - b8 modifiers[MDFR_INDEX_COUNT]; -}; - -typedef u8 Log_To_Type; -enum{ - LogTo_Nothing, - LogTo_Stdout, - LogTo_LogFile, - LogTo_COUNT -}; - struct Plat_Settings{ char *custom_dll; b8 custom_dll_is_strict; b8 fullscreen_window; - u8 use_log; - i32 window_w; i32 window_h; i32 window_x; @@ -57,13 +32,13 @@ struct Plat_Settings{ #define App_Read_Command_Line_Sig(name) \ void *name(Thread_Context *tctx,\ - String_Const_u8 current_directory,\ - Plat_Settings *plat_settings,\ - char ***files, \ - i32 **file_count,\ - i32 argc, \ - char **argv) - +String_Const_u8 current_directory,\ +Plat_Settings *plat_settings,\ +char ***files, \ +i32 **file_count,\ +i32 argc, \ +char **argv) + typedef App_Read_Command_Line_Sig(App_Read_Command_Line); struct Custom_API{ @@ -74,11 +49,11 @@ struct Custom_API{ #define App_Init_Sig(name) \ void name(Render_Target *target, \ - void *base_ptr, \ - String_Const_u8 clipboard,\ - String_Const_u8 current_directory,\ - Custom_API api) - +void *base_ptr, \ +String_Const_u8 clipboard,\ +String_Const_u8 current_directory,\ +Custom_API api) + typedef App_Init_Sig(App_Init); #include "4ed_cursor_codes.h" @@ -95,8 +70,8 @@ struct Application_Step_Result{ struct Application_Step_Input{ b32 first_step; f32 dt; - Key_Input_Data keys; Mouse_State mouse; + Input_List inputs; String_Const_u8 clipboard; b32 clipboard_changed; b32 trying_to_kill; diff --git a/4ed_api_definition.cpp b/4ed_api_definition.cpp index 40132a89..9ff595c0 100644 --- a/4ed_api_definition.cpp +++ b/4ed_api_definition.cpp @@ -330,17 +330,17 @@ api_definition_generate_api_includes(Arena *arena, API_Definition *api, Generate string_expand(path_to_self), string_expand(root), string_expand(api->name)); - + fname_h = push_u8_stringf(arena, "%.*s%.*s%.*s_api.h", string_expand(path_to_self), string_expand(root), string_expand(api->name)); - + fname_cpp = push_u8_stringf(arena, "%.*s%.*s%.*s_api.cpp", string_expand(path_to_self), string_expand(root), string_expand(api->name)); - + FILE *out_file_ml = fopen((char*)fname_ml.str, "wb"); if (out_file_ml == 0){ printf("could not open output file: '%s'\n", fname_ml.str); diff --git a/4ed_api_implementation.cpp b/4ed_api_implementation.cpp index d3c19798..e67f097d 100644 --- a/4ed_api_implementation.cpp +++ b/4ed_api_implementation.cpp @@ -2104,15 +2104,15 @@ get_command_input(Application_Links *app) { Models *models = (Models*)app->cmd_context; User_Input result = {}; - result.key = models->key; + result.event = models->event; return(result); } api(custom) function void -set_command_input(Application_Links *app, Key_Event_Data key_data) +set_command_input(Application_Links *app, Input_Event *event) { Models *models = (Models*)app->cmd_context; - models->key = key_data; + models->event = *event; } api(custom) function Mouse_State diff --git a/4ed_app_models.h b/4ed_app_models.h index ed2c00ec..11ec4eb3 100644 --- a/4ed_app_models.h +++ b/4ed_app_models.h @@ -123,7 +123,7 @@ struct Models{ // Event Context Application_Step_Input *input; - Key_Event_Data key; + Input_Event event; Render_Target *target; b32 in_render_mode; @@ -188,8 +188,6 @@ enum Command_Line_Action{ CLAct_WindowFullscreen, CLAct_FontSize, CLAct_FontUseHinting, - CLAct_LogStdout, - CLAct_LogFile, // CLAct_COUNT, }; diff --git a/4ed_app_target.cpp b/4ed_app_target.cpp index adfd167b..60a68004 100644 --- a/4ed_app_target.cpp +++ b/4ed_app_target.cpp @@ -13,7 +13,8 @@ #include "4coder_base_types.h" #include "4coder_version.h" -#include "4coder_keycodes.h" +#include "generated/4coder_keycodes.h" +#include "4coder_keycode_extension.h" #include "4coder_default_colors.h" #include "4coder_types.h" #define STATIC_LINK_API diff --git a/4ed_command.cpp b/4ed_command.cpp index 2289f6d6..f14e010a 100644 --- a/4ed_command.cpp +++ b/4ed_command.cpp @@ -60,9 +60,6 @@ get_map_base(Mapping *mapping, i32 mapid, b32 add){ else if (mapid == mapid_file){ map = &mapping->map_file; } - else if (mapid == mapid_ui){ - map = &mapping->map_ui; - } return(map); } diff --git a/4ed_command.h b/4ed_command.h index 95b131a8..7c998a7b 100644 --- a/4ed_command.h +++ b/4ed_command.h @@ -31,7 +31,6 @@ struct Mapping{ Command_Map map_top; Command_Map map_file; - Command_Map map_ui; i32 *map_id_table; Command_Map *user_maps; diff --git a/4ed_generate_keycodes.cpp b/4ed_generate_keycodes.cpp new file mode 100644 index 00000000..0744f588 --- /dev/null +++ b/4ed_generate_keycodes.cpp @@ -0,0 +1,147 @@ +/* + * Mr. 4th Dimention - Allen Webster + * + * 09.10.2019 + * + * Primary list for all key codes. + * + */ + +// TOP + +#include "4coder_base_types.h" + +#include "4coder_base_types.cpp" +#include "4coder_stringf.cpp" +#include "4coder_malloc_allocator.cpp" + +#include + +//////////////////////////////// + +struct Key{ + Key *next; + String_Const_u8 name; +}; + +struct Key_List{ + Key *first; + Key *last; + i32 count; +}; + +//////////////////////////////// + +function void +generate_keycodes(Arena *scratch, Key_List *list, FILE *out){ + fprintf(out, "enum{\n"); + i32 counter = 1; + for (Key *key = list->first; + key != 0; + key = key->next){ + fprintf(out, "KeyCode_%.*s = %d,\n", string_expand(key->name), counter); + counter += 1; + } + fprintf(out, "KeyCode_COUNT = %d,\n", counter); + fprintf(out, "};\n"); + + fprintf(out, "global char* key_code_name[KeyCode_COUNT] = {\n"); + fprintf(out, "\"None\""); + for (Key *key = list->first; + key != 0; + key = key->next){ + fprintf(out, "\"%.*s\",\n", string_expand(key->name)); + counter += 1; + } + fprintf(out, "};\n"); +} + +//////////////////////////////// + +function Key* +add_key(Arena *arena, Key_List *list, String_Const_u8 name){ + Key *key = push_array(arena, Key, 1); + sll_queue_push(list->first, list->last, key); + list->count; + key->name = push_string_copy(arena, name); + return(key); +} + +function Key_List +make_key_list(Arena *arena){ + Key_List list = {}; + for (u32 i = 'A'; i <= 'Z'; i += 1){ + u8 c = (u8)i; + add_key(arena, &list, SCu8(&c, 1)); + } + for (u32 i = '0'; i <= '9'; i += 1){ + u8 c = (u8)i; + add_key(arena, &list, SCu8(&c, 1)); + } + add_key(arena, &list, string_u8_litexpr("Space")); + add_key(arena, &list, string_u8_litexpr("Tick")); + add_key(arena, &list, string_u8_litexpr("Minus")); + add_key(arena, &list, string_u8_litexpr("Equal")); + add_key(arena, &list, string_u8_litexpr("LeftBracket")); + add_key(arena, &list, string_u8_litexpr("RightBracket")); + add_key(arena, &list, string_u8_litexpr("Semicolon")); + add_key(arena, &list, string_u8_litexpr("Quote")); + add_key(arena, &list, string_u8_litexpr("Comma")); + add_key(arena, &list, string_u8_litexpr("Period")); + add_key(arena, &list, string_u8_litexpr("ForwardSlash")); + add_key(arena, &list, string_u8_litexpr("BackwardSlash")); + add_key(arena, &list, string_u8_litexpr("Tab")); + add_key(arena, &list, string_u8_litexpr("Escape")); + add_key(arena, &list, string_u8_litexpr("Pause")); + add_key(arena, &list, string_u8_litexpr("Up")); + add_key(arena, &list, string_u8_litexpr("Down")); + add_key(arena, &list, string_u8_litexpr("Left")); + add_key(arena, &list, string_u8_litexpr("Right")); + add_key(arena, &list, string_u8_litexpr("Backspace")); + add_key(arena, &list, string_u8_litexpr("Return")); + add_key(arena, &list, string_u8_litexpr("Delete")); + add_key(arena, &list, string_u8_litexpr("Insert")); + add_key(arena, &list, string_u8_litexpr("Home")); + add_key(arena, &list, string_u8_litexpr("End")); + add_key(arena, &list, string_u8_litexpr("PageUp")); + add_key(arena, &list, string_u8_litexpr("PageDown")); + add_key(arena, &list, string_u8_litexpr("CapsLock")); + add_key(arena, &list, string_u8_litexpr("NumLock")); + add_key(arena, &list, string_u8_litexpr("ScrollLock")); + add_key(arena, &list, string_u8_litexpr("Menu")); + add_key(arena, &list, string_u8_litexpr("Shift")); + add_key(arena, &list, string_u8_litexpr("Control")); + add_key(arena, &list, string_u8_litexpr("Alt")); + add_key(arena, &list, string_u8_litexpr("Command")); + for (u32 i = 1; i <= 16; i += 1){ + add_key(arena, &list, push_u8_stringf(arena, "F%d", i)); + } + return(list); +} + +//////////////////////////////// + +int +main(void){ + Arena arena = make_arena_malloc(); + + Key_List key_list = make_key_list(&arena); + + String_Const_u8 path_to_self = string_u8_litexpr(__FILE__); + path_to_self = string_remove_last_folder(path_to_self); + String_Const_u8 file_name = + push_u8_stringf(&arena, "%.*scustom/generated/4coder_keycodes.h", + string_expand(path_to_self)); + + FILE *out = fopen((char*)file_name.str, "wb"); + if (out == 0){ + printf("could not open output file '%s'\n", file_name.str); + exit(1); + } + + generate_keycodes(&arena, &key_list, out); + fclose(out); + return(0); +} + +// BOTTOM diff --git a/4ed_system_api.cpp b/4ed_system_api.cpp index 33167f7e..93729150 100644 --- a/4ed_system_api.cpp +++ b/4ed_system_api.cpp @@ -249,6 +249,10 @@ define_api(Arena *arena){ API_Call *call = api_call(arena, api, "is_fullscreen", "b32"); } + { + API_Call *call = api_call(arena, api, "get_keyboard_modifiers", "Key_Modifiers"); + } + return(api); } diff --git a/custom/4coder_base_commands.cpp b/custom/4coder_base_commands.cpp index d81d1118..fcf72290 100644 --- a/custom/4coder_base_commands.cpp +++ b/custom/4coder_base_commands.cpp @@ -6,8 +6,8 @@ moving the cursor, which work even without the default 4coder framework. // TOP function void -write_character_parameter(Application_Links *app, u8 *character, u32 length){ - if (length != 0){ +write_character_parameter(Application_Links *app, String_Const_u8 insert){ + if (insert.str != 0 && insert.size > 0){ View_ID view = get_active_view(app, AccessOpen); if_view_has_highlighted_range_delete_range(app, view); @@ -19,7 +19,7 @@ write_character_parameter(Application_Links *app, u8 *character, u32 length){ // NOTE(allen): consecutive inserts merge logic History_Record_Index first_index = buffer_history_get_current_state_index(app, buffer); b32 do_merge = false; - if (character[0] != '\n'){ + if (insert.str[0] != '\n'){ Record_Info record = get_single_record(app, buffer, first_index); if (record.error == RecordError_NoError && record.kind == RecordKind_Single){ String_Const_u8 string = record.single.string_forward; @@ -27,10 +27,11 @@ write_character_parameter(Application_Links *app, u8 *character, u32 length){ if (last_end == pos && string.size > 0){ char c = string.str[string.size - 1]; if (c != '\n'){ - if (character_is_whitespace(character[0]) && character_is_whitespace(c)){ + if (character_is_whitespace(insert.str[0]) && + character_is_whitespace(c)){ do_merge = true; } - else if (character_is_alpha_numeric(character[0]) && character_is_alpha_numeric(c)){ + else if (character_is_alpha_numeric(insert.str[0]) && character_is_alpha_numeric(c)){ do_merge = true; } } @@ -39,7 +40,7 @@ write_character_parameter(Application_Links *app, u8 *character, u32 length){ } // NOTE(allen): perform the edit - b32 edit_success = buffer_replace_range(app, buffer, Ii64(pos), SCu8(character, length)); + b32 edit_success = buffer_replace_range(app, buffer, Ii64(pos), insert); // NOTE(allen): finish merging records if necessary if (do_merge){ @@ -49,25 +50,29 @@ write_character_parameter(Application_Links *app, u8 *character, u32 length){ // NOTE(allen): finish updating the cursor if (edit_success){ - view_set_cursor_and_preferred_x(app, view, seek_pos(pos + length)); + view_set_cursor_and_preferred_x(app, view, seek_pos(pos + insert.size)); } } } -CUSTOM_COMMAND_SIG(write_character) +CUSTOM_COMMAND_SIG(write_text_input) CUSTOM_DOC("Inserts whatever character was used to trigger this command.") { User_Input in = get_command_input(app); - u8 character[4]; - u32 length = to_writable_character(in, character); - write_character_parameter(app, character, length); + String_Const_u8 insert = to_writable(&in); + write_character_parameter(app, insert); +} + +CUSTOM_COMMAND_SIG(write_space) +CUSTOM_DOC("Inserts an underscore.") +{ + write_character_parameter(app, string_u8_litexpr(" ")); } CUSTOM_COMMAND_SIG(write_underscore) CUSTOM_DOC("Inserts an underscore.") { - u8 character = '_'; - write_character_parameter(app, &character, 1); + write_character_parameter(app, string_u8_litexpr("_")); } CUSTOM_COMMAND_SIG(delete_char) @@ -844,11 +849,12 @@ isearch(Application_Links *app, Scan_Direction start_scan, String_Const_u8 query break; } - u8 character[4]; - u32 length = to_writable_character(in, character); + String_Const_u8 string = to_writable(&in); + b32 string_change = false; - if (in.key.keycode == '\n' || in.key.keycode == '\t'){ + if (input_match_key_code(&in, KeyCode_Return) || + input_match_key_code(&in, KeyCode_Tab)){ if (in.key.modifiers[MDFR_CONTROL_INDEX]){ bar.string.size = cstring_length(previous_isearch_query); block_copy(bar.string.str, previous_isearch_query, bar.string.size); @@ -867,7 +873,7 @@ isearch(Application_Links *app, Scan_Direction start_scan, String_Const_u8 query bar.string = string.string; string_change = true; } - else if (in.key.keycode == key_back){ + else if (in.key.keycode == KeyCode_Backspace){ if (key_is_unmodified(&in.key)){ umem old_bar_string_size = bar.string.size; bar.string = backspace_utf8(bar.string); @@ -885,14 +891,14 @@ isearch(Application_Links *app, Scan_Direction start_scan, String_Const_u8 query Scan_Direction change_scan = scan; if (!string_change){ if (in.command.command == search || - in.key.keycode == key_page_down || - in.key.keycode == key_down){ + in.key.keycode == KeyCode_PageDown || + in.key.keycode == KeyCode_Down){ change_scan = Scan_Forward; do_scan_action = true; } if (in.command.command == reverse_search || - in.key.keycode == key_page_up || - in.key.keycode == key_up){ + in.key.keycode == KeyCode_PageUp || + in.key.keycode == KeyCode_Up){ change_scan = Scan_Backward; do_scan_action = true; } @@ -1087,7 +1093,9 @@ query_replace_base(Application_Links *app, View_ID view, Buffer_ID buffer_id, i6 isearch__update_highlight(app, view, match); in = get_user_input(app, EventOnAnyKey, EventOnMouseLeftButton|EventOnMouseRightButton); - if (in.abort || in.key.keycode == key_esc || !key_is_unmodified(&in.key)) break; + if (in.abort || + in.key.keycode == KeyCode_Escape || + !key_is_unmodified(&in.key)) break; if (in.key.character == 'y' || in.key.character == 'Y' || in.key.character == '\n' || in.key.character == '\t'){ @@ -1254,17 +1262,17 @@ CUSTOM_DOC("Deletes the file of the current buffer if 4coder has the appropriate for (;!cancelled;){ User_Input in = get_user_input(app, EventOnAnyKey, 0); switch (in.key.keycode){ - case 'Y': + case KeyCode_Y: { delete_file_base(app, file_name, buffer); cancelled = true; }break; - case key_shift: - case key_ctrl: - case key_alt: - case key_cmnd: - case key_caps: + case KeyCode_Shift: + case KeyCode_Control: + case KeyCode_Alt: + case KeyCode_Command: + case KeyCode_CapsLock: {}break; default: @@ -1702,23 +1710,23 @@ multi_paste_interactive_up_down(Application_Links *app, i32 paste_count, i32 cli if (in.abort) break; b32 did_modify = false; - if (in.key.keycode == key_up){ + if (in.key.keycode == KeyCode_Up){ if (paste_count > 1){ --paste_count; did_modify = true; } } - else if (in.key.keycode == key_down){ + else if (in.key.keycode == KeyCode_Down){ if (paste_count < clip_count){ ++paste_count; did_modify = true; } } - else if (in.key.keycode == 'r' || in.key.keycode == 'R'){ + else if (in.key.keycode == KeyCode_R){ old_to_new = !old_to_new; did_modify = true; } - else if (in.key.keycode == '\n'){ + else if (in.key.keycode == KeyCode_Return){ break; } diff --git a/custom/4coder_default_hooks.cpp b/custom/4coder_default_hooks.cpp index 8b5bb5f7..110fe8c9 100644 --- a/custom/4coder_default_hooks.cpp +++ b/custom/4coder_default_hooks.cpp @@ -6,10 +6,8 @@ CUSTOM_COMMAND_SIG(set_bindings_choose); CUSTOM_COMMAND_SIG(set_bindings_default); -CUSTOM_COMMAND_SIG(set_bindings_mac_default); global Named_Mapping named_maps_values[] = { - {string_u8_litexpr("mac-default") , set_bindings_mac_default }, {string_u8_litexpr("choose") , set_bindings_choose }, {string_u8_litexpr("default") , set_bindings_default }, }; diff --git a/custom/4coder_default_include.cpp b/custom/4coder_default_include.cpp index bd07b8d1..4fe92e8f 100644 --- a/custom/4coder_default_include.cpp +++ b/custom/4coder_default_include.cpp @@ -9,7 +9,8 @@ #include "4coder_base_types.h" #include "4coder_version.h" -#include "4coder_keycodes.h" +#include "generated/4coder_keycodes.h" +#include "4coder_keycode_extension.h" #include "4coder_default_colors.h" #include "4coder_types.h" #define DYNAMIC_LINK_API diff --git a/custom/4coder_helper.cpp b/custom/4coder_helper.cpp index 2c8dade9..b1553e59 100644 --- a/custom/4coder_helper.cpp +++ b/custom/4coder_helper.cpp @@ -1516,27 +1516,27 @@ exec_command(Application_Links *app, Generic_Command cmd){ } internal b32 -key_is_unmodified(Key_Event_Data *key){ - b8 *mods = key->modifiers; - return(!mods[MDFR_CONTROL_INDEX] && !mods[MDFR_ALT_INDEX]); +is_unmodified_key(Input_Event *event){ + b32 result = false; + if (event->kind == InputEventKind_KeyStroke){ + b8 *mods = event->key.modifiers.modifiers; + result = (!mods[MDFR_CONTROL_INDEX] && !mods[MDFR_ALT_INDEX]); + } + return(result); } -internal u32 -to_writable_character(User_Input in, u8 *space){ - u32 inc = 0; - if (in.key.character != 0){ - inc = utf8_write(space, in.key.character); +internal String_Const_u8 +to_writable(Input_Event *event){ + String_Const_u8 result = {}; + if (event->kind != InputEventKind_TextInsert){ + result = event->text.string; } - return(inc); + return(result); } -internal u32 -to_writable_character(Key_Event_Data key, u8 *space){ - u32 inc = 0; - if (key.character != 0){ - inc = utf8_write(space, key.character); - } - return(inc); +internal String_Const_u8 +to_writable(User_Input *in){ + return(to_writable(&in->event)); } internal String_Const_u8 @@ -1580,36 +1580,40 @@ query_user_general(Application_Links *app, Query_Bar *bar, b32 force_number){ break; } - u8 character[4]; - u32 length = 0; - b32 good_character = false; - if (key_is_unmodified(&in.key)){ + Scratch_Block scratch(app); + b32 good_insert = false; + String_Const_u8 insert_string = to_writable(&in); + if (insert_string.str != 0 && insert_string.size > 0){ + insert_string = string_replace(scratch, insert_string, + string_u8_litexpr("\n"), + string_u8_litexpr("")); + insert_string = string_replace(scratch, insert_string, + string_u8_litexpr("\t"), + string_u8_litexpr("")); if (force_number){ - if (in.key.character >= '0' && in.key.character <= '9'){ - good_character = true; - length = to_writable_character(in, character); + if (string_is_integer(insert_string, 10)){ + good_insert = true; } } else{ - length = to_writable_character(in, character); - if (length != 0){ - good_character = true; - } + good_insert = true; } } // NOTE(allen|a3.4.4): All we have to do to update the query bar is edit our // local Query_Bar struct! This is handy because it means our Query_Bar // is always correct for typical use without extra work updating the bar. - if (in.key.keycode == '\n' || in.key.keycode == '\t'){ + if (in.event.kind == InputEventKind_KeyStroke && + (in.event.key.code == KeyCode_Return || in.event.key.code == KeyCode_Tab)){ break; } - else if (in.key.keycode == key_back){ + else if (in.event.kind == InputEventKind_KeyStroke && + in.event.key.code == KeyCode_Backspace){ bar->string = backspace_utf8(bar->string); } - else if (good_character){ + else if (good_insert){ String_u8 string = Su8(bar->string.str, bar->string.size, bar->string_capacity); - string_append(&string, SCu8(character, length)); + string_append(&string, insert_string); bar->string = string.string; } } @@ -2166,8 +2170,8 @@ no_mark_snap_to_cursor(Application_Links *app, View_ID view_id){ internal void no_mark_snap_to_cursor_if_shift(Application_Links *app, View_ID view_id){ - User_Input in = get_command_input(app); - if (in.key.modifiers[MDFR_SHIFT_INDEX]){ + Key_Modifiers mods = system_get_keyboard_modifiers(); + if (mods.modifiers[MDFR_SHIFT_INDEX]){ no_mark_snap_to_cursor(app, view_id); } } diff --git a/custom/4coder_keycode_extension.h b/custom/4coder_keycode_extension.h new file mode 100644 index 00000000..f140d13a --- /dev/null +++ b/custom/4coder_keycode_extension.h @@ -0,0 +1,26 @@ +/* + * Mr. 4th Dimention - Allen Webster + * + * 09.10.2019 + * + * Temporary file for making the transition to a new event API easier. + * + */ + +// TOP + +enum{ + KeyCodeExt_MouseLeft = KeyCode_COUNT, + KeyCodeExt_MouseRight, + KeyCodeExt_MouseLeftRelease, + KeyCodeExt_MouseRightRelease, + KeyCodeExt_MouseWheel, + KeyCodeExt_MouseMove, + KeyCodeExt_Animate, + KeyCodeExt_ClickActivateView, + KeyCodeExt_ClickDeactivateView, + KeyCodeExt_TextInput, +}; + +// BOTOTM + diff --git a/custom/4coder_keycodes.h b/custom/4coder_keycodes.h deleted file mode 100644 index daac6210..00000000 --- a/custom/4coder_keycodes.h +++ /dev/null @@ -1,102 +0,0 @@ -// 55296 -enum{ - key_back = 55296 + 0, - key_up = 55296 + 1, - key_down = 55296 + 2, - key_left = 55296 + 3, - key_right = 55296 + 4, - key_del = 55296 + 5, - key_insert = 55296 + 6, - key_home = 55296 + 7, - key_end = 55296 + 8, - key_page_up = 55296 + 9, - key_page_down = 55296 + 10, - key_esc = 55296 + 11, - key_pause = 55296 + 12, - key_shift = 55296 + 13, - key_ctrl = 55296 + 14, - key_alt = 55296 + 15, - key_cmnd = 55296 + 16, - key_caps = 55296 + 17, - key_num_lock = 55296 + 18, - key_scroll_lock = 55296 + 19, - key_menu = 55296 + 20, - key_mouse_left = 55296 + 21, - key_mouse_right = 55296 + 22, - key_mouse_left_release = 55296 + 23, - key_mouse_right_release = 55296 + 24, - key_mouse_wheel = 55296 + 25, - key_mouse_move = 55296 + 26, - key_animate = 55296 + 27, - key_click_activate_view = 55296 + 28, - key_click_deactivate_view = 55296 + 29, - key_f1 = 55296 + 30, - key_f2 = 55296 + 31, - key_f3 = 55296 + 32, - key_f4 = 55296 + 33, - key_f5 = 55296 + 34, - key_f6 = 55296 + 35, - key_f7 = 55296 + 36, - key_f8 = 55296 + 37, - key_f9 = 55296 + 38, - key_f10 = 55296 + 39, - key_f11 = 55296 + 40, - key_f12 = 55296 + 41, - key_f13 = 55296 + 42, - key_f14 = 55296 + 43, - key_f15 = 55296 + 44, - key_f16 = 55296 + 45, -}; -static char* -global_key_name(u32 key_code, i32 *size){ - char *result = 0; - switch(key_code){ - case key_back: result = "key_back"; *size = sizeof("key_back")-1; break; - case key_up: result = "key_up"; *size = sizeof("key_up")-1; break; - case key_down: result = "key_down"; *size = sizeof("key_down")-1; break; - case key_left: result = "key_left"; *size = sizeof("key_left")-1; break; - case key_right: result = "key_right"; *size = sizeof("key_right")-1; break; - case key_del: result = "key_del"; *size = sizeof("key_del")-1; break; - case key_insert: result = "key_insert"; *size = sizeof("key_insert")-1; break; - case key_home: result = "key_home"; *size = sizeof("key_home")-1; break; - case key_end: result = "key_end"; *size = sizeof("key_end")-1; break; - case key_page_up: result = "key_page_up"; *size = sizeof("key_page_up")-1; break; - case key_page_down: result = "key_page_down"; *size = sizeof("key_page_down")-1; break; - case key_esc: result = "key_esc"; *size = sizeof("key_esc")-1; break; - case key_pause: result = "key_pause"; *size = sizeof("key_pause")-1; break; - case key_shift: result = "key_shift"; *size = sizeof("key_shift")-1; break; - case key_ctrl: result = "key_ctrl"; *size = sizeof("key_ctrl")-1; break; - case key_alt: result = "key_alt"; *size = sizeof("key_alt")-1; break; - case key_cmnd: result = "key_cmnd"; *size = sizeof("key_cmnd")-1; break; - case key_caps: result = "key_caps"; *size = sizeof("key_caps")-1; break; - case key_num_lock: result = "key_num_lock"; *size = sizeof("key_num_lock")-1; break; - case key_scroll_lock: result = "key_scroll_lock"; *size = sizeof("key_scroll_lock")-1; break; - case key_menu: result = "key_menu"; *size = sizeof("key_menu")-1; break; - case key_mouse_left: result = "key_mouse_left"; *size = sizeof("key_mouse_left")-1; break; - case key_mouse_right: result = "key_mouse_right"; *size = sizeof("key_mouse_right")-1; break; - case key_mouse_left_release: result = "key_mouse_left_release"; *size = sizeof("key_mouse_left_release")-1; break; - case key_mouse_right_release: result = "key_mouse_right_release"; *size = sizeof("key_mouse_right_release")-1; break; - case key_mouse_wheel: result = "key_mouse_wheel"; *size = sizeof("key_mouse_wheel")-1; break; - case key_mouse_move: result = "key_mouse_move"; *size = sizeof("key_mouse_move")-1; break; - case key_animate: result = "key_animate"; *size = sizeof("key_animate")-1; break; - case key_click_activate_view: result = "key_click_activate_view"; *size = sizeof("key_click_activate_view")-1; break; - case key_click_deactivate_view: result = "key_click_deactivate_view"; *size = sizeof("key_click_deactivate_view")-1; break; - case key_f1: result = "key_f1"; *size = sizeof("key_f1")-1; break; - case key_f2: result = "key_f2"; *size = sizeof("key_f2")-1; break; - case key_f3: result = "key_f3"; *size = sizeof("key_f3")-1; break; - case key_f4: result = "key_f4"; *size = sizeof("key_f4")-1; break; - case key_f5: result = "key_f5"; *size = sizeof("key_f5")-1; break; - case key_f6: result = "key_f6"; *size = sizeof("key_f6")-1; break; - case key_f7: result = "key_f7"; *size = sizeof("key_f7")-1; break; - case key_f8: result = "key_f8"; *size = sizeof("key_f8")-1; break; - case key_f9: result = "key_f9"; *size = sizeof("key_f9")-1; break; - case key_f10: result = "key_f10"; *size = sizeof("key_f10")-1; break; - case key_f11: result = "key_f11"; *size = sizeof("key_f11")-1; break; - case key_f12: result = "key_f12"; *size = sizeof("key_f12")-1; break; - case key_f13: result = "key_f13"; *size = sizeof("key_f13")-1; break; - case key_f14: result = "key_f14"; *size = sizeof("key_f14")-1; break; - case key_f15: result = "key_f15"; *size = sizeof("key_f15")-1; break; - case key_f16: result = "key_f16"; *size = sizeof("key_f16")-1; break; - } - return(result); -} diff --git a/custom/4coder_log_parser.cpp b/custom/4coder_log_parser.cpp index db99c563..10337669 100644 --- a/custom/4coder_log_parser.cpp +++ b/custom/4coder_log_parser.cpp @@ -1023,12 +1023,12 @@ CUSTOM_DOC("Jump to the code that logged the event record at the mouse point in internal void fill_log_graph_command_map(Bind_Helper *context){ begin_map(context, default_log_graph_map); - bind(context, key_esc, MDFR_NONE, log_graph__escape); - bind(context, key_mouse_wheel, MDFR_NONE, log_graph__scroll_wheel); - bind(context, key_mouse_left, MDFR_NONE, log_graph__click_jump_to_event_source); - bind(context, key_mouse_right, MDFR_NONE, log_graph__click_select_event); - bind(context, key_page_up, MDFR_NONE, log_graph__page_up); - bind(context, key_page_down, MDFR_NONE, log_graph__page_down); + bind(context, KeyCode_Escape, MDFR_NONE, log_graph__escape); + bind(context, KeyCodeExt_MouseWheel, MDFR_NONE, log_graph__scroll_wheel); + bind(context, KeyCodeExt_MouseLeft, MDFR_NONE, log_graph__click_jump_to_event_source); + bind(context, KeyCodeExt_MouseRight, MDFR_NONE, log_graph__click_select_event); + bind(context, KeyCode_PageUp, MDFR_NONE, log_graph__page_up); + bind(context, KeyCode_PageDown, MDFR_NONE, log_graph__page_down); end_map(context); } diff --git a/custom/4coder_project_commands.cpp b/custom/4coder_project_commands.cpp index 5b1af420..6aa15300 100644 --- a/custom/4coder_project_commands.cpp +++ b/custom/4coder_project_commands.cpp @@ -947,8 +947,8 @@ CUSTOM_DOC("Run an 'fkey command' configured in a project.4coder file. Determin User_Input input = get_command_input(app); b32 got_ind = false; i32 ind = 0; - if (input.key.keycode >= key_f1 && input.key.keycode <= key_f16){ - ind = (input.key.keycode - key_f1); + if (input.key.keycode >= KeyCode_F1 && input.key.keycode <= KeyCode_F16){ + ind = (input.key.keycode - KeyCode_F1); got_ind = true; } else if (input.key.character_no_caps_lock >= '1' && input.key.character_no_caps_lock >= '9'){ diff --git a/custom/4coder_remapping_commands.cpp b/custom/4coder_remapping_commands.cpp index 5e7e7f96..ae7ebe50 100644 --- a/custom/4coder_remapping_commands.cpp +++ b/custom/4coder_remapping_commands.cpp @@ -20,13 +20,6 @@ default_keys(Bind_Helper *context){ fill_log_graph_command_map(context); } -void -mac_default_keys(Bind_Helper *context){ - fill_keys_mac_default(context); - fill_log_graph_command_map(context); -} - - // // Remapping Commands // @@ -59,17 +52,6 @@ CUSTOM_DOC("Remap keybindings using the 'default' mapping rule.") global_set_mapping(app, result.data, result.size); } -CUSTOM_COMMAND_SIG(set_bindings_mac_default) -CUSTOM_DOC("Remap keybindings using the 'mac-default' mapping rule.") -{ - Scratch_Block scratch(app, Scratch_Share); - Bind_Helper context = get_context_on_arena(scratch); - set_all_default_hooks(&context); - mac_default_keys(&context); - Bind_Buffer result = end_bind_helper_get_buffer(&context); - global_set_mapping(app, result.data, result.size); -} - #endif // BOTTOM diff --git a/custom/4coder_types.h b/custom/4coder_types.h index e0e8b3f3..d8b0808e 100644 --- a/custom/4coder_types.h +++ b/custom/4coder_types.h @@ -220,27 +220,79 @@ ENUM(i32, Panel_Child){ PanelChild_Max = 1, }; -TYPEDEF u32 Key_Code; +typedef u32 Key_Code; +typedef u32 Mouse_Code; +typedef u32 Core_Event_Code; +enum{ + CoreEventCode_Animate, + CoreEventCode_ClickActivateView, + CoreEventCode_ClickDeactivateView, +}; + +typedef i32 Input_Event_Kind; +enum{ + InputEventKind_TextInsert, + InputEventKind_KeyStroke, + InputEventKind_MouseButton, + InputEventKind_MouseWheel, + InputEventKind_MouseMove, + InputEventKind_Core, +}; + +struct Key_Modifiers{ + b8 modifiers[MDFR_INDEX_COUNT]; +}; + +struct Input_Event{ + Input_Event_Kind kind; + union{ + struct{ + String_Const_u8 string; + Key_Modifiers modifiers; + } text; + struct{ + Key_Code code; + Key_Modifiers modifiers; + } key; + struct{ + Key_Code code; + Key_Modifiers modifiers; + Vec2_i32 p; + } mouse; + struct{ + f32 value; + Vec2_i32 p; + } mouse_wheel; + struct{ + Vec2_i32 p; + } mouse_move; + struct{ + Core_Event_Code code; + } core; + }; +}; + +struct Input_Event_Node{ + Input_Event_Node *next; + Input_Event event; +}; + +struct Input_List{ + Input_Event_Node *first; + Input_Event_Node *last; + i32 count; +}; TYPEDEF u8 Key_Modifier; -STRUCT Key_Event_Data{ - Key_Code keycode; - Key_Code character; - Key_Code character_no_caps_lock; - i8 modifiers[MDFR_INDEX_COUNT]; -}; - -GLOBAL_VAR Key_Event_Data null_key_event_data = {}; - STRUCT Mouse_State{ - int8_t l; - int8_t r; - int8_t press_l; - int8_t press_r; - int8_t release_l; - int8_t release_r; - int8_t out_of_window; + b8 l; + b8 r; + b8 press_l; + b8 press_r; + b8 release_l; + b8 release_r; + b8 out_of_window; i32 wheel; UNION{ STRUCT{ @@ -498,7 +550,7 @@ UNION Generic_Command{ STRUCT User_Input{ - Key_Event_Data key; + Input_Event event; Generic_Command command; b32 abort; }; @@ -615,7 +667,6 @@ ENUM(i32, Binding_Unit_Type){ ENUM(i32, Map_ID){ mapid_global = (1 << 24), mapid_file, - mapid_ui, mapid_nomap }; diff --git a/custom/generated/4coder_keycodes.h b/custom/generated/4coder_keycodes.h new file mode 100644 index 00000000..bb5b85ac --- /dev/null +++ b/custom/generated/4coder_keycodes.h @@ -0,0 +1,179 @@ +enum{ +KeyCode_A = 1, +KeyCode_B = 2, +KeyCode_C = 3, +KeyCode_D = 4, +KeyCode_E = 5, +KeyCode_F = 6, +KeyCode_G = 7, +KeyCode_H = 8, +KeyCode_I = 9, +KeyCode_J = 10, +KeyCode_K = 11, +KeyCode_L = 12, +KeyCode_M = 13, +KeyCode_N = 14, +KeyCode_O = 15, +KeyCode_P = 16, +KeyCode_Q = 17, +KeyCode_R = 18, +KeyCode_S = 19, +KeyCode_T = 20, +KeyCode_U = 21, +KeyCode_V = 22, +KeyCode_W = 23, +KeyCode_X = 24, +KeyCode_Y = 25, +KeyCode_Z = 26, +KeyCode_0 = 27, +KeyCode_1 = 28, +KeyCode_2 = 29, +KeyCode_3 = 30, +KeyCode_4 = 31, +KeyCode_5 = 32, +KeyCode_6 = 33, +KeyCode_7 = 34, +KeyCode_8 = 35, +KeyCode_9 = 36, +KeyCode_Space = 37, +KeyCode_Tick = 38, +KeyCode_Minus = 39, +KeyCode_Equal = 40, +KeyCode_LeftBracket = 41, +KeyCode_RightBracket = 42, +KeyCode_Semicolon = 43, +KeyCode_Quote = 44, +KeyCode_Comma = 45, +KeyCode_Period = 46, +KeyCode_ForwardSlash = 47, +KeyCode_BackwardSlash = 48, +KeyCode_Tab = 49, +KeyCode_Escape = 50, +KeyCode_Pause = 51, +KeyCode_Up = 52, +KeyCode_Down = 53, +KeyCode_Left = 54, +KeyCode_Right = 55, +KeyCode_Backspace = 56, +KeyCode_Return = 57, +KeyCode_Delete = 58, +KeyCode_Insert = 59, +KeyCode_Home = 60, +KeyCode_End = 61, +KeyCode_PageUp = 62, +KeyCode_PageDown = 63, +KeyCode_CapsLock = 64, +KeyCode_NumLock = 65, +KeyCode_ScrollLock = 66, +KeyCode_Menu = 67, +KeyCode_Shift = 68, +KeyCode_Control = 69, +KeyCode_Alt = 70, +KeyCode_Command = 71, +KeyCode_F1 = 72, +KeyCode_F2 = 73, +KeyCode_F3 = 74, +KeyCode_F4 = 75, +KeyCode_F5 = 76, +KeyCode_F6 = 77, +KeyCode_F7 = 78, +KeyCode_F8 = 79, +KeyCode_F9 = 80, +KeyCode_F10 = 81, +KeyCode_F11 = 82, +KeyCode_F12 = 83, +KeyCode_F13 = 84, +KeyCode_F14 = 85, +KeyCode_F15 = 86, +KeyCode_F16 = 87, +KeyCode_COUNT = 88, +}; +global char* key_code_name[] = { +"A", +"B", +"C", +"D", +"E", +"F", +"G", +"H", +"I", +"J", +"K", +"L", +"M", +"N", +"O", +"P", +"Q", +"R", +"S", +"T", +"U", +"V", +"W", +"X", +"Y", +"Z", +"0", +"1", +"2", +"3", +"4", +"5", +"6", +"7", +"8", +"9", +"Space", +"Tick", +"Minus", +"Equal", +"LeftBracket", +"RightBracket", +"Semicolon", +"Quote", +"Comma", +"Period", +"ForwardSlash", +"BackwardSlash", +"Tab", +"Escape", +"Pause", +"Up", +"Down", +"Left", +"Right", +"Backspace", +"Return", +"Delete", +"Insert", +"Home", +"End", +"PageUp", +"PageDown", +"CapsLock", +"NumLock", +"ScrollLock", +"Menu", +"Shift", +"Control", +"Alt", +"Command", +"F1", +"F2", +"F3", +"F4", +"F5", +"F6", +"F7", +"F8", +"F9", +"F10", +"F11", +"F12", +"F13", +"F14", +"F15", +"F16", +}; diff --git a/custom/generated/command_metadata.h b/custom/generated/command_metadata.h index f35efa02..8c9a4481 100644 --- a/custom/generated/command_metadata.h +++ b/custom/generated/command_metadata.h @@ -9,7 +9,7 @@ #define PROC_LINKS(x,y) y #endif #if defined(CUSTOM_COMMAND_SIG) -CUSTOM_COMMAND_SIG(set_bindings_mac_default); +CUSTOM_COMMAND_SIG(set_bindings_default); CUSTOM_COMMAND_SIG(seek_beginning_of_textual_line); CUSTOM_COMMAND_SIG(seek_end_of_textual_line); CUSTOM_COMMAND_SIG(seek_beginning_of_line); @@ -30,7 +30,8 @@ CUSTOM_COMMAND_SIG(toggle_highlight_enclosing_scopes); CUSTOM_COMMAND_SIG(toggle_paren_matching_helper); CUSTOM_COMMAND_SIG(toggle_fullscreen); CUSTOM_COMMAND_SIG(remap_interactive); -CUSTOM_COMMAND_SIG(write_character); +CUSTOM_COMMAND_SIG(write_text_input); +CUSTOM_COMMAND_SIG(write_space); CUSTOM_COMMAND_SIG(write_underscore); CUSTOM_COMMAND_SIG(delete_char); CUSTOM_COMMAND_SIG(backspace_char); @@ -235,7 +236,6 @@ CUSTOM_COMMAND_SIG(miblo_decrement_time_stamp); CUSTOM_COMMAND_SIG(miblo_increment_time_stamp_minute); CUSTOM_COMMAND_SIG(miblo_decrement_time_stamp_minute); CUSTOM_COMMAND_SIG(set_bindings_choose); -CUSTOM_COMMAND_SIG(set_bindings_default); #endif struct Command_Metadata{ PROC_LINKS(Custom_Command_Function, void) *proc; @@ -248,235 +248,235 @@ i32 source_name_len; i32 line_number; }; static Command_Metadata fcoder_metacmd_table[227] = { -{ PROC_LINKS(set_bindings_mac_default, 0), "set_bindings_mac_default", 24, "Remap keybindings using the 'mac-default' mapping rule.", 55, "c:\\4ed\\code\\custom\\4coder_remapping_commands.cpp", 48, 62 }, -{ PROC_LINKS(seek_beginning_of_textual_line, 0), "seek_beginning_of_textual_line", 30, "Seeks the cursor to the beginning of the line across all text.", 62, "c:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2233 }, -{ PROC_LINKS(seek_end_of_textual_line, 0), "seek_end_of_textual_line", 24, "Seeks the cursor to the end of the line across all text.", 56, "c:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2239 }, -{ PROC_LINKS(seek_beginning_of_line, 0), "seek_beginning_of_line", 22, "Seeks the cursor to the beginning of the visual line.", 53, "c:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2245 }, -{ PROC_LINKS(seek_end_of_line, 0), "seek_end_of_line", 16, "Seeks the cursor to the end of the visual line.", 47, "c:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2251 }, -{ PROC_LINKS(goto_beginning_of_file, 0), "goto_beginning_of_file", 22, "Sets the cursor to the beginning of the file.", 45, "c:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2257 }, -{ PROC_LINKS(goto_end_of_file, 0), "goto_end_of_file", 16, "Sets the cursor to the end of the file.", 39, "c:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2265 }, -{ PROC_LINKS(change_active_panel, 0), "change_active_panel", 19, "Change the currently active panel, moving to the panel with the next highest view_id.", 85, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 196 }, -{ PROC_LINKS(change_active_panel_backwards, 0), "change_active_panel_backwards", 29, "Change the currently active panel, moving to the panel with the next lowest view_id.", 84, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 206 }, -{ PROC_LINKS(open_panel_vsplit, 0), "open_panel_vsplit", 17, "Create a new panel by vertically splitting the active panel.", 60, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 216 }, -{ PROC_LINKS(open_panel_hsplit, 0), "open_panel_hsplit", 17, "Create a new panel by horizontally splitting the active panel.", 62, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 226 }, -{ PROC_LINKS(suppress_mouse, 0), "suppress_mouse", 14, "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 289 }, -{ PROC_LINKS(allow_mouse, 0), "allow_mouse", 11, "Shows the mouse and causes all mouse input to be processed normally.", 68, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 295 }, -{ PROC_LINKS(toggle_mouse, 0), "toggle_mouse", 12, "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 301 }, -{ PROC_LINKS(set_mode_to_original, 0), "set_mode_to_original", 20, "Sets the edit mode to 4coder original.", 38, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 307 }, -{ PROC_LINKS(set_mode_to_notepad_like, 0), "set_mode_to_notepad_like", 24, "Sets the edit mode to Notepad like.", 35, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 313 }, -{ PROC_LINKS(toggle_highlight_line_at_cursor, 0), "toggle_highlight_line_at_cursor", 31, "Toggles the line highlight at the cursor.", 41, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 319 }, -{ PROC_LINKS(toggle_highlight_enclosing_scopes, 0), "toggle_highlight_enclosing_scopes", 33, "In code files scopes surrounding the cursor are highlighted with distinguishing colors.", 87, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 325 }, -{ PROC_LINKS(toggle_paren_matching_helper, 0), "toggle_paren_matching_helper", 28, "In code files matching parentheses pairs are colored with distinguishing colors.", 80, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 331 }, -{ PROC_LINKS(toggle_fullscreen, 0), "toggle_fullscreen", 17, "Toggle fullscreen mode on or off. The change(s) do not take effect until the next frame.", 89, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 337 }, -{ PROC_LINKS(remap_interactive, 0), "remap_interactive", 17, "Switch to a named key binding map.", 34, "c:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 345 }, -{ PROC_LINKS(write_character, 0), "write_character", 15, "Inserts whatever character was used to trigger this command.", 60, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 57 }, -{ PROC_LINKS(write_underscore, 0), "write_underscore", 16, "Inserts an underscore.", 22, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 66 }, -{ PROC_LINKS(delete_char, 0), "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 73 }, -{ PROC_LINKS(backspace_char, 0), "backspace_char", 14, "Deletes the character to the left of the cursor.", 48, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 90 }, -{ PROC_LINKS(set_mark, 0), "set_mark", 8, "Sets the mark to the current position of the cursor.", 52, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 109 }, -{ PROC_LINKS(cursor_mark_swap, 0), "cursor_mark_swap", 16, "Swaps the position of the cursor and the mark.", 46, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 118 }, -{ PROC_LINKS(delete_range, 0), "delete_range", 12, "Deletes the text in the range between the cursor and the mark.", 62, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 128 }, -{ PROC_LINKS(backspace_alpha_numeric_boundary, 0), "backspace_alpha_numeric_boundary", 32, "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 148 }, -{ PROC_LINKS(delete_alpha_numeric_boundary, 0), "delete_alpha_numeric_boundary", 29, "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 156 }, -{ PROC_LINKS(snipe_backward_whitespace_or_token_boundary, 0), "snipe_backward_whitespace_or_token_boundary", 43, "Delete a single, whole token on or to the left of the cursor and post it to the clipboard.", 90, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 176 }, -{ PROC_LINKS(snipe_forward_whitespace_or_token_boundary, 0), "snipe_forward_whitespace_or_token_boundary", 42, "Delete a single, whole token on or to the right of the cursor and post it to the clipboard.", 91, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 184 }, -{ PROC_LINKS(center_view, 0), "center_view", 11, "Centers the view vertically on the line on which the cursor sits.", 65, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 194 }, -{ PROC_LINKS(left_adjust_view, 0), "left_adjust_view", 16, "Sets the left size of the view near the x position of the cursor.", 65, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 208 }, -{ PROC_LINKS(click_set_cursor_and_mark, 0), "click_set_cursor_and_mark", 25, "Sets the cursor position and mark to the mouse position.", 56, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 220 }, -{ PROC_LINKS(click_set_cursor, 0), "click_set_cursor", 16, "Sets the cursor position to the mouse position.", 47, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 232 }, -{ PROC_LINKS(click_set_cursor_if_lbutton, 0), "click_set_cursor_if_lbutton", 27, "If the mouse left button is pressed, sets the cursor position to the mouse position.", 84, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 244 }, -{ PROC_LINKS(click_set_mark, 0), "click_set_mark", 14, "Sets the mark position to the mouse position.", 45, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 258 }, -{ PROC_LINKS(mouse_wheel_scroll, 0), "mouse_wheel_scroll", 18, "Reads the scroll wheel value from the mouse state and scrolls accordingly.", 74, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 270 }, -{ PROC_LINKS(move_up, 0), "move_up", 7, "Moves the cursor up one line.", 29, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 331 }, -{ PROC_LINKS(move_down, 0), "move_down", 9, "Moves the cursor down one line.", 31, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 337 }, -{ PROC_LINKS(move_up_10, 0), "move_up_10", 10, "Moves the cursor up ten lines.", 30, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 343 }, -{ PROC_LINKS(move_down_10, 0), "move_down_10", 12, "Moves the cursor down ten lines.", 32, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 349 }, -{ PROC_LINKS(move_down_textual, 0), "move_down_textual", 17, "Moves down to the next line of actual text, regardless of line wrapping.", 72, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 355 }, -{ PROC_LINKS(page_up, 0), "page_up", 7, "Scrolls the view up one view height and moves the cursor up one view height.", 76, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 365 }, -{ PROC_LINKS(page_down, 0), "page_down", 9, "Scrolls the view down one view height and moves the cursor down one view height.", 80, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 373 }, -{ PROC_LINKS(move_up_to_blank_line, 0), "move_up_to_blank_line", 21, "Seeks the cursor up to the next blank line.", 43, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 403 }, -{ PROC_LINKS(move_down_to_blank_line, 0), "move_down_to_blank_line", 23, "Seeks the cursor down to the next blank line.", 45, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 409 }, -{ PROC_LINKS(move_up_to_blank_line_skip_whitespace, 0), "move_up_to_blank_line_skip_whitespace", 37, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 415 }, -{ PROC_LINKS(move_down_to_blank_line_skip_whitespace, 0), "move_down_to_blank_line_skip_whitespace", 39, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 421 }, -{ PROC_LINKS(move_up_to_blank_line_end, 0), "move_up_to_blank_line_end", 25, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 427 }, -{ PROC_LINKS(move_down_to_blank_line_end, 0), "move_down_to_blank_line_end", 27, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 433 }, -{ PROC_LINKS(move_left, 0), "move_left", 9, "Moves the cursor one character to the left.", 43, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 439 }, -{ PROC_LINKS(move_right, 0), "move_right", 10, "Moves the cursor one character to the right.", 44, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 451 }, -{ PROC_LINKS(move_right_whitespace_boundary, 0), "move_right_whitespace_boundary", 30, "Seek right for the next boundary between whitespace and non-whitespace.", 71, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 473 }, -{ PROC_LINKS(move_left_whitespace_boundary, 0), "move_left_whitespace_boundary", 29, "Seek left for the next boundary between whitespace and non-whitespace.", 70, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 481 }, -{ PROC_LINKS(move_right_token_boundary, 0), "move_right_token_boundary", 25, "Seek right for the next end of a token.", 39, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 489 }, -{ PROC_LINKS(move_left_token_boundary, 0), "move_left_token_boundary", 24, "Seek left for the next beginning of a token.", 44, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 497 }, -{ PROC_LINKS(move_right_whitespace_or_token_boundary, 0), "move_right_whitespace_or_token_boundary", 39, "Seek right for the next end of a token or boundary between whitespace and non-whitespace.", 89, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 505 }, -{ PROC_LINKS(move_left_whitespace_or_token_boundary, 0), "move_left_whitespace_or_token_boundary", 38, "Seek left for the next end of a token or boundary between whitespace and non-whitespace.", 88, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 513 }, -{ PROC_LINKS(move_right_alpha_numeric_boundary, 0), "move_right_alpha_numeric_boundary", 33, "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 521 }, -{ PROC_LINKS(move_left_alpha_numeric_boundary, 0), "move_left_alpha_numeric_boundary", 32, "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 529 }, -{ PROC_LINKS(move_right_alpha_numeric_or_camel_boundary, 0), "move_right_alpha_numeric_or_camel_boundary", 42, "Seek right for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 107, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 537 }, -{ PROC_LINKS(move_left_alpha_numeric_or_camel_boundary, 0), "move_left_alpha_numeric_or_camel_boundary", 41, "Seek left for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 106, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 545 }, -{ PROC_LINKS(select_all, 0), "select_all", 10, "Puts the cursor at the top of the file, and the mark at the bottom of the file.", 79, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 555 }, -{ PROC_LINKS(to_uppercase, 0), "to_uppercase", 12, "Converts all ascii text in the range between the cursor and the mark to uppercase.", 82, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 568 }, -{ PROC_LINKS(to_lowercase, 0), "to_lowercase", 12, "Converts all ascii text in the range between the cursor and the mark to lowercase.", 82, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 581 }, -{ PROC_LINKS(clean_all_lines, 0), "clean_all_lines", 15, "Removes trailing whitespace from all lines in the current buffer.", 65, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 594 }, -{ PROC_LINKS(basic_change_active_panel, 0), "basic_change_active_panel", 25, "Change the currently active panel, moving to the panel with the next highest view_id. Will not skipe the build panel if it is open.", 132, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 628 }, -{ PROC_LINKS(close_panel, 0), "close_panel", 11, "Closes the currently active panel if it is not the only panel open.", 67, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 636 }, -{ PROC_LINKS(show_scrollbar, 0), "show_scrollbar", 14, "Sets the current view to show it's scrollbar.", 45, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 645 }, -{ PROC_LINKS(hide_scrollbar, 0), "hide_scrollbar", 14, "Sets the current view to hide it's scrollbar.", 45, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 652 }, -{ PROC_LINKS(show_filebar, 0), "show_filebar", 12, "Sets the current view to show it's filebar.", 43, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 659 }, -{ PROC_LINKS(hide_filebar, 0), "hide_filebar", 12, "Sets the current view to hide it's filebar.", 43, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 666 }, -{ PROC_LINKS(toggle_filebar, 0), "toggle_filebar", 14, "Toggles the visibility status of the current view's filebar.", 60, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 673 }, -{ PROC_LINKS(toggle_fps_meter, 0), "toggle_fps_meter", 16, "Toggles the visibility of the FPS performance meter", 51, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 682 }, -{ PROC_LINKS(increase_face_size, 0), "increase_face_size", 18, "Increase the size of the face used by the current buffer.", 57, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 688 }, -{ PROC_LINKS(decrease_face_size, 0), "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 699 }, -{ PROC_LINKS(mouse_wheel_change_face_size, 0), "mouse_wheel_change_face_size", 28, "Reads the state of the mouse wheel and uses it to either increase or decrease the face size.", 92, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 710 }, -{ PROC_LINKS(toggle_virtual_whitespace, 0), "toggle_virtual_whitespace", 25, "Toggles the current buffer's virtual whitespace status.", 55, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 727 }, -{ PROC_LINKS(toggle_show_whitespace, 0), "toggle_show_whitespace", 22, "Toggles the current buffer's whitespace visibility status.", 58, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 736 }, -{ PROC_LINKS(toggle_line_numbers, 0), "toggle_line_numbers", 19, "Toggles the left margin line numbers.", 37, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 745 }, -{ PROC_LINKS(eol_dosify, 0), "eol_dosify", 10, "Puts the buffer in DOS line ending mode.", 40, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 751 }, -{ PROC_LINKS(eol_nixify, 0), "eol_nixify", 10, "Puts the buffer in NIX line ending mode.", 40, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 759 }, -{ PROC_LINKS(exit_4coder, 0), "exit_4coder", 11, "Attempts to close 4coder.", 25, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 767 }, -{ PROC_LINKS(goto_line, 0), "goto_line", 9, "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 775 }, -{ PROC_LINKS(search, 0), "search", 6, "Begins an incremental search down through the current buffer for a user specified string.", 89, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 966 }, -{ PROC_LINKS(reverse_search, 0), "reverse_search", 14, "Begins an incremental search up through the current buffer for a user specified string.", 87, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 972 }, -{ PROC_LINKS(search_identifier, 0), "search_identifier", 17, "Begins an incremental search down through the current buffer for the word or token under the cursor.", 100, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 978 }, -{ PROC_LINKS(reverse_search_identifier, 0), "reverse_search_identifier", 25, "Begins an incremental search up through the current buffer for the word or token under the cursor.", 98, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 989 }, -{ PROC_LINKS(replace_in_range, 0), "replace_in_range", 16, "Queries the user for a needle and string. Replaces all occurences of needle with string in the range between cursor and the mark in the active buffer.", 150, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1040 }, -{ PROC_LINKS(replace_in_buffer, 0), "replace_in_buffer", 17, "Queries the user for a needle and string. Replaces all occurences of needle with string in the active buffer.", 109, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1049 }, -{ PROC_LINKS(replace_in_all_buffers, 0), "replace_in_all_buffers", 22, "Queries the user for a needle and string. Replaces all occurences of needle with string in all editable buffers.", 112, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 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:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1146 }, -{ PROC_LINKS(query_replace_identifier, 0), "query_replace_identifier", 24, "Queries the user for a string, and incrementally replace every occurence of the word or token found at the cursor with the specified string.", 140, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1166 }, -{ PROC_LINKS(query_replace_selection, 0), "query_replace_selection", 23, "Queries the user for a string, and incrementally replace every occurence of the string found in the selected range with the specified string.", 141, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1182 }, -{ PROC_LINKS(save_all_dirty_buffers, 0), "save_all_dirty_buffers", 22, "Saves all buffers marked dirty (showing the '*' indicator).", 59, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1217 }, -{ PROC_LINKS(delete_file_query, 0), "delete_file_query", 17, "Deletes the file of the current buffer if 4coder has the appropriate access rights. Will ask the user for confirmation first.", 125, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1242 }, -{ PROC_LINKS(save_to_query, 0), "save_to_query", 13, "Queries the user for a file name and saves the contents of the current buffer, altering the buffer's name too.", 110, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1280 }, -{ PROC_LINKS(rename_file_query, 0), "rename_file_query", 17, "Queries the user for a new name and renames the file of the current buffer, altering the buffer's name too.", 107, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1312 }, -{ PROC_LINKS(make_directory_query, 0), "make_directory_query", 20, "Queries the user for a name and creates a new directory with the given name.", 76, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1349 }, -{ PROC_LINKS(move_line_up, 0), "move_line_up", 12, "Swaps the line under the cursor with the line above it, and moves the cursor up with it.", 88, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1382 }, -{ PROC_LINKS(move_line_down, 0), "move_line_down", 14, "Swaps the line under the cursor with the line below it, and moves the cursor down with it.", 90, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1388 }, -{ PROC_LINKS(duplicate_line, 0), "duplicate_line", 14, "Create a copy of the line on which the cursor sits.", 51, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1394 }, -{ PROC_LINKS(delete_line, 0), "delete_line", 11, "Delete the line the on which the cursor sits.", 45, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1408 }, -{ PROC_LINKS(open_file_in_quotes, 0), "open_file_in_quotes", 19, "Reads a filename from surrounding '\"' characters and attempts to open the corresponding file.", 94, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1473 }, -{ PROC_LINKS(open_matching_file_cpp, 0), "open_matching_file_cpp", 22, "If the current file is a *.cpp or *.h, attempts to open the corresponding *.h or *.cpp file in the other view.", 110, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1505 }, -{ PROC_LINKS(view_buffer_other_panel, 0), "view_buffer_other_panel", 23, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1518 }, -{ PROC_LINKS(swap_buffers_between_panels, 0), "swap_buffers_between_panels", 27, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1530 }, -{ PROC_LINKS(kill_buffer, 0), "kill_buffer", 11, "Kills the current buffer.", 25, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1566 }, -{ PROC_LINKS(save, 0), "save", 4, "Saves the current buffer.", 25, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1574 }, -{ PROC_LINKS(reopen, 0), "reopen", 6, "Reopen the current buffer from the hard drive.", 46, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1584 }, -{ PROC_LINKS(undo, 0), "undo", 4, "Advances backwards through the undo history of the current buffer.", 66, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1811 }, -{ PROC_LINKS(redo, 0), "redo", 4, "Advances forwards through the undo history of the current buffer.", 65, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1824 }, -{ PROC_LINKS(undo_all_buffers, 0), "undo_all_buffers", 16, "Advances backward through the undo history in the buffer containing the most recent regular edit.", 97, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1838 }, -{ PROC_LINKS(redo_all_buffers, 0), "redo_all_buffers", 16, "Advances forward through the undo history in the buffer containing the most recent regular edit.", 96, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1909 }, -{ PROC_LINKS(open_in_other, 0), "open_in_other", 13, "Interactively opens a file in the other panel.", 46, "c:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 2010 }, -{ PROC_LINKS(lister__quit, 0), "lister__quit", 12, "A lister mode command that quits the list without executing any actions.", 72, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 8 }, -{ PROC_LINKS(lister__activate, 0), "lister__activate", 16, "A lister mode command that activates the list's action on the highlighted item.", 79, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 15 }, -{ PROC_LINKS(lister__write_character, 0), "lister__write_character", 23, "A lister mode command that dispatches to the lister's write character handler.", 78, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 30 }, -{ PROC_LINKS(lister__backspace_text_field, 0), "lister__backspace_text_field", 28, "A lister mode command that dispatches to the lister's backspace text field handler.", 83, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 40 }, -{ PROC_LINKS(lister__move_up, 0), "lister__move_up", 15, "A lister mode command that dispatches to the lister's navigate up handler.", 74, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 50 }, -{ PROC_LINKS(lister__move_down, 0), "lister__move_down", 17, "A lister mode command that dispatches to the lister's navigate down handler.", 76, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 60 }, -{ PROC_LINKS(lister__wheel_scroll, 0), "lister__wheel_scroll", 20, "A lister mode command that scrolls the list in response to the mouse wheel.", 75, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 70 }, -{ PROC_LINKS(lister__mouse_press, 0), "lister__mouse_press", 19, "A lister mode command that beings a click interaction with a list item under the mouse.", 87, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 84 }, -{ PROC_LINKS(lister__mouse_release, 0), "lister__mouse_release", 21, "A lister mode command that ends a click interaction with a list item under the mouse, possibly activating it.", 109, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 95 }, -{ PROC_LINKS(lister__repaint, 0), "lister__repaint", 15, "A lister mode command that updates the lists UI data.", 53, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 110 }, -{ PROC_LINKS(lister__write_character__default, 0), "lister__write_character__default", 32, "A lister mode command that inserts a new character to the text field.", 69, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 120 }, -{ PROC_LINKS(lister__backspace_text_field__default, 0), "lister__backspace_text_field__default", 37, "A lister mode command that backspaces one character from the text field.", 72, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 139 }, -{ PROC_LINKS(lister__move_up__default, 0), "lister__move_up__default", 24, "A lister mode command that moves the highlighted item one up in the list.", 73, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 153 }, -{ PROC_LINKS(lister__move_down__default, 0), "lister__move_down__default", 26, "A lister mode command that moves the highlighted item one down in the list.", 75, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 168 }, -{ PROC_LINKS(lister__write_character__file_path, 0), "lister__write_character__file_path", 34, "A lister mode command that inserts a character into the text field of a file system list.", 89, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 183 }, -{ PROC_LINKS(lister__backspace_text_field__file_path, 0), "lister__backspace_text_field__file_path", 39, "A lister mode command that backspaces one character from the text field of a file system list.", 94, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 208 }, -{ PROC_LINKS(lister__write_character__fixed_list, 0), "lister__write_character__fixed_list", 35, "A lister mode command that handles input for the fixed sure to kill list.", 73, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 249 }, -{ PROC_LINKS(interactive_switch_buffer, 0), "interactive_switch_buffer", 25, "Interactively switch to an open buffer.", 39, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 718 }, -{ PROC_LINKS(interactive_kill_buffer, 0), "interactive_kill_buffer", 23, "Interactively kill an open buffer.", 34, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 737 }, -{ PROC_LINKS(interactive_open_or_new, 0), "interactive_open_or_new", 23, "Interactively open a file out of the file system.", 49, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 808 }, -{ PROC_LINKS(interactive_new, 0), "interactive_new", 15, "Interactively creates a new file.", 33, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 847 }, -{ PROC_LINKS(interactive_open, 0), "interactive_open", 16, "Interactively opens a file.", 27, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 880 }, -{ PROC_LINKS(command_lister, 0), "command_lister", 14, "Opens an interactive list of all registered commands.", 53, "c:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 960 }, -{ PROC_LINKS(auto_tab_whole_file, 0), "auto_tab_whole_file", 19, "Audo-indents the entire current buffer.", 39, "c:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 322 }, -{ PROC_LINKS(auto_tab_line_at_cursor, 0), "auto_tab_line_at_cursor", 23, "Auto-indents the line on which the cursor sits.", 47, "c:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 331 }, -{ PROC_LINKS(auto_tab_range, 0), "auto_tab_range", 14, "Auto-indents the range between the cursor and the mark.", 55, "c:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 341 }, -{ PROC_LINKS(write_and_auto_tab, 0), "write_and_auto_tab", 18, "Inserts a character and auto-indents the line on which the cursor sits.", 71, "c:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 351 }, -{ PROC_LINKS(list_all_locations, 0), "list_all_locations", 18, "Queries the user for a string and lists all exact case-sensitive matches found in all open buffers.", 99, "c:\\4ed\\code\\custom\\4coder_search.cpp", 36, 166 }, -{ PROC_LINKS(list_all_substring_locations, 0), "list_all_substring_locations", 28, "Queries the user for a string and lists all case-sensitive substring matches found in all open buffers.", 103, "c:\\4ed\\code\\custom\\4coder_search.cpp", 36, 172 }, -{ PROC_LINKS(list_all_locations_case_insensitive, 0), "list_all_locations_case_insensitive", 35, "Queries the user for a string and lists all exact case-insensitive matches found in all open buffers.", 101, "c:\\4ed\\code\\custom\\4coder_search.cpp", 36, 178 }, -{ PROC_LINKS(list_all_substring_locations_case_insensitive, 0), "list_all_substring_locations_case_insensitive", 45, "Queries the user for a string and lists all case-insensitive substring matches found in all open buffers.", 105, "c:\\4ed\\code\\custom\\4coder_search.cpp", 36, 184 }, -{ PROC_LINKS(list_all_locations_of_identifier, 0), "list_all_locations_of_identifier", 32, "Reads a token or word under the cursor and lists all exact case-sensitive mathces in all open buffers.", 102, "c:\\4ed\\code\\custom\\4coder_search.cpp", 36, 190 }, -{ PROC_LINKS(list_all_locations_of_identifier_case_insensitive, 0), "list_all_locations_of_identifier_case_insensitive", 49, "Reads a token or word under the cursor and lists all exact case-insensitive mathces in all open buffers.", 104, "c:\\4ed\\code\\custom\\4coder_search.cpp", 36, 196 }, -{ PROC_LINKS(list_all_locations_of_selection, 0), "list_all_locations_of_selection", 31, "Reads the string in the selected range and lists all exact case-sensitive mathces in all open buffers.", 102, "c:\\4ed\\code\\custom\\4coder_search.cpp", 36, 202 }, -{ PROC_LINKS(list_all_locations_of_selection_case_insensitive, 0), "list_all_locations_of_selection_case_insensitive", 48, "Reads the string in the selected range and lists all exact case-insensitive mathces in all open buffers.", 104, "c:\\4ed\\code\\custom\\4coder_search.cpp", 36, 208 }, -{ PROC_LINKS(list_all_locations_of_type_definition, 0), "list_all_locations_of_type_definition", 37, "Queries user for string, lists all locations of strings that appear to define a type whose name matches the input string.", 121, "c:\\4ed\\code\\custom\\4coder_search.cpp", 36, 214 }, -{ PROC_LINKS(list_all_locations_of_type_definition_of_identifier, 0), "list_all_locations_of_type_definition_of_identifier", 51, "Reads a token or word under the cursor and lists all locations of strings that appear to define a type whose name matches it.", 125, "c:\\4ed\\code\\custom\\4coder_search.cpp", 36, 222 }, -{ PROC_LINKS(word_complete, 0), "word_complete", 13, "Iteratively tries completing the word to the left of the cursor with other words in open buffers that have the same prefix string.", 130, "c:\\4ed\\code\\custom\\4coder_search.cpp", 36, 378 }, -{ PROC_LINKS(goto_jump_at_cursor, 0), "goto_jump_at_cursor", 19, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "c:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 346 }, -{ PROC_LINKS(goto_jump_at_cursor_same_panel, 0), "goto_jump_at_cursor_same_panel", 30, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list.", 167, "c:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 373 }, -{ PROC_LINKS(goto_next_jump, 0), "goto_next_jump", 14, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "c:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 462 }, -{ PROC_LINKS(goto_prev_jump, 0), "goto_prev_jump", 14, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "c:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 479 }, -{ PROC_LINKS(goto_next_jump_no_skips, 0), "goto_next_jump_no_skips", 23, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "c:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 492 }, -{ PROC_LINKS(goto_prev_jump_no_skips, 0), "goto_prev_jump_no_skips", 23, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "c:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 509 }, -{ PROC_LINKS(goto_first_jump, 0), "goto_first_jump", 15, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "c:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 523 }, -{ PROC_LINKS(goto_first_jump_same_panel_sticky, 0), "goto_first_jump_same_panel_sticky", 33, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer and views the buffer in the panel where the jump list was.", 153, "c:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 540 }, -{ PROC_LINKS(newline_or_goto_position, 0), "newline_or_goto_position", 24, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "c:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 562 }, -{ PROC_LINKS(newline_or_goto_position_same_panel, 0), "newline_or_goto_position_same_panel", 35, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "c:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 579 }, -{ PROC_LINKS(view_jump_list_with_lister, 0), "view_jump_list_with_lister", 26, "When executed on a buffer with jumps, creates a persistent lister for all the jumps", 83, "c:\\4ed\\code\\custom\\4coder_jump_lister.cpp", 41, 102 }, -{ PROC_LINKS(log_graph__escape, 0), "log_graph__escape", 17, "Ends the log grapher", 20, "c:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 906 }, -{ PROC_LINKS(log_graph__scroll_wheel, 0), "log_graph__scroll_wheel", 23, "Scrolls the log graph", 21, "c:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 915 }, -{ PROC_LINKS(log_graph__page_up, 0), "log_graph__page_up", 18, "Scroll the log graph up one whole page", 38, "c:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 926 }, -{ PROC_LINKS(log_graph__page_down, 0), "log_graph__page_down", 20, "Scroll the log graph down one whole page", 40, "c:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 934 }, -{ PROC_LINKS(log_graph__click_select_event, 0), "log_graph__click_select_event", 29, "Select the event record at the mouse point in the log graph", 59, "c:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 968 }, -{ PROC_LINKS(log_graph__click_jump_to_event_source, 0), "log_graph__click_jump_to_event_source", 37, "Jump to the code that logged the event record at the mouse point in the log graph", 81, "c:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 987 }, -{ PROC_LINKS(show_the_log_graph, 0), "show_the_log_graph", 18, "Parser *log* and displays the 'log graph' UI", 44, "c:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 1035 }, -{ PROC_LINKS(copy, 0), "copy", 4, "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "c:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 19 }, -{ PROC_LINKS(cut, 0), "cut", 3, "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "c:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 28 }, -{ PROC_LINKS(paste, 0), "paste", 5, "At the cursor, insert the text at the top of the clipboard.", 59, "c:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 39 }, -{ PROC_LINKS(paste_next, 0), "paste_next", 10, "If the previous command was paste or paste_next, replaces the paste range with the next text down on the clipboard, otherwise operates as the paste command.", 156, "c:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 73 }, -{ PROC_LINKS(paste_and_indent, 0), "paste_and_indent", 16, "Paste from the top of clipboard and run auto-indent on the newly pasted text.", 77, "c:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 115 }, -{ PROC_LINKS(paste_next_and_indent, 0), "paste_next_and_indent", 21, "Paste the next item on the clipboard and run auto-indent on the newly pasted text.", 82, "c:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 122 }, -{ PROC_LINKS(execute_previous_cli, 0), "execute_previous_cli", 20, "If the command execute_any_cli has already been used, this will execute a CLI reusing the most recent buffer name and command.", 126, "c:\\4ed\\code\\custom\\4coder_cli_command.cpp", 41, 7 }, -{ PROC_LINKS(execute_any_cli, 0), "execute_any_cli", 15, "Queries for an output buffer name and system command, runs the system command as a CLI and prints the output to the specified buffer.", 133, "c:\\4ed\\code\\custom\\4coder_cli_command.cpp", 41, 22 }, -{ PROC_LINKS(build_search, 0), "build_search", 12, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*.", 153, "c:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 128 }, -{ PROC_LINKS(build_in_build_panel, 0), "build_in_build_panel", 20, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*. Puts the *compilation* buffer in a panel at the footer of the current view.", 230, "c:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 163 }, -{ PROC_LINKS(close_build_panel, 0), "close_build_panel", 17, "If the special build panel is open, closes it.", 46, "c:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 178 }, -{ PROC_LINKS(change_to_build_panel, 0), "change_to_build_panel", 21, "If the special build panel is open, makes the build panel the active panel.", 75, "c:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 184 }, -{ PROC_LINKS(close_all_code, 0), "close_all_code", 14, "Closes any buffer with a filename ending with an extension configured to be recognized as a code file type.", 107, "c:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 917 }, -{ PROC_LINKS(open_all_code, 0), "open_all_code", 13, "Open all code in the current directory. File types are determined by extensions. An extension is considered code based on the extensions specified in 4coder.config.", 164, "c:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 923 }, -{ PROC_LINKS(open_all_code_recursive, 0), "open_all_code_recursive", 23, "Works as open_all_code but also runs in all subdirectories.", 59, "c:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 929 }, -{ PROC_LINKS(load_project, 0), "load_project", 12, "Looks for a project.4coder file in the current directory and tries to load it. Looks in parent directories until a project file is found or there are no more parents.", 167, "c:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 937 }, -{ PROC_LINKS(project_fkey_command, 0), "project_fkey_command", 20, "Run an 'fkey command' configured in a project.4coder file. Determines the index of the 'fkey command' by which function key or numeric key was pressed to trigger the command.", 175, "c:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 944 }, -{ PROC_LINKS(project_go_to_root_directory, 0), "project_go_to_root_directory", 28, "Changes 4coder's hot directory to the root directory of the currently loaded project. With no loaded project nothing hapepns.", 125, "c:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 967 }, -{ PROC_LINKS(setup_new_project, 0), "setup_new_project", 17, "Queries the user for several configuration options and initializes a new 4coder project with build scripts for every OS.", 120, "c:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1299 }, -{ PROC_LINKS(setup_build_bat, 0), "setup_build_bat", 15, "Queries the user for several configuration options and initializes a new build batch script.", 92, "c:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1306 }, -{ PROC_LINKS(setup_build_sh, 0), "setup_build_sh", 14, "Queries the user for several configuration options and initializes a new build shell script.", 92, "c:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1312 }, -{ PROC_LINKS(setup_build_bat_and_sh, 0), "setup_build_bat_and_sh", 22, "Queries the user for several configuration options and initializes a new build batch script.", 92, "c:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1318 }, -{ PROC_LINKS(project_command_lister, 0), "project_command_lister", 22, "Open a lister of all commands in the currently loaded project.", 62, "c:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1333 }, -{ PROC_LINKS(list_all_functions_current_buffer, 0), "list_all_functions_current_buffer", 33, "Creates a jump list of lines of the current buffer that appear to define or declare functions.", 94, "c:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 267 }, -{ PROC_LINKS(list_all_functions_current_buffer_lister, 0), "list_all_functions_current_buffer_lister", 40, "Creates a lister of locations that look like function definitions and declarations in the buffer.", 97, "c:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 277 }, -{ PROC_LINKS(list_all_functions_all_buffers, 0), "list_all_functions_all_buffers", 30, "Creates a jump list of lines from all buffers that appear to define or declare functions.", 89, "c:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 289 }, -{ PROC_LINKS(list_all_functions_all_buffers_lister, 0), "list_all_functions_all_buffers_lister", 37, "Creates a lister of locations that look like function definitions and declarations all buffers.", 95, "c:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 295 }, -{ PROC_LINKS(select_surrounding_scope, 0), "select_surrounding_scope", 24, "Finds the scope enclosed by '{' '}' surrounding the cursor and puts the cursor and mark on the '{' and '}'.", 107, "c:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 128 }, -{ PROC_LINKS(select_next_scope_absolute, 0), "select_next_scope_absolute", 26, "Finds the first scope started by '{' after the cursor and puts the cursor and mark on the '{' and '}'.", 102, "c:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 153 }, -{ PROC_LINKS(select_next_scope_after_current, 0), "select_next_scope_after_current", 31, "Finds the first scope started by '{' after the mark and puts the cursor and mark on the '{' and '}'. This command is meant to be used after a scope is already selected so that it will have the effect of selecting the next scope after the current scope.", 253, "c:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 162 }, -{ PROC_LINKS(select_prev_scope_absolute, 0), "select_prev_scope_absolute", 26, "Finds the first scope started by '{' before the cursor and puts the cursor and mark on the '{' and '}'.", 103, "c:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 171 }, -{ PROC_LINKS(place_in_scope, 0), "place_in_scope", 14, "Wraps the code contained in the range between cursor and mark with a new curly brace scope.", 91, "c:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 188 }, -{ PROC_LINKS(delete_current_scope, 0), "delete_current_scope", 20, "Deletes the braces surrounding the currently selected scope. Leaves the contents within the scope.", 99, "c:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 194 }, -{ PROC_LINKS(open_long_braces, 0), "open_long_braces", 16, "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 46 }, -{ PROC_LINKS(open_long_braces_semicolon, 0), "open_long_braces_semicolon", 26, "At the cursor, insert a '{' and '};' separated by a blank line.", 63, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 54 }, -{ PROC_LINKS(open_long_braces_break, 0), "open_long_braces_break", 22, "At the cursor, insert a '{' and '}break;' separated by a blank line.", 68, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 62 }, -{ PROC_LINKS(if0_off, 0), "if0_off", 7, "Surround the range between the cursor and mark with an '#if 0' and an '#endif'", 78, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 70 }, -{ PROC_LINKS(write_todo, 0), "write_todo", 10, "At the cursor, insert a '// TODO' comment, includes user name if it was specified in config.4coder.", 99, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 76 }, -{ PROC_LINKS(write_hack, 0), "write_hack", 10, "At the cursor, insert a '// HACK' comment, includes user name if it was specified in config.4coder.", 99, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 82 }, -{ PROC_LINKS(write_note, 0), "write_note", 10, "At the cursor, insert a '// NOTE' comment, includes user name if it was specified in config.4coder.", 99, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 88 }, -{ PROC_LINKS(write_block, 0), "write_block", 11, "At the cursor, insert a block comment.", 38, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 94 }, -{ PROC_LINKS(write_zero_struct, 0), "write_zero_struct", 17, "At the cursor, insert a ' = {};'.", 33, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 100 }, -{ PROC_LINKS(comment_line, 0), "comment_line", 12, "Insert '//' at the beginning of the line after leading whitespace.", 66, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 125 }, -{ PROC_LINKS(uncomment_line, 0), "uncomment_line", 14, "If present, delete '//' at the beginning of the line after leading whitespace.", 78, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 137 }, -{ PROC_LINKS(comment_line_toggle, 0), "comment_line_toggle", 19, "Turns uncommented lines into commented lines and vice versa for comments starting with '//'.", 92, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 149 }, -{ PROC_LINKS(snippet_lister, 0), "snippet_lister", 14, "Opens a snippet lister for inserting whole pre-written snippets of text.", 72, "c:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 233 }, -{ PROC_LINKS(miblo_increment_basic, 0), "miblo_increment_basic", 21, "Increment an integer under the cursor by one.", 45, "c:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 29 }, -{ PROC_LINKS(miblo_decrement_basic, 0), "miblo_decrement_basic", 21, "Decrement an integer under the cursor by one.", 45, "c:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 44 }, -{ PROC_LINKS(miblo_increment_time_stamp, 0), "miblo_increment_time_stamp", 26, "Increment a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 231 }, -{ PROC_LINKS(miblo_decrement_time_stamp, 0), "miblo_decrement_time_stamp", 26, "Decrement a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 237 }, -{ PROC_LINKS(miblo_increment_time_stamp_minute, 0), "miblo_increment_time_stamp_minute", 33, "Increment a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 243 }, -{ PROC_LINKS(miblo_decrement_time_stamp_minute, 0), "miblo_decrement_time_stamp_minute", 33, "Decrement a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 249 }, -{ PROC_LINKS(set_bindings_choose, 0), "set_bindings_choose", 19, "Remap keybindings using the 'choose' mapping rule.", 50, "c:\\4ed\\code\\custom\\4coder_remapping_commands.cpp", 48, 41 }, -{ PROC_LINKS(set_bindings_default, 0), "set_bindings_default", 20, "Remap keybindings using the 'default' mapping rule.", 51, "c:\\4ed\\code\\custom\\4coder_remapping_commands.cpp", 48, 51 }, +{ PROC_LINKS(set_bindings_default, 0), "set_bindings_default", 20, "Remap keybindings using the 'default' mapping rule.", 51, "w:\\4ed\\code\\custom\\4coder_remapping_commands.cpp", 48, 44 }, +{ PROC_LINKS(seek_beginning_of_textual_line, 0), "seek_beginning_of_textual_line", 30, "Seeks the cursor to the beginning of the line across all text.", 62, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2237 }, +{ PROC_LINKS(seek_end_of_textual_line, 0), "seek_end_of_textual_line", 24, "Seeks the cursor to the end of the line across all text.", 56, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2243 }, +{ PROC_LINKS(seek_beginning_of_line, 0), "seek_beginning_of_line", 22, "Seeks the cursor to the beginning of the visual line.", 53, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2249 }, +{ PROC_LINKS(seek_end_of_line, 0), "seek_end_of_line", 16, "Seeks the cursor to the end of the visual line.", 47, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2255 }, +{ PROC_LINKS(goto_beginning_of_file, 0), "goto_beginning_of_file", 22, "Sets the cursor to the beginning of the file.", 45, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2261 }, +{ PROC_LINKS(goto_end_of_file, 0), "goto_end_of_file", 16, "Sets the cursor to the end of the file.", 39, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2269 }, +{ PROC_LINKS(change_active_panel, 0), "change_active_panel", 19, "Change the currently active panel, moving to the panel with the next highest view_id.", 85, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 196 }, +{ PROC_LINKS(change_active_panel_backwards, 0), "change_active_panel_backwards", 29, "Change the currently active panel, moving to the panel with the next lowest view_id.", 84, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 206 }, +{ PROC_LINKS(open_panel_vsplit, 0), "open_panel_vsplit", 17, "Create a new panel by vertically splitting the active panel.", 60, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 216 }, +{ PROC_LINKS(open_panel_hsplit, 0), "open_panel_hsplit", 17, "Create a new panel by horizontally splitting the active panel.", 62, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 226 }, +{ PROC_LINKS(suppress_mouse, 0), "suppress_mouse", 14, "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 289 }, +{ PROC_LINKS(allow_mouse, 0), "allow_mouse", 11, "Shows the mouse and causes all mouse input to be processed normally.", 68, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 295 }, +{ PROC_LINKS(toggle_mouse, 0), "toggle_mouse", 12, "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 301 }, +{ PROC_LINKS(set_mode_to_original, 0), "set_mode_to_original", 20, "Sets the edit mode to 4coder original.", 38, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 307 }, +{ PROC_LINKS(set_mode_to_notepad_like, 0), "set_mode_to_notepad_like", 24, "Sets the edit mode to Notepad like.", 35, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 313 }, +{ PROC_LINKS(toggle_highlight_line_at_cursor, 0), "toggle_highlight_line_at_cursor", 31, "Toggles the line highlight at the cursor.", 41, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 319 }, +{ PROC_LINKS(toggle_highlight_enclosing_scopes, 0), "toggle_highlight_enclosing_scopes", 33, "In code files scopes surrounding the cursor are highlighted with distinguishing colors.", 87, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 325 }, +{ PROC_LINKS(toggle_paren_matching_helper, 0), "toggle_paren_matching_helper", 28, "In code files matching parentheses pairs are colored with distinguishing colors.", 80, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 331 }, +{ PROC_LINKS(toggle_fullscreen, 0), "toggle_fullscreen", 17, "Toggle fullscreen mode on or off. The change(s) do not take effect until the next frame.", 89, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 337 }, +{ PROC_LINKS(remap_interactive, 0), "remap_interactive", 17, "Switch to a named key binding map.", 34, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 345 }, +{ PROC_LINKS(write_text_input, 0), "write_text_input", 16, "Inserts whatever character was used to trigger this command.", 60, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 58 }, +{ PROC_LINKS(write_space, 0), "write_space", 11, "Inserts an underscore.", 22, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 66 }, +{ PROC_LINKS(write_underscore, 0), "write_underscore", 16, "Inserts an underscore.", 22, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 72 }, +{ PROC_LINKS(delete_char, 0), "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 78 }, +{ PROC_LINKS(backspace_char, 0), "backspace_char", 14, "Deletes the character to the left of the cursor.", 48, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 95 }, +{ PROC_LINKS(set_mark, 0), "set_mark", 8, "Sets the mark to the current position of the cursor.", 52, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 114 }, +{ PROC_LINKS(cursor_mark_swap, 0), "cursor_mark_swap", 16, "Swaps the position of the cursor and the mark.", 46, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 123 }, +{ PROC_LINKS(delete_range, 0), "delete_range", 12, "Deletes the text in the range between the cursor and the mark.", 62, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 133 }, +{ PROC_LINKS(backspace_alpha_numeric_boundary, 0), "backspace_alpha_numeric_boundary", 32, "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 153 }, +{ PROC_LINKS(delete_alpha_numeric_boundary, 0), "delete_alpha_numeric_boundary", 29, "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 161 }, +{ PROC_LINKS(snipe_backward_whitespace_or_token_boundary, 0), "snipe_backward_whitespace_or_token_boundary", 43, "Delete a single, whole token on or to the left of the cursor and post it to the clipboard.", 90, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 181 }, +{ PROC_LINKS(snipe_forward_whitespace_or_token_boundary, 0), "snipe_forward_whitespace_or_token_boundary", 42, "Delete a single, whole token on or to the right of the cursor and post it to the clipboard.", 91, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 189 }, +{ PROC_LINKS(center_view, 0), "center_view", 11, "Centers the view vertically on the line on which the cursor sits.", 65, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 199 }, +{ PROC_LINKS(left_adjust_view, 0), "left_adjust_view", 16, "Sets the left size of the view near the x position of the cursor.", 65, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 213 }, +{ PROC_LINKS(click_set_cursor_and_mark, 0), "click_set_cursor_and_mark", 25, "Sets the cursor position and mark to the mouse position.", 56, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 225 }, +{ PROC_LINKS(click_set_cursor, 0), "click_set_cursor", 16, "Sets the cursor position to the mouse position.", 47, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 237 }, +{ PROC_LINKS(click_set_cursor_if_lbutton, 0), "click_set_cursor_if_lbutton", 27, "If the mouse left button is pressed, sets the cursor position to the mouse position.", 84, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 249 }, +{ PROC_LINKS(click_set_mark, 0), "click_set_mark", 14, "Sets the mark position to the mouse position.", 45, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 263 }, +{ PROC_LINKS(mouse_wheel_scroll, 0), "mouse_wheel_scroll", 18, "Reads the scroll wheel value from the mouse state and scrolls accordingly.", 74, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 275 }, +{ PROC_LINKS(move_up, 0), "move_up", 7, "Moves the cursor up one line.", 29, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 336 }, +{ PROC_LINKS(move_down, 0), "move_down", 9, "Moves the cursor down one line.", 31, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 342 }, +{ PROC_LINKS(move_up_10, 0), "move_up_10", 10, "Moves the cursor up ten lines.", 30, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 348 }, +{ PROC_LINKS(move_down_10, 0), "move_down_10", 12, "Moves the cursor down ten lines.", 32, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 354 }, +{ PROC_LINKS(move_down_textual, 0), "move_down_textual", 17, "Moves down to the next line of actual text, regardless of line wrapping.", 72, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 360 }, +{ PROC_LINKS(page_up, 0), "page_up", 7, "Scrolls the view up one view height and moves the cursor up one view height.", 76, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 370 }, +{ PROC_LINKS(page_down, 0), "page_down", 9, "Scrolls the view down one view height and moves the cursor down one view height.", 80, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 378 }, +{ PROC_LINKS(move_up_to_blank_line, 0), "move_up_to_blank_line", 21, "Seeks the cursor up to the next blank line.", 43, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 408 }, +{ PROC_LINKS(move_down_to_blank_line, 0), "move_down_to_blank_line", 23, "Seeks the cursor down to the next blank line.", 45, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 414 }, +{ PROC_LINKS(move_up_to_blank_line_skip_whitespace, 0), "move_up_to_blank_line_skip_whitespace", 37, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 420 }, +{ PROC_LINKS(move_down_to_blank_line_skip_whitespace, 0), "move_down_to_blank_line_skip_whitespace", 39, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 426 }, +{ PROC_LINKS(move_up_to_blank_line_end, 0), "move_up_to_blank_line_end", 25, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 432 }, +{ PROC_LINKS(move_down_to_blank_line_end, 0), "move_down_to_blank_line_end", 27, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 438 }, +{ PROC_LINKS(move_left, 0), "move_left", 9, "Moves the cursor one character to the left.", 43, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 444 }, +{ PROC_LINKS(move_right, 0), "move_right", 10, "Moves the cursor one character to the right.", 44, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 456 }, +{ PROC_LINKS(move_right_whitespace_boundary, 0), "move_right_whitespace_boundary", 30, "Seek right for the next boundary between whitespace and non-whitespace.", 71, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 478 }, +{ PROC_LINKS(move_left_whitespace_boundary, 0), "move_left_whitespace_boundary", 29, "Seek left for the next boundary between whitespace and non-whitespace.", 70, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 486 }, +{ PROC_LINKS(move_right_token_boundary, 0), "move_right_token_boundary", 25, "Seek right for the next end of a token.", 39, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 494 }, +{ PROC_LINKS(move_left_token_boundary, 0), "move_left_token_boundary", 24, "Seek left for the next beginning of a token.", 44, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 502 }, +{ PROC_LINKS(move_right_whitespace_or_token_boundary, 0), "move_right_whitespace_or_token_boundary", 39, "Seek right for the next end of a token or boundary between whitespace and non-whitespace.", 89, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 510 }, +{ PROC_LINKS(move_left_whitespace_or_token_boundary, 0), "move_left_whitespace_or_token_boundary", 38, "Seek left for the next end of a token or boundary between whitespace and non-whitespace.", 88, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 518 }, +{ PROC_LINKS(move_right_alpha_numeric_boundary, 0), "move_right_alpha_numeric_boundary", 33, "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 526 }, +{ PROC_LINKS(move_left_alpha_numeric_boundary, 0), "move_left_alpha_numeric_boundary", 32, "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 534 }, +{ PROC_LINKS(move_right_alpha_numeric_or_camel_boundary, 0), "move_right_alpha_numeric_or_camel_boundary", 42, "Seek right for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 107, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 542 }, +{ PROC_LINKS(move_left_alpha_numeric_or_camel_boundary, 0), "move_left_alpha_numeric_or_camel_boundary", 41, "Seek left for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 106, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 550 }, +{ PROC_LINKS(select_all, 0), "select_all", 10, "Puts the cursor at the top of the file, and the mark at the bottom of the file.", 79, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 560 }, +{ PROC_LINKS(to_uppercase, 0), "to_uppercase", 12, "Converts all ascii text in the range between the cursor and the mark to uppercase.", 82, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 573 }, +{ PROC_LINKS(to_lowercase, 0), "to_lowercase", 12, "Converts all ascii text in the range between the cursor and the mark to lowercase.", 82, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 586 }, +{ PROC_LINKS(clean_all_lines, 0), "clean_all_lines", 15, "Removes trailing whitespace from all lines in the current buffer.", 65, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 599 }, +{ PROC_LINKS(basic_change_active_panel, 0), "basic_change_active_panel", 25, "Change the currently active panel, moving to the panel with the next highest view_id. Will not skipe the build panel if it is open.", 132, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 633 }, +{ PROC_LINKS(close_panel, 0), "close_panel", 11, "Closes the currently active panel if it is not the only panel open.", 67, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 641 }, +{ PROC_LINKS(show_scrollbar, 0), "show_scrollbar", 14, "Sets the current view to show it's scrollbar.", 45, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 650 }, +{ PROC_LINKS(hide_scrollbar, 0), "hide_scrollbar", 14, "Sets the current view to hide it's scrollbar.", 45, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 657 }, +{ PROC_LINKS(show_filebar, 0), "show_filebar", 12, "Sets the current view to show it's filebar.", 43, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 664 }, +{ PROC_LINKS(hide_filebar, 0), "hide_filebar", 12, "Sets the current view to hide it's filebar.", 43, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 671 }, +{ PROC_LINKS(toggle_filebar, 0), "toggle_filebar", 14, "Toggles the visibility status of the current view's filebar.", 60, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 678 }, +{ PROC_LINKS(toggle_fps_meter, 0), "toggle_fps_meter", 16, "Toggles the visibility of the FPS performance meter", 51, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 687 }, +{ PROC_LINKS(increase_face_size, 0), "increase_face_size", 18, "Increase the size of the face used by the current buffer.", 57, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 693 }, +{ PROC_LINKS(decrease_face_size, 0), "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 704 }, +{ PROC_LINKS(mouse_wheel_change_face_size, 0), "mouse_wheel_change_face_size", 28, "Reads the state of the mouse wheel and uses it to either increase or decrease the face size.", 92, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 715 }, +{ PROC_LINKS(toggle_virtual_whitespace, 0), "toggle_virtual_whitespace", 25, "Toggles the current buffer's virtual whitespace status.", 55, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 732 }, +{ PROC_LINKS(toggle_show_whitespace, 0), "toggle_show_whitespace", 22, "Toggles the current buffer's whitespace visibility status.", 58, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 741 }, +{ PROC_LINKS(toggle_line_numbers, 0), "toggle_line_numbers", 19, "Toggles the left margin line numbers.", 37, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 750 }, +{ PROC_LINKS(eol_dosify, 0), "eol_dosify", 10, "Puts the buffer in DOS line ending mode.", 40, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 756 }, +{ PROC_LINKS(eol_nixify, 0), "eol_nixify", 10, "Puts the buffer in NIX line ending mode.", 40, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 764 }, +{ PROC_LINKS(exit_4coder, 0), "exit_4coder", 11, "Attempts to close 4coder.", 25, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 772 }, +{ PROC_LINKS(goto_line, 0), "goto_line", 9, "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 780 }, +{ PROC_LINKS(search, 0), "search", 6, "Begins an incremental search down through the current buffer for a user specified string.", 89, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 970 }, +{ PROC_LINKS(reverse_search, 0), "reverse_search", 14, "Begins an incremental search up through the current buffer for a user specified string.", 87, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 976 }, +{ PROC_LINKS(search_identifier, 0), "search_identifier", 17, "Begins an incremental search down through the current buffer for the word or token under the cursor.", 100, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 982 }, +{ PROC_LINKS(reverse_search_identifier, 0), "reverse_search_identifier", 25, "Begins an incremental search up through the current buffer for the word or token under the cursor.", 98, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 993 }, +{ PROC_LINKS(replace_in_range, 0), "replace_in_range", 16, "Queries the user for a needle and string. Replaces all occurences of needle with string in the range between cursor and the mark in the active buffer.", 150, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1044 }, +{ PROC_LINKS(replace_in_buffer, 0), "replace_in_buffer", 17, "Queries the user for a needle and string. Replaces all occurences of needle with string in the active buffer.", 109, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1053 }, +{ PROC_LINKS(replace_in_all_buffers, 0), "replace_in_all_buffers", 22, "Queries the user for a needle and string. Replaces all occurences of needle with string in all editable buffers.", 112, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1062 }, +{ PROC_LINKS(query_replace, 0), "query_replace", 13, "Queries the user for two strings, and incrementally replaces every occurence of the first string with the second string.", 120, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1152 }, +{ PROC_LINKS(query_replace_identifier, 0), "query_replace_identifier", 24, "Queries the user for a string, and incrementally replace every occurence of the word or token found at the cursor with the specified string.", 140, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1172 }, +{ PROC_LINKS(query_replace_selection, 0), "query_replace_selection", 23, "Queries the user for a string, and incrementally replace every occurence of the string found in the selected range with the specified string.", 141, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1188 }, +{ PROC_LINKS(save_all_dirty_buffers, 0), "save_all_dirty_buffers", 22, "Saves all buffers marked dirty (showing the '*' indicator).", 59, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1223 }, +{ PROC_LINKS(delete_file_query, 0), "delete_file_query", 17, "Deletes the file of the current buffer if 4coder has the appropriate access rights. Will ask the user for confirmation first.", 125, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1248 }, +{ PROC_LINKS(save_to_query, 0), "save_to_query", 13, "Queries the user for a file name and saves the contents of the current buffer, altering the buffer's name too.", 110, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1286 }, +{ PROC_LINKS(rename_file_query, 0), "rename_file_query", 17, "Queries the user for a new name and renames the file of the current buffer, altering the buffer's name too.", 107, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1318 }, +{ PROC_LINKS(make_directory_query, 0), "make_directory_query", 20, "Queries the user for a name and creates a new directory with the given name.", 76, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1355 }, +{ PROC_LINKS(move_line_up, 0), "move_line_up", 12, "Swaps the line under the cursor with the line above it, and moves the cursor up with it.", 88, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1388 }, +{ PROC_LINKS(move_line_down, 0), "move_line_down", 14, "Swaps the line under the cursor with the line below it, and moves the cursor down with it.", 90, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1394 }, +{ PROC_LINKS(duplicate_line, 0), "duplicate_line", 14, "Create a copy of the line on which the cursor sits.", 51, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1400 }, +{ PROC_LINKS(delete_line, 0), "delete_line", 11, "Delete the line the on which the cursor sits.", 45, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1414 }, +{ PROC_LINKS(open_file_in_quotes, 0), "open_file_in_quotes", 19, "Reads a filename from surrounding '\"' characters and attempts to open the corresponding file.", 94, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1479 }, +{ PROC_LINKS(open_matching_file_cpp, 0), "open_matching_file_cpp", 22, "If the current file is a *.cpp or *.h, attempts to open the corresponding *.h or *.cpp file in the other view.", 110, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1511 }, +{ PROC_LINKS(view_buffer_other_panel, 0), "view_buffer_other_panel", 23, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1524 }, +{ PROC_LINKS(swap_buffers_between_panels, 0), "swap_buffers_between_panels", 27, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1536 }, +{ PROC_LINKS(kill_buffer, 0), "kill_buffer", 11, "Kills the current buffer.", 25, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1572 }, +{ PROC_LINKS(save, 0), "save", 4, "Saves the current buffer.", 25, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1580 }, +{ PROC_LINKS(reopen, 0), "reopen", 6, "Reopen the current buffer from the hard drive.", 46, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1590 }, +{ PROC_LINKS(undo, 0), "undo", 4, "Advances backwards through the undo history of the current buffer.", 66, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1817 }, +{ PROC_LINKS(redo, 0), "redo", 4, "Advances forwards through the undo history of the current buffer.", 65, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1830 }, +{ PROC_LINKS(undo_all_buffers, 0), "undo_all_buffers", 16, "Advances backward through the undo history in the buffer containing the most recent regular edit.", 97, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1844 }, +{ PROC_LINKS(redo_all_buffers, 0), "redo_all_buffers", 16, "Advances forward through the undo history in the buffer containing the most recent regular edit.", 96, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1915 }, +{ PROC_LINKS(open_in_other, 0), "open_in_other", 13, "Interactively opens a file in the other panel.", 46, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 2016 }, +{ PROC_LINKS(lister__quit, 0), "lister__quit", 12, "A lister mode command that quits the list without executing any actions.", 72, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 8 }, +{ PROC_LINKS(lister__activate, 0), "lister__activate", 16, "A lister mode command that activates the list's action on the highlighted item.", 79, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 15 }, +{ PROC_LINKS(lister__write_character, 0), "lister__write_character", 23, "A lister mode command that dispatches to the lister's write character handler.", 78, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 30 }, +{ PROC_LINKS(lister__backspace_text_field, 0), "lister__backspace_text_field", 28, "A lister mode command that dispatches to the lister's backspace text field handler.", 83, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 40 }, +{ PROC_LINKS(lister__move_up, 0), "lister__move_up", 15, "A lister mode command that dispatches to the lister's navigate up handler.", 74, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 50 }, +{ PROC_LINKS(lister__move_down, 0), "lister__move_down", 17, "A lister mode command that dispatches to the lister's navigate down handler.", 76, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 60 }, +{ PROC_LINKS(lister__wheel_scroll, 0), "lister__wheel_scroll", 20, "A lister mode command that scrolls the list in response to the mouse wheel.", 75, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 70 }, +{ PROC_LINKS(lister__mouse_press, 0), "lister__mouse_press", 19, "A lister mode command that beings a click interaction with a list item under the mouse.", 87, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 84 }, +{ PROC_LINKS(lister__mouse_release, 0), "lister__mouse_release", 21, "A lister mode command that ends a click interaction with a list item under the mouse, possibly activating it.", 109, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 95 }, +{ PROC_LINKS(lister__repaint, 0), "lister__repaint", 15, "A lister mode command that updates the lists UI data.", 53, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 110 }, +{ PROC_LINKS(lister__write_character__default, 0), "lister__write_character__default", 32, "A lister mode command that inserts a new character to the text field.", 69, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 120 }, +{ PROC_LINKS(lister__backspace_text_field__default, 0), "lister__backspace_text_field__default", 37, "A lister mode command that backspaces one character from the text field.", 72, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 139 }, +{ PROC_LINKS(lister__move_up__default, 0), "lister__move_up__default", 24, "A lister mode command that moves the highlighted item one up in the list.", 73, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 153 }, +{ PROC_LINKS(lister__move_down__default, 0), "lister__move_down__default", 26, "A lister mode command that moves the highlighted item one down in the list.", 75, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 168 }, +{ PROC_LINKS(lister__write_character__file_path, 0), "lister__write_character__file_path", 34, "A lister mode command that inserts a character into the text field of a file system list.", 89, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 183 }, +{ PROC_LINKS(lister__backspace_text_field__file_path, 0), "lister__backspace_text_field__file_path", 39, "A lister mode command that backspaces one character from the text field of a file system list.", 94, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 208 }, +{ PROC_LINKS(lister__write_character__fixed_list, 0), "lister__write_character__fixed_list", 35, "A lister mode command that handles input for the fixed sure to kill list.", 73, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 249 }, +{ PROC_LINKS(interactive_switch_buffer, 0), "interactive_switch_buffer", 25, "Interactively switch to an open buffer.", 39, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 718 }, +{ PROC_LINKS(interactive_kill_buffer, 0), "interactive_kill_buffer", 23, "Interactively kill an open buffer.", 34, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 737 }, +{ PROC_LINKS(interactive_open_or_new, 0), "interactive_open_or_new", 23, "Interactively open a file out of the file system.", 49, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 808 }, +{ PROC_LINKS(interactive_new, 0), "interactive_new", 15, "Interactively creates a new file.", 33, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 847 }, +{ PROC_LINKS(interactive_open, 0), "interactive_open", 16, "Interactively opens a file.", 27, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 880 }, +{ PROC_LINKS(command_lister, 0), "command_lister", 14, "Opens an interactive list of all registered commands.", 53, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 960 }, +{ PROC_LINKS(auto_tab_whole_file, 0), "auto_tab_whole_file", 19, "Audo-indents the entire current buffer.", 39, "w:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 322 }, +{ PROC_LINKS(auto_tab_line_at_cursor, 0), "auto_tab_line_at_cursor", 23, "Auto-indents the line on which the cursor sits.", 47, "w:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 331 }, +{ PROC_LINKS(auto_tab_range, 0), "auto_tab_range", 14, "Auto-indents the range between the cursor and the mark.", 55, "w:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 341 }, +{ PROC_LINKS(write_and_auto_tab, 0), "write_and_auto_tab", 18, "Inserts a character and auto-indents the line on which the cursor sits.", 71, "w:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 351 }, +{ PROC_LINKS(list_all_locations, 0), "list_all_locations", 18, "Queries the user for a string and lists all exact case-sensitive matches found in all open buffers.", 99, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 166 }, +{ PROC_LINKS(list_all_substring_locations, 0), "list_all_substring_locations", 28, "Queries the user for a string and lists all case-sensitive substring matches found in all open buffers.", 103, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 172 }, +{ PROC_LINKS(list_all_locations_case_insensitive, 0), "list_all_locations_case_insensitive", 35, "Queries the user for a string and lists all exact case-insensitive matches found in all open buffers.", 101, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 178 }, +{ PROC_LINKS(list_all_substring_locations_case_insensitive, 0), "list_all_substring_locations_case_insensitive", 45, "Queries the user for a string and lists all case-insensitive substring matches found in all open buffers.", 105, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 184 }, +{ PROC_LINKS(list_all_locations_of_identifier, 0), "list_all_locations_of_identifier", 32, "Reads a token or word under the cursor and lists all exact case-sensitive mathces in all open buffers.", 102, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 190 }, +{ PROC_LINKS(list_all_locations_of_identifier_case_insensitive, 0), "list_all_locations_of_identifier_case_insensitive", 49, "Reads a token or word under the cursor and lists all exact case-insensitive mathces in all open buffers.", 104, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 196 }, +{ PROC_LINKS(list_all_locations_of_selection, 0), "list_all_locations_of_selection", 31, "Reads the string in the selected range and lists all exact case-sensitive mathces in all open buffers.", 102, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 202 }, +{ PROC_LINKS(list_all_locations_of_selection_case_insensitive, 0), "list_all_locations_of_selection_case_insensitive", 48, "Reads the string in the selected range and lists all exact case-insensitive mathces in all open buffers.", 104, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 208 }, +{ PROC_LINKS(list_all_locations_of_type_definition, 0), "list_all_locations_of_type_definition", 37, "Queries user for string, lists all locations of strings that appear to define a type whose name matches the input string.", 121, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 214 }, +{ PROC_LINKS(list_all_locations_of_type_definition_of_identifier, 0), "list_all_locations_of_type_definition_of_identifier", 51, "Reads a token or word under the cursor and lists all locations of strings that appear to define a type whose name matches it.", 125, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 222 }, +{ PROC_LINKS(word_complete, 0), "word_complete", 13, "Iteratively tries completing the word to the left of the cursor with other words in open buffers that have the same prefix string.", 130, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 378 }, +{ PROC_LINKS(goto_jump_at_cursor, 0), "goto_jump_at_cursor", 19, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 346 }, +{ PROC_LINKS(goto_jump_at_cursor_same_panel, 0), "goto_jump_at_cursor_same_panel", 30, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list.", 167, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 373 }, +{ PROC_LINKS(goto_next_jump, 0), "goto_next_jump", 14, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 462 }, +{ PROC_LINKS(goto_prev_jump, 0), "goto_prev_jump", 14, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 479 }, +{ PROC_LINKS(goto_next_jump_no_skips, 0), "goto_next_jump_no_skips", 23, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 492 }, +{ PROC_LINKS(goto_prev_jump_no_skips, 0), "goto_prev_jump_no_skips", 23, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 509 }, +{ PROC_LINKS(goto_first_jump, 0), "goto_first_jump", 15, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 523 }, +{ PROC_LINKS(goto_first_jump_same_panel_sticky, 0), "goto_first_jump_same_panel_sticky", 33, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer and views the buffer in the panel where the jump list was.", 153, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 540 }, +{ PROC_LINKS(newline_or_goto_position, 0), "newline_or_goto_position", 24, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 562 }, +{ PROC_LINKS(newline_or_goto_position_same_panel, 0), "newline_or_goto_position_same_panel", 35, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 579 }, +{ PROC_LINKS(view_jump_list_with_lister, 0), "view_jump_list_with_lister", 26, "When executed on a buffer with jumps, creates a persistent lister for all the jumps", 83, "w:\\4ed\\code\\custom\\4coder_jump_lister.cpp", 41, 102 }, +{ PROC_LINKS(log_graph__escape, 0), "log_graph__escape", 17, "Ends the log grapher", 20, "w:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 906 }, +{ PROC_LINKS(log_graph__scroll_wheel, 0), "log_graph__scroll_wheel", 23, "Scrolls the log graph", 21, "w:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 915 }, +{ PROC_LINKS(log_graph__page_up, 0), "log_graph__page_up", 18, "Scroll the log graph up one whole page", 38, "w:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 926 }, +{ PROC_LINKS(log_graph__page_down, 0), "log_graph__page_down", 20, "Scroll the log graph down one whole page", 40, "w:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 934 }, +{ PROC_LINKS(log_graph__click_select_event, 0), "log_graph__click_select_event", 29, "Select the event record at the mouse point in the log graph", 59, "w:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 968 }, +{ PROC_LINKS(log_graph__click_jump_to_event_source, 0), "log_graph__click_jump_to_event_source", 37, "Jump to the code that logged the event record at the mouse point in the log graph", 81, "w:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 987 }, +{ PROC_LINKS(show_the_log_graph, 0), "show_the_log_graph", 18, "Parser *log* and displays the 'log graph' UI", 44, "w:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 1035 }, +{ PROC_LINKS(copy, 0), "copy", 4, "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 19 }, +{ PROC_LINKS(cut, 0), "cut", 3, "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 28 }, +{ PROC_LINKS(paste, 0), "paste", 5, "At the cursor, insert the text at the top of the clipboard.", 59, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 39 }, +{ PROC_LINKS(paste_next, 0), "paste_next", 10, "If the previous command was paste or paste_next, replaces the paste range with the next text down on the clipboard, otherwise operates as the paste command.", 156, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 73 }, +{ PROC_LINKS(paste_and_indent, 0), "paste_and_indent", 16, "Paste from the top of clipboard and run auto-indent on the newly pasted text.", 77, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 115 }, +{ PROC_LINKS(paste_next_and_indent, 0), "paste_next_and_indent", 21, "Paste the next item on the clipboard and run auto-indent on the newly pasted text.", 82, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 122 }, +{ PROC_LINKS(execute_previous_cli, 0), "execute_previous_cli", 20, "If the command execute_any_cli has already been used, this will execute a CLI reusing the most recent buffer name and command.", 126, "w:\\4ed\\code\\custom\\4coder_cli_command.cpp", 41, 7 }, +{ PROC_LINKS(execute_any_cli, 0), "execute_any_cli", 15, "Queries for an output buffer name and system command, runs the system command as a CLI and prints the output to the specified buffer.", 133, "w:\\4ed\\code\\custom\\4coder_cli_command.cpp", 41, 22 }, +{ PROC_LINKS(build_search, 0), "build_search", 12, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*.", 153, "w:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 128 }, +{ PROC_LINKS(build_in_build_panel, 0), "build_in_build_panel", 20, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*. Puts the *compilation* buffer in a panel at the footer of the current view.", 230, "w:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 163 }, +{ PROC_LINKS(close_build_panel, 0), "close_build_panel", 17, "If the special build panel is open, closes it.", 46, "w:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 178 }, +{ PROC_LINKS(change_to_build_panel, 0), "change_to_build_panel", 21, "If the special build panel is open, makes the build panel the active panel.", 75, "w:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 184 }, +{ PROC_LINKS(close_all_code, 0), "close_all_code", 14, "Closes any buffer with a filename ending with an extension configured to be recognized as a code file type.", 107, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 917 }, +{ PROC_LINKS(open_all_code, 0), "open_all_code", 13, "Open all code in the current directory. File types are determined by extensions. An extension is considered code based on the extensions specified in 4coder.config.", 164, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 923 }, +{ PROC_LINKS(open_all_code_recursive, 0), "open_all_code_recursive", 23, "Works as open_all_code but also runs in all subdirectories.", 59, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 929 }, +{ PROC_LINKS(load_project, 0), "load_project", 12, "Looks for a project.4coder file in the current directory and tries to load it. Looks in parent directories until a project file is found or there are no more parents.", 167, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 937 }, +{ PROC_LINKS(project_fkey_command, 0), "project_fkey_command", 20, "Run an 'fkey command' configured in a project.4coder file. Determines the index of the 'fkey command' by which function key or numeric key was pressed to trigger the command.", 175, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 944 }, +{ PROC_LINKS(project_go_to_root_directory, 0), "project_go_to_root_directory", 28, "Changes 4coder's hot directory to the root directory of the currently loaded project. With no loaded project nothing hapepns.", 125, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 967 }, +{ PROC_LINKS(setup_new_project, 0), "setup_new_project", 17, "Queries the user for several configuration options and initializes a new 4coder project with build scripts for every OS.", 120, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1299 }, +{ PROC_LINKS(setup_build_bat, 0), "setup_build_bat", 15, "Queries the user for several configuration options and initializes a new build batch script.", 92, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1306 }, +{ PROC_LINKS(setup_build_sh, 0), "setup_build_sh", 14, "Queries the user for several configuration options and initializes a new build shell script.", 92, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1312 }, +{ PROC_LINKS(setup_build_bat_and_sh, 0), "setup_build_bat_and_sh", 22, "Queries the user for several configuration options and initializes a new build batch script.", 92, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1318 }, +{ PROC_LINKS(project_command_lister, 0), "project_command_lister", 22, "Open a lister of all commands in the currently loaded project.", 62, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1333 }, +{ PROC_LINKS(list_all_functions_current_buffer, 0), "list_all_functions_current_buffer", 33, "Creates a jump list of lines of the current buffer that appear to define or declare functions.", 94, "w:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 267 }, +{ PROC_LINKS(list_all_functions_current_buffer_lister, 0), "list_all_functions_current_buffer_lister", 40, "Creates a lister of locations that look like function definitions and declarations in the buffer.", 97, "w:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 277 }, +{ PROC_LINKS(list_all_functions_all_buffers, 0), "list_all_functions_all_buffers", 30, "Creates a jump list of lines from all buffers that appear to define or declare functions.", 89, "w:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 289 }, +{ PROC_LINKS(list_all_functions_all_buffers_lister, 0), "list_all_functions_all_buffers_lister", 37, "Creates a lister of locations that look like function definitions and declarations all buffers.", 95, "w:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 295 }, +{ PROC_LINKS(select_surrounding_scope, 0), "select_surrounding_scope", 24, "Finds the scope enclosed by '{' '}' surrounding the cursor and puts the cursor and mark on the '{' and '}'.", 107, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 128 }, +{ PROC_LINKS(select_next_scope_absolute, 0), "select_next_scope_absolute", 26, "Finds the first scope started by '{' after the cursor and puts the cursor and mark on the '{' and '}'.", 102, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 153 }, +{ PROC_LINKS(select_next_scope_after_current, 0), "select_next_scope_after_current", 31, "Finds the first scope started by '{' after the mark and puts the cursor and mark on the '{' and '}'. This command is meant to be used after a scope is already selected so that it will have the effect of selecting the next scope after the current scope.", 253, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 162 }, +{ PROC_LINKS(select_prev_scope_absolute, 0), "select_prev_scope_absolute", 26, "Finds the first scope started by '{' before the cursor and puts the cursor and mark on the '{' and '}'.", 103, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 171 }, +{ PROC_LINKS(place_in_scope, 0), "place_in_scope", 14, "Wraps the code contained in the range between cursor and mark with a new curly brace scope.", 91, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 188 }, +{ PROC_LINKS(delete_current_scope, 0), "delete_current_scope", 20, "Deletes the braces surrounding the currently selected scope. Leaves the contents within the scope.", 99, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 194 }, +{ PROC_LINKS(open_long_braces, 0), "open_long_braces", 16, "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 46 }, +{ PROC_LINKS(open_long_braces_semicolon, 0), "open_long_braces_semicolon", 26, "At the cursor, insert a '{' and '};' separated by a blank line.", 63, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 54 }, +{ PROC_LINKS(open_long_braces_break, 0), "open_long_braces_break", 22, "At the cursor, insert a '{' and '}break;' separated by a blank line.", 68, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 62 }, +{ PROC_LINKS(if0_off, 0), "if0_off", 7, "Surround the range between the cursor and mark with an '#if 0' and an '#endif'", 78, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 70 }, +{ PROC_LINKS(write_todo, 0), "write_todo", 10, "At the cursor, insert a '// TODO' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 76 }, +{ PROC_LINKS(write_hack, 0), "write_hack", 10, "At the cursor, insert a '// HACK' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 82 }, +{ PROC_LINKS(write_note, 0), "write_note", 10, "At the cursor, insert a '// NOTE' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 88 }, +{ PROC_LINKS(write_block, 0), "write_block", 11, "At the cursor, insert a block comment.", 38, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 94 }, +{ PROC_LINKS(write_zero_struct, 0), "write_zero_struct", 17, "At the cursor, insert a ' = {};'.", 33, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 100 }, +{ PROC_LINKS(comment_line, 0), "comment_line", 12, "Insert '//' at the beginning of the line after leading whitespace.", 66, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 125 }, +{ PROC_LINKS(uncomment_line, 0), "uncomment_line", 14, "If present, delete '//' at the beginning of the line after leading whitespace.", 78, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 137 }, +{ PROC_LINKS(comment_line_toggle, 0), "comment_line_toggle", 19, "Turns uncommented lines into commented lines and vice versa for comments starting with '//'.", 92, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 149 }, +{ PROC_LINKS(snippet_lister, 0), "snippet_lister", 14, "Opens a snippet lister for inserting whole pre-written snippets of text.", 72, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 233 }, +{ PROC_LINKS(miblo_increment_basic, 0), "miblo_increment_basic", 21, "Increment an integer under the cursor by one.", 45, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 29 }, +{ PROC_LINKS(miblo_decrement_basic, 0), "miblo_decrement_basic", 21, "Decrement an integer under the cursor by one.", 45, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 44 }, +{ 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, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 231 }, +{ 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, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 237 }, +{ 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, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 243 }, +{ 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, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 249 }, +{ PROC_LINKS(set_bindings_choose, 0), "set_bindings_choose", 19, "Remap keybindings using the 'choose' mapping rule.", 50, "w:\\4ed\\code\\custom\\4coder_remapping_commands.cpp", 48, 34 }, }; -static i32 fcoder_metacmd_ID_set_bindings_mac_default = 0; +static i32 fcoder_metacmd_ID_set_bindings_default = 0; static i32 fcoder_metacmd_ID_seek_beginning_of_textual_line = 1; static i32 fcoder_metacmd_ID_seek_end_of_textual_line = 2; static i32 fcoder_metacmd_ID_seek_beginning_of_line = 3; @@ -497,210 +497,210 @@ static i32 fcoder_metacmd_ID_toggle_highlight_enclosing_scopes = 17; static i32 fcoder_metacmd_ID_toggle_paren_matching_helper = 18; static i32 fcoder_metacmd_ID_toggle_fullscreen = 19; static i32 fcoder_metacmd_ID_remap_interactive = 20; -static i32 fcoder_metacmd_ID_write_character = 21; -static i32 fcoder_metacmd_ID_write_underscore = 22; -static i32 fcoder_metacmd_ID_delete_char = 23; -static i32 fcoder_metacmd_ID_backspace_char = 24; -static i32 fcoder_metacmd_ID_set_mark = 25; -static i32 fcoder_metacmd_ID_cursor_mark_swap = 26; -static i32 fcoder_metacmd_ID_delete_range = 27; -static i32 fcoder_metacmd_ID_backspace_alpha_numeric_boundary = 28; -static i32 fcoder_metacmd_ID_delete_alpha_numeric_boundary = 29; -static i32 fcoder_metacmd_ID_snipe_backward_whitespace_or_token_boundary = 30; -static i32 fcoder_metacmd_ID_snipe_forward_whitespace_or_token_boundary = 31; -static i32 fcoder_metacmd_ID_center_view = 32; -static i32 fcoder_metacmd_ID_left_adjust_view = 33; -static i32 fcoder_metacmd_ID_click_set_cursor_and_mark = 34; -static i32 fcoder_metacmd_ID_click_set_cursor = 35; -static i32 fcoder_metacmd_ID_click_set_cursor_if_lbutton = 36; -static i32 fcoder_metacmd_ID_click_set_mark = 37; -static i32 fcoder_metacmd_ID_mouse_wheel_scroll = 38; -static i32 fcoder_metacmd_ID_move_up = 39; -static i32 fcoder_metacmd_ID_move_down = 40; -static i32 fcoder_metacmd_ID_move_up_10 = 41; -static i32 fcoder_metacmd_ID_move_down_10 = 42; -static i32 fcoder_metacmd_ID_move_down_textual = 43; -static i32 fcoder_metacmd_ID_page_up = 44; -static i32 fcoder_metacmd_ID_page_down = 45; -static i32 fcoder_metacmd_ID_move_up_to_blank_line = 46; -static i32 fcoder_metacmd_ID_move_down_to_blank_line = 47; -static i32 fcoder_metacmd_ID_move_up_to_blank_line_skip_whitespace = 48; -static i32 fcoder_metacmd_ID_move_down_to_blank_line_skip_whitespace = 49; -static i32 fcoder_metacmd_ID_move_up_to_blank_line_end = 50; -static i32 fcoder_metacmd_ID_move_down_to_blank_line_end = 51; -static i32 fcoder_metacmd_ID_move_left = 52; -static i32 fcoder_metacmd_ID_move_right = 53; -static i32 fcoder_metacmd_ID_move_right_whitespace_boundary = 54; -static i32 fcoder_metacmd_ID_move_left_whitespace_boundary = 55; -static i32 fcoder_metacmd_ID_move_right_token_boundary = 56; -static i32 fcoder_metacmd_ID_move_left_token_boundary = 57; -static i32 fcoder_metacmd_ID_move_right_whitespace_or_token_boundary = 58; -static i32 fcoder_metacmd_ID_move_left_whitespace_or_token_boundary = 59; -static i32 fcoder_metacmd_ID_move_right_alpha_numeric_boundary = 60; -static i32 fcoder_metacmd_ID_move_left_alpha_numeric_boundary = 61; -static i32 fcoder_metacmd_ID_move_right_alpha_numeric_or_camel_boundary = 62; -static i32 fcoder_metacmd_ID_move_left_alpha_numeric_or_camel_boundary = 63; -static i32 fcoder_metacmd_ID_select_all = 64; -static i32 fcoder_metacmd_ID_to_uppercase = 65; -static i32 fcoder_metacmd_ID_to_lowercase = 66; -static i32 fcoder_metacmd_ID_clean_all_lines = 67; -static i32 fcoder_metacmd_ID_basic_change_active_panel = 68; -static i32 fcoder_metacmd_ID_close_panel = 69; -static i32 fcoder_metacmd_ID_show_scrollbar = 70; -static i32 fcoder_metacmd_ID_hide_scrollbar = 71; -static i32 fcoder_metacmd_ID_show_filebar = 72; -static i32 fcoder_metacmd_ID_hide_filebar = 73; -static i32 fcoder_metacmd_ID_toggle_filebar = 74; -static i32 fcoder_metacmd_ID_toggle_fps_meter = 75; -static i32 fcoder_metacmd_ID_increase_face_size = 76; -static i32 fcoder_metacmd_ID_decrease_face_size = 77; -static i32 fcoder_metacmd_ID_mouse_wheel_change_face_size = 78; -static i32 fcoder_metacmd_ID_toggle_virtual_whitespace = 79; -static i32 fcoder_metacmd_ID_toggle_show_whitespace = 80; -static i32 fcoder_metacmd_ID_toggle_line_numbers = 81; -static i32 fcoder_metacmd_ID_eol_dosify = 82; -static i32 fcoder_metacmd_ID_eol_nixify = 83; -static i32 fcoder_metacmd_ID_exit_4coder = 84; -static i32 fcoder_metacmd_ID_goto_line = 85; -static i32 fcoder_metacmd_ID_search = 86; -static i32 fcoder_metacmd_ID_reverse_search = 87; -static i32 fcoder_metacmd_ID_search_identifier = 88; -static i32 fcoder_metacmd_ID_reverse_search_identifier = 89; -static i32 fcoder_metacmd_ID_replace_in_range = 90; -static i32 fcoder_metacmd_ID_replace_in_buffer = 91; -static i32 fcoder_metacmd_ID_replace_in_all_buffers = 92; -static i32 fcoder_metacmd_ID_query_replace = 93; -static i32 fcoder_metacmd_ID_query_replace_identifier = 94; -static i32 fcoder_metacmd_ID_query_replace_selection = 95; -static i32 fcoder_metacmd_ID_save_all_dirty_buffers = 96; -static i32 fcoder_metacmd_ID_delete_file_query = 97; -static i32 fcoder_metacmd_ID_save_to_query = 98; -static i32 fcoder_metacmd_ID_rename_file_query = 99; -static i32 fcoder_metacmd_ID_make_directory_query = 100; -static i32 fcoder_metacmd_ID_move_line_up = 101; -static i32 fcoder_metacmd_ID_move_line_down = 102; -static i32 fcoder_metacmd_ID_duplicate_line = 103; -static i32 fcoder_metacmd_ID_delete_line = 104; -static i32 fcoder_metacmd_ID_open_file_in_quotes = 105; -static i32 fcoder_metacmd_ID_open_matching_file_cpp = 106; -static i32 fcoder_metacmd_ID_view_buffer_other_panel = 107; -static i32 fcoder_metacmd_ID_swap_buffers_between_panels = 108; -static i32 fcoder_metacmd_ID_kill_buffer = 109; -static i32 fcoder_metacmd_ID_save = 110; -static i32 fcoder_metacmd_ID_reopen = 111; -static i32 fcoder_metacmd_ID_undo = 112; -static i32 fcoder_metacmd_ID_redo = 113; -static i32 fcoder_metacmd_ID_undo_all_buffers = 114; -static i32 fcoder_metacmd_ID_redo_all_buffers = 115; -static i32 fcoder_metacmd_ID_open_in_other = 116; -static i32 fcoder_metacmd_ID_lister__quit = 117; -static i32 fcoder_metacmd_ID_lister__activate = 118; -static i32 fcoder_metacmd_ID_lister__write_character = 119; -static i32 fcoder_metacmd_ID_lister__backspace_text_field = 120; -static i32 fcoder_metacmd_ID_lister__move_up = 121; -static i32 fcoder_metacmd_ID_lister__move_down = 122; -static i32 fcoder_metacmd_ID_lister__wheel_scroll = 123; -static i32 fcoder_metacmd_ID_lister__mouse_press = 124; -static i32 fcoder_metacmd_ID_lister__mouse_release = 125; -static i32 fcoder_metacmd_ID_lister__repaint = 126; -static i32 fcoder_metacmd_ID_lister__write_character__default = 127; -static i32 fcoder_metacmd_ID_lister__backspace_text_field__default = 128; -static i32 fcoder_metacmd_ID_lister__move_up__default = 129; -static i32 fcoder_metacmd_ID_lister__move_down__default = 130; -static i32 fcoder_metacmd_ID_lister__write_character__file_path = 131; -static i32 fcoder_metacmd_ID_lister__backspace_text_field__file_path = 132; -static i32 fcoder_metacmd_ID_lister__write_character__fixed_list = 133; -static i32 fcoder_metacmd_ID_interactive_switch_buffer = 134; -static i32 fcoder_metacmd_ID_interactive_kill_buffer = 135; -static i32 fcoder_metacmd_ID_interactive_open_or_new = 136; -static i32 fcoder_metacmd_ID_interactive_new = 137; -static i32 fcoder_metacmd_ID_interactive_open = 138; -static i32 fcoder_metacmd_ID_command_lister = 139; -static i32 fcoder_metacmd_ID_auto_tab_whole_file = 140; -static i32 fcoder_metacmd_ID_auto_tab_line_at_cursor = 141; -static i32 fcoder_metacmd_ID_auto_tab_range = 142; -static i32 fcoder_metacmd_ID_write_and_auto_tab = 143; -static i32 fcoder_metacmd_ID_list_all_locations = 144; -static i32 fcoder_metacmd_ID_list_all_substring_locations = 145; -static i32 fcoder_metacmd_ID_list_all_locations_case_insensitive = 146; -static i32 fcoder_metacmd_ID_list_all_substring_locations_case_insensitive = 147; -static i32 fcoder_metacmd_ID_list_all_locations_of_identifier = 148; -static i32 fcoder_metacmd_ID_list_all_locations_of_identifier_case_insensitive = 149; -static i32 fcoder_metacmd_ID_list_all_locations_of_selection = 150; -static i32 fcoder_metacmd_ID_list_all_locations_of_selection_case_insensitive = 151; -static i32 fcoder_metacmd_ID_list_all_locations_of_type_definition = 152; -static i32 fcoder_metacmd_ID_list_all_locations_of_type_definition_of_identifier = 153; -static i32 fcoder_metacmd_ID_word_complete = 154; -static i32 fcoder_metacmd_ID_goto_jump_at_cursor = 155; -static i32 fcoder_metacmd_ID_goto_jump_at_cursor_same_panel = 156; -static i32 fcoder_metacmd_ID_goto_next_jump = 157; -static i32 fcoder_metacmd_ID_goto_prev_jump = 158; -static i32 fcoder_metacmd_ID_goto_next_jump_no_skips = 159; -static i32 fcoder_metacmd_ID_goto_prev_jump_no_skips = 160; -static i32 fcoder_metacmd_ID_goto_first_jump = 161; -static i32 fcoder_metacmd_ID_goto_first_jump_same_panel_sticky = 162; -static i32 fcoder_metacmd_ID_newline_or_goto_position = 163; -static i32 fcoder_metacmd_ID_newline_or_goto_position_same_panel = 164; -static i32 fcoder_metacmd_ID_view_jump_list_with_lister = 165; -static i32 fcoder_metacmd_ID_log_graph__escape = 166; -static i32 fcoder_metacmd_ID_log_graph__scroll_wheel = 167; -static i32 fcoder_metacmd_ID_log_graph__page_up = 168; -static i32 fcoder_metacmd_ID_log_graph__page_down = 169; -static i32 fcoder_metacmd_ID_log_graph__click_select_event = 170; -static i32 fcoder_metacmd_ID_log_graph__click_jump_to_event_source = 171; -static i32 fcoder_metacmd_ID_show_the_log_graph = 172; -static i32 fcoder_metacmd_ID_copy = 173; -static i32 fcoder_metacmd_ID_cut = 174; -static i32 fcoder_metacmd_ID_paste = 175; -static i32 fcoder_metacmd_ID_paste_next = 176; -static i32 fcoder_metacmd_ID_paste_and_indent = 177; -static i32 fcoder_metacmd_ID_paste_next_and_indent = 178; -static i32 fcoder_metacmd_ID_execute_previous_cli = 179; -static i32 fcoder_metacmd_ID_execute_any_cli = 180; -static i32 fcoder_metacmd_ID_build_search = 181; -static i32 fcoder_metacmd_ID_build_in_build_panel = 182; -static i32 fcoder_metacmd_ID_close_build_panel = 183; -static i32 fcoder_metacmd_ID_change_to_build_panel = 184; -static i32 fcoder_metacmd_ID_close_all_code = 185; -static i32 fcoder_metacmd_ID_open_all_code = 186; -static i32 fcoder_metacmd_ID_open_all_code_recursive = 187; -static i32 fcoder_metacmd_ID_load_project = 188; -static i32 fcoder_metacmd_ID_project_fkey_command = 189; -static i32 fcoder_metacmd_ID_project_go_to_root_directory = 190; -static i32 fcoder_metacmd_ID_setup_new_project = 191; -static i32 fcoder_metacmd_ID_setup_build_bat = 192; -static i32 fcoder_metacmd_ID_setup_build_sh = 193; -static i32 fcoder_metacmd_ID_setup_build_bat_and_sh = 194; -static i32 fcoder_metacmd_ID_project_command_lister = 195; -static i32 fcoder_metacmd_ID_list_all_functions_current_buffer = 196; -static i32 fcoder_metacmd_ID_list_all_functions_current_buffer_lister = 197; -static i32 fcoder_metacmd_ID_list_all_functions_all_buffers = 198; -static i32 fcoder_metacmd_ID_list_all_functions_all_buffers_lister = 199; -static i32 fcoder_metacmd_ID_select_surrounding_scope = 200; -static i32 fcoder_metacmd_ID_select_next_scope_absolute = 201; -static i32 fcoder_metacmd_ID_select_next_scope_after_current = 202; -static i32 fcoder_metacmd_ID_select_prev_scope_absolute = 203; -static i32 fcoder_metacmd_ID_place_in_scope = 204; -static i32 fcoder_metacmd_ID_delete_current_scope = 205; -static i32 fcoder_metacmd_ID_open_long_braces = 206; -static i32 fcoder_metacmd_ID_open_long_braces_semicolon = 207; -static i32 fcoder_metacmd_ID_open_long_braces_break = 208; -static i32 fcoder_metacmd_ID_if0_off = 209; -static i32 fcoder_metacmd_ID_write_todo = 210; -static i32 fcoder_metacmd_ID_write_hack = 211; -static i32 fcoder_metacmd_ID_write_note = 212; -static i32 fcoder_metacmd_ID_write_block = 213; -static i32 fcoder_metacmd_ID_write_zero_struct = 214; -static i32 fcoder_metacmd_ID_comment_line = 215; -static i32 fcoder_metacmd_ID_uncomment_line = 216; -static i32 fcoder_metacmd_ID_comment_line_toggle = 217; -static i32 fcoder_metacmd_ID_snippet_lister = 218; -static i32 fcoder_metacmd_ID_miblo_increment_basic = 219; -static i32 fcoder_metacmd_ID_miblo_decrement_basic = 220; -static i32 fcoder_metacmd_ID_miblo_increment_time_stamp = 221; -static i32 fcoder_metacmd_ID_miblo_decrement_time_stamp = 222; -static i32 fcoder_metacmd_ID_miblo_increment_time_stamp_minute = 223; -static i32 fcoder_metacmd_ID_miblo_decrement_time_stamp_minute = 224; -static i32 fcoder_metacmd_ID_set_bindings_choose = 225; -static i32 fcoder_metacmd_ID_set_bindings_default = 226; +static i32 fcoder_metacmd_ID_write_text_input = 21; +static i32 fcoder_metacmd_ID_write_space = 22; +static i32 fcoder_metacmd_ID_write_underscore = 23; +static i32 fcoder_metacmd_ID_delete_char = 24; +static i32 fcoder_metacmd_ID_backspace_char = 25; +static i32 fcoder_metacmd_ID_set_mark = 26; +static i32 fcoder_metacmd_ID_cursor_mark_swap = 27; +static i32 fcoder_metacmd_ID_delete_range = 28; +static i32 fcoder_metacmd_ID_backspace_alpha_numeric_boundary = 29; +static i32 fcoder_metacmd_ID_delete_alpha_numeric_boundary = 30; +static i32 fcoder_metacmd_ID_snipe_backward_whitespace_or_token_boundary = 31; +static i32 fcoder_metacmd_ID_snipe_forward_whitespace_or_token_boundary = 32; +static i32 fcoder_metacmd_ID_center_view = 33; +static i32 fcoder_metacmd_ID_left_adjust_view = 34; +static i32 fcoder_metacmd_ID_click_set_cursor_and_mark = 35; +static i32 fcoder_metacmd_ID_click_set_cursor = 36; +static i32 fcoder_metacmd_ID_click_set_cursor_if_lbutton = 37; +static i32 fcoder_metacmd_ID_click_set_mark = 38; +static i32 fcoder_metacmd_ID_mouse_wheel_scroll = 39; +static i32 fcoder_metacmd_ID_move_up = 40; +static i32 fcoder_metacmd_ID_move_down = 41; +static i32 fcoder_metacmd_ID_move_up_10 = 42; +static i32 fcoder_metacmd_ID_move_down_10 = 43; +static i32 fcoder_metacmd_ID_move_down_textual = 44; +static i32 fcoder_metacmd_ID_page_up = 45; +static i32 fcoder_metacmd_ID_page_down = 46; +static i32 fcoder_metacmd_ID_move_up_to_blank_line = 47; +static i32 fcoder_metacmd_ID_move_down_to_blank_line = 48; +static i32 fcoder_metacmd_ID_move_up_to_blank_line_skip_whitespace = 49; +static i32 fcoder_metacmd_ID_move_down_to_blank_line_skip_whitespace = 50; +static i32 fcoder_metacmd_ID_move_up_to_blank_line_end = 51; +static i32 fcoder_metacmd_ID_move_down_to_blank_line_end = 52; +static i32 fcoder_metacmd_ID_move_left = 53; +static i32 fcoder_metacmd_ID_move_right = 54; +static i32 fcoder_metacmd_ID_move_right_whitespace_boundary = 55; +static i32 fcoder_metacmd_ID_move_left_whitespace_boundary = 56; +static i32 fcoder_metacmd_ID_move_right_token_boundary = 57; +static i32 fcoder_metacmd_ID_move_left_token_boundary = 58; +static i32 fcoder_metacmd_ID_move_right_whitespace_or_token_boundary = 59; +static i32 fcoder_metacmd_ID_move_left_whitespace_or_token_boundary = 60; +static i32 fcoder_metacmd_ID_move_right_alpha_numeric_boundary = 61; +static i32 fcoder_metacmd_ID_move_left_alpha_numeric_boundary = 62; +static i32 fcoder_metacmd_ID_move_right_alpha_numeric_or_camel_boundary = 63; +static i32 fcoder_metacmd_ID_move_left_alpha_numeric_or_camel_boundary = 64; +static i32 fcoder_metacmd_ID_select_all = 65; +static i32 fcoder_metacmd_ID_to_uppercase = 66; +static i32 fcoder_metacmd_ID_to_lowercase = 67; +static i32 fcoder_metacmd_ID_clean_all_lines = 68; +static i32 fcoder_metacmd_ID_basic_change_active_panel = 69; +static i32 fcoder_metacmd_ID_close_panel = 70; +static i32 fcoder_metacmd_ID_show_scrollbar = 71; +static i32 fcoder_metacmd_ID_hide_scrollbar = 72; +static i32 fcoder_metacmd_ID_show_filebar = 73; +static i32 fcoder_metacmd_ID_hide_filebar = 74; +static i32 fcoder_metacmd_ID_toggle_filebar = 75; +static i32 fcoder_metacmd_ID_toggle_fps_meter = 76; +static i32 fcoder_metacmd_ID_increase_face_size = 77; +static i32 fcoder_metacmd_ID_decrease_face_size = 78; +static i32 fcoder_metacmd_ID_mouse_wheel_change_face_size = 79; +static i32 fcoder_metacmd_ID_toggle_virtual_whitespace = 80; +static i32 fcoder_metacmd_ID_toggle_show_whitespace = 81; +static i32 fcoder_metacmd_ID_toggle_line_numbers = 82; +static i32 fcoder_metacmd_ID_eol_dosify = 83; +static i32 fcoder_metacmd_ID_eol_nixify = 84; +static i32 fcoder_metacmd_ID_exit_4coder = 85; +static i32 fcoder_metacmd_ID_goto_line = 86; +static i32 fcoder_metacmd_ID_search = 87; +static i32 fcoder_metacmd_ID_reverse_search = 88; +static i32 fcoder_metacmd_ID_search_identifier = 89; +static i32 fcoder_metacmd_ID_reverse_search_identifier = 90; +static i32 fcoder_metacmd_ID_replace_in_range = 91; +static i32 fcoder_metacmd_ID_replace_in_buffer = 92; +static i32 fcoder_metacmd_ID_replace_in_all_buffers = 93; +static i32 fcoder_metacmd_ID_query_replace = 94; +static i32 fcoder_metacmd_ID_query_replace_identifier = 95; +static i32 fcoder_metacmd_ID_query_replace_selection = 96; +static i32 fcoder_metacmd_ID_save_all_dirty_buffers = 97; +static i32 fcoder_metacmd_ID_delete_file_query = 98; +static i32 fcoder_metacmd_ID_save_to_query = 99; +static i32 fcoder_metacmd_ID_rename_file_query = 100; +static i32 fcoder_metacmd_ID_make_directory_query = 101; +static i32 fcoder_metacmd_ID_move_line_up = 102; +static i32 fcoder_metacmd_ID_move_line_down = 103; +static i32 fcoder_metacmd_ID_duplicate_line = 104; +static i32 fcoder_metacmd_ID_delete_line = 105; +static i32 fcoder_metacmd_ID_open_file_in_quotes = 106; +static i32 fcoder_metacmd_ID_open_matching_file_cpp = 107; +static i32 fcoder_metacmd_ID_view_buffer_other_panel = 108; +static i32 fcoder_metacmd_ID_swap_buffers_between_panels = 109; +static i32 fcoder_metacmd_ID_kill_buffer = 110; +static i32 fcoder_metacmd_ID_save = 111; +static i32 fcoder_metacmd_ID_reopen = 112; +static i32 fcoder_metacmd_ID_undo = 113; +static i32 fcoder_metacmd_ID_redo = 114; +static i32 fcoder_metacmd_ID_undo_all_buffers = 115; +static i32 fcoder_metacmd_ID_redo_all_buffers = 116; +static i32 fcoder_metacmd_ID_open_in_other = 117; +static i32 fcoder_metacmd_ID_lister__quit = 118; +static i32 fcoder_metacmd_ID_lister__activate = 119; +static i32 fcoder_metacmd_ID_lister__write_character = 120; +static i32 fcoder_metacmd_ID_lister__backspace_text_field = 121; +static i32 fcoder_metacmd_ID_lister__move_up = 122; +static i32 fcoder_metacmd_ID_lister__move_down = 123; +static i32 fcoder_metacmd_ID_lister__wheel_scroll = 124; +static i32 fcoder_metacmd_ID_lister__mouse_press = 125; +static i32 fcoder_metacmd_ID_lister__mouse_release = 126; +static i32 fcoder_metacmd_ID_lister__repaint = 127; +static i32 fcoder_metacmd_ID_lister__write_character__default = 128; +static i32 fcoder_metacmd_ID_lister__backspace_text_field__default = 129; +static i32 fcoder_metacmd_ID_lister__move_up__default = 130; +static i32 fcoder_metacmd_ID_lister__move_down__default = 131; +static i32 fcoder_metacmd_ID_lister__write_character__file_path = 132; +static i32 fcoder_metacmd_ID_lister__backspace_text_field__file_path = 133; +static i32 fcoder_metacmd_ID_lister__write_character__fixed_list = 134; +static i32 fcoder_metacmd_ID_interactive_switch_buffer = 135; +static i32 fcoder_metacmd_ID_interactive_kill_buffer = 136; +static i32 fcoder_metacmd_ID_interactive_open_or_new = 137; +static i32 fcoder_metacmd_ID_interactive_new = 138; +static i32 fcoder_metacmd_ID_interactive_open = 139; +static i32 fcoder_metacmd_ID_command_lister = 140; +static i32 fcoder_metacmd_ID_auto_tab_whole_file = 141; +static i32 fcoder_metacmd_ID_auto_tab_line_at_cursor = 142; +static i32 fcoder_metacmd_ID_auto_tab_range = 143; +static i32 fcoder_metacmd_ID_write_and_auto_tab = 144; +static i32 fcoder_metacmd_ID_list_all_locations = 145; +static i32 fcoder_metacmd_ID_list_all_substring_locations = 146; +static i32 fcoder_metacmd_ID_list_all_locations_case_insensitive = 147; +static i32 fcoder_metacmd_ID_list_all_substring_locations_case_insensitive = 148; +static i32 fcoder_metacmd_ID_list_all_locations_of_identifier = 149; +static i32 fcoder_metacmd_ID_list_all_locations_of_identifier_case_insensitive = 150; +static i32 fcoder_metacmd_ID_list_all_locations_of_selection = 151; +static i32 fcoder_metacmd_ID_list_all_locations_of_selection_case_insensitive = 152; +static i32 fcoder_metacmd_ID_list_all_locations_of_type_definition = 153; +static i32 fcoder_metacmd_ID_list_all_locations_of_type_definition_of_identifier = 154; +static i32 fcoder_metacmd_ID_word_complete = 155; +static i32 fcoder_metacmd_ID_goto_jump_at_cursor = 156; +static i32 fcoder_metacmd_ID_goto_jump_at_cursor_same_panel = 157; +static i32 fcoder_metacmd_ID_goto_next_jump = 158; +static i32 fcoder_metacmd_ID_goto_prev_jump = 159; +static i32 fcoder_metacmd_ID_goto_next_jump_no_skips = 160; +static i32 fcoder_metacmd_ID_goto_prev_jump_no_skips = 161; +static i32 fcoder_metacmd_ID_goto_first_jump = 162; +static i32 fcoder_metacmd_ID_goto_first_jump_same_panel_sticky = 163; +static i32 fcoder_metacmd_ID_newline_or_goto_position = 164; +static i32 fcoder_metacmd_ID_newline_or_goto_position_same_panel = 165; +static i32 fcoder_metacmd_ID_view_jump_list_with_lister = 166; +static i32 fcoder_metacmd_ID_log_graph__escape = 167; +static i32 fcoder_metacmd_ID_log_graph__scroll_wheel = 168; +static i32 fcoder_metacmd_ID_log_graph__page_up = 169; +static i32 fcoder_metacmd_ID_log_graph__page_down = 170; +static i32 fcoder_metacmd_ID_log_graph__click_select_event = 171; +static i32 fcoder_metacmd_ID_log_graph__click_jump_to_event_source = 172; +static i32 fcoder_metacmd_ID_show_the_log_graph = 173; +static i32 fcoder_metacmd_ID_copy = 174; +static i32 fcoder_metacmd_ID_cut = 175; +static i32 fcoder_metacmd_ID_paste = 176; +static i32 fcoder_metacmd_ID_paste_next = 177; +static i32 fcoder_metacmd_ID_paste_and_indent = 178; +static i32 fcoder_metacmd_ID_paste_next_and_indent = 179; +static i32 fcoder_metacmd_ID_execute_previous_cli = 180; +static i32 fcoder_metacmd_ID_execute_any_cli = 181; +static i32 fcoder_metacmd_ID_build_search = 182; +static i32 fcoder_metacmd_ID_build_in_build_panel = 183; +static i32 fcoder_metacmd_ID_close_build_panel = 184; +static i32 fcoder_metacmd_ID_change_to_build_panel = 185; +static i32 fcoder_metacmd_ID_close_all_code = 186; +static i32 fcoder_metacmd_ID_open_all_code = 187; +static i32 fcoder_metacmd_ID_open_all_code_recursive = 188; +static i32 fcoder_metacmd_ID_load_project = 189; +static i32 fcoder_metacmd_ID_project_fkey_command = 190; +static i32 fcoder_metacmd_ID_project_go_to_root_directory = 191; +static i32 fcoder_metacmd_ID_setup_new_project = 192; +static i32 fcoder_metacmd_ID_setup_build_bat = 193; +static i32 fcoder_metacmd_ID_setup_build_sh = 194; +static i32 fcoder_metacmd_ID_setup_build_bat_and_sh = 195; +static i32 fcoder_metacmd_ID_project_command_lister = 196; +static i32 fcoder_metacmd_ID_list_all_functions_current_buffer = 197; +static i32 fcoder_metacmd_ID_list_all_functions_current_buffer_lister = 198; +static i32 fcoder_metacmd_ID_list_all_functions_all_buffers = 199; +static i32 fcoder_metacmd_ID_list_all_functions_all_buffers_lister = 200; +static i32 fcoder_metacmd_ID_select_surrounding_scope = 201; +static i32 fcoder_metacmd_ID_select_next_scope_absolute = 202; +static i32 fcoder_metacmd_ID_select_next_scope_after_current = 203; +static i32 fcoder_metacmd_ID_select_prev_scope_absolute = 204; +static i32 fcoder_metacmd_ID_place_in_scope = 205; +static i32 fcoder_metacmd_ID_delete_current_scope = 206; +static i32 fcoder_metacmd_ID_open_long_braces = 207; +static i32 fcoder_metacmd_ID_open_long_braces_semicolon = 208; +static i32 fcoder_metacmd_ID_open_long_braces_break = 209; +static i32 fcoder_metacmd_ID_if0_off = 210; +static i32 fcoder_metacmd_ID_write_todo = 211; +static i32 fcoder_metacmd_ID_write_hack = 212; +static i32 fcoder_metacmd_ID_write_note = 213; +static i32 fcoder_metacmd_ID_write_block = 214; +static i32 fcoder_metacmd_ID_write_zero_struct = 215; +static i32 fcoder_metacmd_ID_comment_line = 216; +static i32 fcoder_metacmd_ID_uncomment_line = 217; +static i32 fcoder_metacmd_ID_comment_line_toggle = 218; +static i32 fcoder_metacmd_ID_snippet_lister = 219; +static i32 fcoder_metacmd_ID_miblo_increment_basic = 220; +static i32 fcoder_metacmd_ID_miblo_decrement_basic = 221; +static i32 fcoder_metacmd_ID_miblo_increment_time_stamp = 222; +static i32 fcoder_metacmd_ID_miblo_decrement_time_stamp = 223; +static i32 fcoder_metacmd_ID_miblo_increment_time_stamp_minute = 224; +static i32 fcoder_metacmd_ID_miblo_decrement_time_stamp_minute = 225; +static i32 fcoder_metacmd_ID_set_bindings_choose = 226; #endif diff --git a/custom/generated/custom_api.h b/custom/generated/custom_api.h index 07a74377..5490d542 100644 --- a/custom/generated/custom_api.h +++ b/custom/generated/custom_api.h @@ -116,7 +116,7 @@ #define custom_managed_object_load_data_sig() b32 custom_managed_object_load_data(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem_out) #define custom_get_user_input_sig() User_Input custom_get_user_input(Application_Links* app, Input_Type_Flag get_type, Input_Type_Flag abort_type) #define custom_get_command_input_sig() User_Input custom_get_command_input(Application_Links* app) -#define custom_set_command_input_sig() void custom_set_command_input(Application_Links* app, Key_Event_Data key_data) +#define custom_set_command_input_sig() void custom_set_command_input(Application_Links* app, Input_Event* event) #define custom_get_mouse_state_sig() Mouse_State custom_get_mouse_state(Application_Links* app) #define custom_get_active_query_bars_sig() b32 custom_get_active_query_bars(Application_Links* app, View_ID view_id, i32 max_result_count, Query_Bar_Ptr_Array* array_out) #define custom_start_query_bar_sig() b32 custom_start_query_bar(Application_Links* app, Query_Bar* bar, u32 flags) @@ -286,7 +286,7 @@ typedef b32 custom_managed_object_store_data_type(Application_Links* app, Manage typedef b32 custom_managed_object_load_data_type(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem_out); typedef User_Input custom_get_user_input_type(Application_Links* app, Input_Type_Flag get_type, Input_Type_Flag abort_type); typedef User_Input custom_get_command_input_type(Application_Links* app); -typedef void custom_set_command_input_type(Application_Links* app, Key_Event_Data key_data); +typedef void custom_set_command_input_type(Application_Links* app, Input_Event* event); typedef Mouse_State custom_get_mouse_state_type(Application_Links* app); typedef b32 custom_get_active_query_bars_type(Application_Links* app, View_ID view_id, i32 max_result_count, Query_Bar_Ptr_Array* array_out); typedef b32 custom_start_query_bar_type(Application_Links* app, Query_Bar* bar, u32 flags); @@ -629,7 +629,7 @@ internal b32 managed_object_store_data(Application_Links* app, Managed_Object ob internal b32 managed_object_load_data(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem_out); internal User_Input get_user_input(Application_Links* app, Input_Type_Flag get_type, Input_Type_Flag abort_type); internal User_Input get_command_input(Application_Links* app); -internal void set_command_input(Application_Links* app, Key_Event_Data key_data); +internal void set_command_input(Application_Links* app, Input_Event* event); internal Mouse_State get_mouse_state(Application_Links* app); internal b32 get_active_query_bars(Application_Links* app, View_ID view_id, i32 max_result_count, Query_Bar_Ptr_Array* array_out); internal b32 start_query_bar(Application_Links* app, Query_Bar* bar, u32 flags); diff --git a/custom/generated/custom_api_master_list.h b/custom/generated/custom_api_master_list.h index 594a2f4f..31fd69fb 100644 --- a/custom/generated/custom_api_master_list.h +++ b/custom/generated/custom_api_master_list.h @@ -116,7 +116,7 @@ api(custom) function b32 managed_object_store_data(Application_Links* app, Manag api(custom) function b32 managed_object_load_data(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem_out); api(custom) function User_Input get_user_input(Application_Links* app, Input_Type_Flag get_type, Input_Type_Flag abort_type); api(custom) function User_Input get_command_input(Application_Links* app); -api(custom) function void set_command_input(Application_Links* app, Key_Event_Data key_data); +api(custom) function void set_command_input(Application_Links* app, Input_Event* event); api(custom) function Mouse_State get_mouse_state(Application_Links* app); api(custom) function b32 get_active_query_bars(Application_Links* app, View_ID view_id, i32 max_result_count, Query_Bar_Ptr_Array* array_out); api(custom) function b32 start_query_bar(Application_Links* app, Query_Bar* bar, u32 flags); diff --git a/custom/generated/remapping.h b/custom/generated/remapping.h index 29b9d190..4c883c17 100644 --- a/custom/generated/remapping.h +++ b/custom/generated/remapping.h @@ -1,374 +1,190 @@ #if defined(CUSTOM_COMMAND_SIG) void fill_keys_default(Bind_Helper *context){ begin_map(context, mapid_global); - bind(context, ',', MDFR_CTRL, change_active_panel); - bind(context, '<', MDFR_CTRL, change_active_panel_backwards); - bind(context, 'n', MDFR_CTRL, interactive_new); - bind(context, 'o', MDFR_CTRL, interactive_open_or_new); - bind(context, 'o', MDFR_ALT, open_in_other); - bind(context, 'k', MDFR_CTRL, interactive_kill_buffer); - bind(context, 'i', MDFR_CTRL, interactive_switch_buffer); - bind(context, 'h', MDFR_CTRL, project_go_to_root_directory); - bind(context, 'S', MDFR_CTRL, save_all_dirty_buffers); - bind(context, key_scroll_lock, MDFR_NONE, toggle_filebar); - bind(context, key_pause, MDFR_NONE, toggle_filebar); - bind(context, key_caps, MDFR_NONE, toggle_filebar); - bind(context, '.', MDFR_ALT, change_to_build_panel); - bind(context, ',', MDFR_ALT, close_build_panel); - bind(context, 'n', MDFR_ALT, goto_next_jump); - bind(context, 'N', MDFR_ALT, goto_prev_jump); - bind(context, 'M', MDFR_ALT, goto_first_jump); - bind(context, 'm', MDFR_ALT, build_in_build_panel); - bind(context, 'b', MDFR_ALT, toggle_filebar); - bind(context, 'z', MDFR_ALT, execute_any_cli); - bind(context, 'Z', MDFR_ALT, execute_previous_cli); - bind(context, 'x', MDFR_ALT, command_lister); - bind(context, 'X', MDFR_ALT, project_command_lister); - bind(context, 'I', MDFR_CTRL, list_all_functions_all_buffers_lister); - bind(context, 'E', MDFR_ALT, exit_4coder); - bind(context, key_f1, MDFR_NONE, project_fkey_command); - bind(context, key_f2, MDFR_NONE, project_fkey_command); - bind(context, key_f3, MDFR_NONE, project_fkey_command); - bind(context, key_f4, MDFR_NONE, project_fkey_command); - bind(context, key_f5, MDFR_NONE, project_fkey_command); - bind(context, key_f6, MDFR_NONE, project_fkey_command); - bind(context, key_f7, MDFR_NONE, project_fkey_command); - bind(context, key_f8, MDFR_NONE, project_fkey_command); - bind(context, key_f9, MDFR_NONE, project_fkey_command); - bind(context, key_f10, MDFR_NONE, project_fkey_command); - bind(context, key_f11, MDFR_NONE, project_fkey_command); - bind(context, key_f12, MDFR_NONE, project_fkey_command); - bind(context, key_f13, MDFR_NONE, project_fkey_command); - bind(context, key_f14, MDFR_NONE, project_fkey_command); - bind(context, key_f15, MDFR_NONE, project_fkey_command); - bind(context, key_f16, MDFR_NONE, project_fkey_command); - bind(context, key_mouse_wheel, MDFR_NONE, mouse_wheel_scroll); - bind(context, key_mouse_wheel, MDFR_CTRL, mouse_wheel_change_face_size); + bind(context, KeyCode_Comma, MDFR_CTRL, change_active_panel); + bind(context, KeyCode_Comma, MDFR_CTRL|MDFR_SHIFT, change_active_panel_backwards); + bind(context, KeyCode_N, MDFR_CTRL, interactive_new); + bind(context, KeyCode_O, MDFR_CTRL, interactive_open_or_new); + bind(context, KeyCode_O, MDFR_ALT, open_in_other); + bind(context, KeyCode_K, MDFR_CTRL, interactive_kill_buffer); + bind(context, KeyCode_I, MDFR_CTRL, interactive_switch_buffer); + bind(context, KeyCode_H, MDFR_CTRL, project_go_to_root_directory); + bind(context, KeyCode_S, MDFR_CTRL|MDFR_SHIFT, save_all_dirty_buffers); + bind(context, KeyCode_Period, MDFR_ALT, change_to_build_panel); + bind(context, KeyCode_Comma, MDFR_ALT, close_build_panel); + bind(context, KeyCode_N, MDFR_ALT, goto_next_jump); + bind(context, KeyCode_N, MDFR_ALT|MDFR_SHIFT, goto_prev_jump); + bind(context, KeyCode_M, MDFR_ALT|MDFR_SHIFT, goto_first_jump); + bind(context, KeyCode_M, MDFR_ALT, build_in_build_panel); + bind(context, KeyCode_B, MDFR_ALT, toggle_filebar); + bind(context, KeyCode_Z, MDFR_ALT, execute_any_cli); + bind(context, KeyCode_Z, MDFR_ALT|MDFR_SHIFT, execute_previous_cli); + bind(context, KeyCode_X, MDFR_ALT, command_lister); + bind(context, KeyCode_X, MDFR_ALT|MDFR_SHIFT, project_command_lister); + bind(context, KeyCode_I, MDFR_CTRL|MDFR_SHIFT, list_all_functions_all_buffers_lister); + bind(context, KeyCode_F4, MDFR_ALT, exit_4coder); + bind(context, KeyCode_F1, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F2, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F3, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F4, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F5, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F6, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F7, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F8, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F9, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F10, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F11, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F12, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F13, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F14, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F15, MDFR_NONE, project_fkey_command); + bind(context, KeyCode_F16, MDFR_NONE, project_fkey_command); + bind(context, KeyCodeExt_MouseWheel, MDFR_NONE, mouse_wheel_scroll); + bind(context, KeyCodeExt_MouseWheel, MDFR_CTRL, mouse_wheel_change_face_size); end_map(context); begin_map(context, mapid_file); bind_vanilla_keys(context, write_character); - bind(context, key_mouse_left, MDFR_NONE, click_set_cursor_and_mark); - bind(context, key_click_activate_view, MDFR_NONE, click_set_cursor_and_mark); - bind(context, key_mouse_left_release, MDFR_NONE, click_set_cursor); - bind(context, key_mouse_move, MDFR_NONE, click_set_cursor_if_lbutton); - bind(context, key_del, MDFR_NONE, delete_char); - bind(context, key_del, MDFR_SHIFT, delete_char); - bind(context, key_back, MDFR_NONE, backspace_char); - bind(context, key_back, MDFR_SHIFT, backspace_char); - bind(context, key_up, MDFR_NONE, move_up); - bind(context, key_down, MDFR_NONE, move_down); - bind(context, key_left, MDFR_NONE, move_left); - bind(context, key_right, MDFR_NONE, move_right); - bind(context, key_up, MDFR_SHIFT, move_up); - bind(context, key_down, MDFR_SHIFT, move_down); - bind(context, key_left, MDFR_SHIFT, move_left); - bind(context, key_right, MDFR_SHIFT, move_right); - bind(context, key_end, MDFR_NONE, seek_end_of_line); - bind(context, key_home, MDFR_NONE, seek_beginning_of_line); - bind(context, key_page_up, MDFR_CTRL, goto_beginning_of_file); - bind(context, key_page_down, MDFR_CTRL, goto_end_of_file); - bind(context, key_page_up, MDFR_NONE, page_up); - bind(context, key_page_down, MDFR_NONE, page_down); - bind(context, key_end, MDFR_SHIFT, seek_end_of_line); - bind(context, key_home, MDFR_SHIFT, seek_beginning_of_line); - bind(context, key_page_up, MDFR_CTRL|MDFR_SHIFT, goto_beginning_of_file); - bind(context, key_page_down, MDFR_CTRL|MDFR_SHIFT, goto_end_of_file); - bind(context, key_page_up, MDFR_SHIFT, page_up); - bind(context, key_page_down, MDFR_SHIFT, page_down); - bind(context, key_up, MDFR_CTRL, move_up_to_blank_line_skip_whitespace); - bind(context, key_down, MDFR_CTRL, move_down_to_blank_line_end); - bind(context, key_left, MDFR_CTRL, move_left_whitespace_boundary); - bind(context, key_right, MDFR_CTRL, move_right_whitespace_boundary); - bind(context, key_up, MDFR_CTRL|MDFR_SHIFT, move_up_to_blank_line_skip_whitespace); - bind(context, key_down, MDFR_CTRL|MDFR_SHIFT, move_down_to_blank_line_end); - bind(context, key_left, MDFR_CTRL|MDFR_SHIFT, move_left_whitespace_boundary); - bind(context, key_right, MDFR_CTRL|MDFR_SHIFT, move_right_whitespace_boundary); - bind(context, key_up, MDFR_ALT, move_line_up); - bind(context, key_down, MDFR_ALT, move_line_down); - bind(context, key_back, MDFR_CTRL, backspace_alpha_numeric_boundary); - bind(context, key_del, MDFR_CTRL, delete_alpha_numeric_boundary); - bind(context, key_back, MDFR_ALT, snipe_backward_whitespace_or_token_boundary); - bind(context, key_del, MDFR_ALT, snipe_forward_whitespace_or_token_boundary); - bind(context, ' ', MDFR_CTRL, set_mark); - bind(context, 'a', MDFR_CTRL, replace_in_range); - bind(context, 'c', MDFR_CTRL, copy); - bind(context, 'd', MDFR_CTRL, delete_range); - bind(context, 'D', MDFR_CTRL, delete_line); - bind(context, 'e', MDFR_CTRL, center_view); - bind(context, 'E', MDFR_CTRL, left_adjust_view); - bind(context, 'f', MDFR_CTRL, search); - bind(context, 'F', MDFR_CTRL, list_all_locations); - bind(context, 'F', MDFR_ALT, list_all_substring_locations_case_insensitive); - bind(context, 'g', MDFR_CTRL, goto_line); - bind(context, 'G', MDFR_CTRL, list_all_locations_of_selection); - bind(context, 'j', MDFR_CTRL, snippet_lister); - bind(context, 'K', MDFR_CTRL, kill_buffer); - bind(context, 'L', MDFR_CTRL, duplicate_line); - bind(context, 'm', MDFR_CTRL, cursor_mark_swap); - bind(context, 'O', MDFR_CTRL, reopen); - bind(context, 'q', MDFR_CTRL, query_replace); - bind(context, 'Q', MDFR_CTRL, query_replace_identifier); - bind(context, 'q', MDFR_ALT, query_replace_selection); - bind(context, 'r', MDFR_CTRL, reverse_search); - bind(context, 's', MDFR_CTRL, save); - bind(context, 't', MDFR_CTRL, search_identifier); - bind(context, 'T', MDFR_CTRL, list_all_locations_of_identifier); - bind(context, 'v', MDFR_CTRL, paste_and_indent); - bind(context, 'V', MDFR_CTRL, paste_next_and_indent); - bind(context, 'x', MDFR_CTRL, cut); - bind(context, 'y', MDFR_CTRL, redo); - bind(context, 'z', MDFR_CTRL, undo); - bind(context, '1', MDFR_CTRL, view_buffer_other_panel); - bind(context, '2', MDFR_CTRL, swap_buffers_between_panels); - bind(context, '\n', MDFR_NONE, newline_or_goto_position); - bind(context, '\n', MDFR_SHIFT, newline_or_goto_position_same_panel); - bind(context, '>', MDFR_CTRL, view_jump_list_with_lister); - bind(context, ' ', MDFR_SHIFT, write_character); + bind(context, KeyCodeExt_MouseLeft, MDFR_NONE, click_set_cursor_and_mark); + bind(context, KeyCodeExt_ClickActivateView, MDFR_NONE, click_set_cursor_and_mark); + bind(context, KeyCodeExt_MouseLeftRelease, MDFR_NONE, click_set_cursor); + bind(context, KeyCodeExt_MouseMove, MDFR_NONE, click_set_cursor_if_lbutton); + bind(context, KeyCode_Delete, MDFR_NONE, delete_char); + bind(context, KeyCode_Delete, MDFR_SHIFT, delete_char); + bind(context, KeyCode_Backspace, MDFR_NONE, backspace_char); + bind(context, KeyCode_Backspace, MDFR_SHIFT, backspace_char); + bind(context, KeyCode_Up, MDFR_NONE, move_up); + bind(context, KeyCode_Down, MDFR_NONE, move_down); + bind(context, KeyCode_Left, MDFR_NONE, move_left); + bind(context, KeyCode_Right, MDFR_NONE, move_right); + bind(context, KeyCode_Up, MDFR_SHIFT, move_up); + bind(context, KeyCode_Down, MDFR_SHIFT, move_down); + bind(context, KeyCode_Left, MDFR_SHIFT, move_left); + bind(context, KeyCode_Right, MDFR_SHIFT, move_right); + bind(context, KeyCode_End, MDFR_NONE, seek_end_of_line); + bind(context, KeyCode_Home, MDFR_NONE, seek_beginning_of_line); + bind(context, KeyCode_PageUp, MDFR_CTRL, goto_beginning_of_file); + bind(context, KeyCode_PageDown, MDFR_CTRL, goto_end_of_file); + bind(context, KeyCode_PageUp, MDFR_NONE, page_up); + bind(context, KeyCode_PageDown, MDFR_NONE, page_down); + bind(context, KeyCode_End, MDFR_SHIFT, seek_end_of_line); + bind(context, KeyCode_Home, MDFR_SHIFT, seek_beginning_of_line); + bind(context, KeyCode_PageUp, MDFR_CTRL|MDFR_SHIFT, goto_beginning_of_file); + bind(context, KeyCode_PageDown, MDFR_CTRL|MDFR_SHIFT, goto_end_of_file); + bind(context, KeyCode_PageUp, MDFR_SHIFT, page_up); + bind(context, KeyCode_PageDown, MDFR_SHIFT, page_down); + bind(context, KeyCode_Up, MDFR_CTRL, move_up_to_blank_line_skip_whitespace); + bind(context, KeyCode_Down, MDFR_CTRL, move_down_to_blank_line_end); + bind(context, KeyCode_Left, MDFR_CTRL, move_left_whitespace_boundary); + bind(context, KeyCode_Right, MDFR_CTRL, move_right_whitespace_boundary); + bind(context, KeyCode_Up, MDFR_CTRL|MDFR_SHIFT, move_up_to_blank_line_skip_whitespace); + bind(context, KeyCode_Down, MDFR_CTRL|MDFR_SHIFT, move_down_to_blank_line_end); + bind(context, KeyCode_Left, MDFR_CTRL|MDFR_SHIFT, move_left_whitespace_boundary); + bind(context, KeyCode_Right, MDFR_CTRL|MDFR_SHIFT, move_right_whitespace_boundary); + bind(context, KeyCode_Up, MDFR_ALT, move_line_up); + bind(context, KeyCode_Down, MDFR_ALT, move_line_down); + bind(context, KeyCode_Backspace, MDFR_CTRL, backspace_alpha_numeric_boundary); + bind(context, KeyCode_Delete, MDFR_CTRL, delete_alpha_numeric_boundary); + bind(context, KeyCode_Backspace, MDFR_ALT, snipe_backward_whitespace_or_token_boundary); + bind(context, KeyCode_Delete, MDFR_ALT, snipe_forward_whitespace_or_token_boundary); + bind(context, KeyCode_Space, MDFR_CTRL, set_mark); + bind(context, KeyCode_A, MDFR_CTRL, replace_in_range); + bind(context, KeyCode_C, MDFR_CTRL, copy); + bind(context, KeyCode_D, MDFR_CTRL, delete_range); + bind(context, KeyCode_D, MDFR_CTRL|MDFR_SHIFT, delete_line); + bind(context, KeyCode_E, MDFR_CTRL, center_view); + bind(context, KeyCode_E, MDFR_CTRL|MDFR_SHIFT, left_adjust_view); + bind(context, KeyCode_F, MDFR_CTRL, search); + bind(context, KeyCode_F, MDFR_CTRL|MDFR_SHIFT, list_all_locations); + bind(context, KeyCode_F, MDFR_ALT, list_all_substring_locations_case_insensitive); + bind(context, KeyCode_G, MDFR_CTRL, goto_line); + bind(context, KeyCode_G, MDFR_CTRL|MDFR_SHIFT, list_all_locations_of_selection); + bind(context, KeyCode_J, MDFR_CTRL, snippet_lister); + bind(context, KeyCode_K, MDFR_CTRL|MDFR_SHIFT, kill_buffer); + bind(context, KeyCode_L, MDFR_CTRL, duplicate_line); + bind(context, KeyCode_M, MDFR_CTRL, cursor_mark_swap); + bind(context, KeyCode_O, MDFR_CTRL|MDFR_SHIFT, reopen); + bind(context, KeyCode_Q, MDFR_CTRL, query_replace); + bind(context, KeyCode_Q, MDFR_CTRL|MDFR_SHIFT, query_replace_identifier); + bind(context, KeyCode_Q, MDFR_ALT, query_replace_selection); + bind(context, KeyCode_R, MDFR_CTRL, reverse_search); + bind(context, KeyCode_S, MDFR_CTRL, save); + bind(context, KeyCode_T, MDFR_CTRL, search_identifier); + bind(context, KeyCode_T, MDFR_CTRL|MDFR_SHIFT, list_all_locations_of_identifier); + bind(context, KeyCode_V, MDFR_CTRL, paste_and_indent); + bind(context, KeyCode_V, MDFR_CTRL|MDFR_SHIFT, paste_next_and_indent); + bind(context, KeyCode_X, MDFR_CTRL, cut); + bind(context, KeyCode_Y, MDFR_CTRL, redo); + bind(context, KeyCode_Z, MDFR_CTRL, undo); + bind(context, KeyCode_1, MDFR_CTRL, view_buffer_other_panel); + bind(context, KeyCode_2, MDFR_CTRL, swap_buffers_between_panels); + bind(context, KeyCode_Return, MDFR_NONE, newline_or_goto_position); + bind(context, KeyCode_Return, MDFR_SHIFT, newline_or_goto_position_same_panel); + bind(context, KeyCode_Period, MDFR_CTRL|MDFR_SHIFT, view_jump_list_with_lister); + bind(context, KeyCode_Space, MDFR_SHIFT, write_space); end_map(context); begin_map(context, default_code_map); inherit_map(context, mapid_file); - bind(context, key_left, MDFR_CTRL, move_left_alpha_numeric_boundary); - bind(context, key_left, MDFR_CTRL|MDFR_SHIFT, move_left_alpha_numeric_boundary); - bind(context, key_right, MDFR_CTRL, move_right_alpha_numeric_boundary); - bind(context, key_right, MDFR_CTRL|MDFR_SHIFT, move_right_alpha_numeric_boundary); - bind(context, key_left, MDFR_ALT, move_left_alpha_numeric_or_camel_boundary); - bind(context, key_left, MDFR_ALT|MDFR_SHIFT, move_left_alpha_numeric_or_camel_boundary); - bind(context, key_right, MDFR_ALT|MDFR_SHIFT, move_right_alpha_numeric_or_camel_boundary); - bind(context, '\n', MDFR_NONE, write_and_auto_tab); - bind(context, '\n', MDFR_SHIFT, write_and_auto_tab); - bind(context, '}', MDFR_NONE, write_and_auto_tab); - bind(context, ')', MDFR_NONE, write_and_auto_tab); - bind(context, ']', MDFR_NONE, write_and_auto_tab); - bind(context, ';', MDFR_NONE, write_and_auto_tab); - bind(context, '#', MDFR_NONE, write_and_auto_tab); - bind(context, ';', MDFR_CTRL, comment_line_toggle); - bind(context, '\t', MDFR_NONE, word_complete); - bind(context, '\t', MDFR_CTRL, auto_tab_range); - bind(context, '\t', MDFR_SHIFT, auto_tab_line_at_cursor); - bind(context, 'r', MDFR_ALT, write_block); - bind(context, 't', MDFR_ALT, write_todo); - bind(context, 'y', MDFR_ALT, write_note); - bind(context, 'D', MDFR_ALT, list_all_locations_of_type_definition); - bind(context, 'T', MDFR_ALT, list_all_locations_of_type_definition_of_identifier); - bind(context, '[', MDFR_CTRL, open_long_braces); - bind(context, '{', MDFR_CTRL, open_long_braces_semicolon); - bind(context, '}', MDFR_CTRL, open_long_braces_break); - bind(context, '[', MDFR_ALT, select_surrounding_scope); - bind(context, ']', MDFR_ALT, select_prev_scope_absolute); - bind(context, '\'', MDFR_ALT, select_next_scope_absolute); - bind(context, '\"', MDFR_ALT, select_next_scope_after_current); - bind(context, '/', MDFR_ALT, place_in_scope); - bind(context, '-', MDFR_ALT, delete_current_scope); - bind(context, 'i', MDFR_ALT, if0_off); - bind(context, '1', MDFR_ALT, open_file_in_quotes); - bind(context, '2', MDFR_ALT, open_matching_file_cpp); - bind(context, '0', MDFR_CTRL, write_zero_struct); + bind(context, KeyCode_Left, MDFR_CTRL, move_left_alpha_numeric_boundary); + bind(context, KeyCode_Left, MDFR_CTRL|MDFR_SHIFT, move_left_alpha_numeric_boundary); + bind(context, KeyCode_Right, MDFR_CTRL, move_right_alpha_numeric_boundary); + bind(context, KeyCode_Right, MDFR_CTRL|MDFR_SHIFT, move_right_alpha_numeric_boundary); + bind(context, KeyCode_Left, MDFR_ALT, move_left_alpha_numeric_or_camel_boundary); + bind(context, KeyCode_Left, MDFR_ALT|MDFR_SHIFT, move_left_alpha_numeric_or_camel_boundary); + bind(context, KeyCode_Right, MDFR_ALT|MDFR_SHIFT, move_right_alpha_numeric_or_camel_boundary); + bind(context, KeyCode_Return, MDFR_NONE, write_and_auto_tab); + bind(context, KeyCode_Return, MDFR_SHIFT, write_and_auto_tab); + bind(context, KeyCode_RightBracket, MDFR_SHIFT, write_and_auto_tab); + bind(context, KeyCode_0, MDFR_SHIFT, write_and_auto_tab); + bind(context, KeyCode_RightBracket, MDFR_NONE, write_and_auto_tab); + bind(context, KeyCode_Semicolon, MDFR_NONE, write_and_auto_tab); + bind(context, KeyCode_3, MDFR_SHIFT, write_and_auto_tab); + bind(context, KeyCode_Semicolon, MDFR_CTRL, comment_line_toggle); + bind(context, KeyCode_Tab, MDFR_NONE, word_complete); + bind(context, KeyCode_Tab, MDFR_CTRL, auto_tab_range); + bind(context, KeyCode_Tab, MDFR_SHIFT, auto_tab_line_at_cursor); + bind(context, KeyCode_R, MDFR_ALT, write_block); + bind(context, KeyCode_T, MDFR_ALT, write_todo); + bind(context, KeyCode_Y, MDFR_ALT, write_note); + bind(context, KeyCode_D, MDFR_ALT, list_all_locations_of_type_definition); + bind(context, KeyCode_T, MDFR_ALT, list_all_locations_of_type_definition_of_identifier); + bind(context, KeyCode_LeftBracket, MDFR_CTRL, open_long_braces); + bind(context, KeyCode_LeftBracket, MDFR_CTRL|MDFR_SHIFT, open_long_braces_semicolon); + bind(context, KeyCode_RightBracket, MDFR_CTRL|MDFR_SHIFT, open_long_braces_break); + bind(context, KeyCode_LeftBracket, MDFR_ALT, select_surrounding_scope); + bind(context, KeyCode_RightBracket, MDFR_ALT, select_prev_scope_absolute); + bind(context, KeyCode_Quote, MDFR_ALT, select_next_scope_absolute); + bind(context, KeyCode_Quote, MDFR_ALT|MDFR_SHIFT, select_next_scope_after_current); + bind(context, KeyCode_ForwardSlash, MDFR_ALT, place_in_scope); + bind(context, KeyCode_Minus, MDFR_ALT, delete_current_scope); + bind(context, KeyCode_I, MDFR_ALT, if0_off); + bind(context, KeyCode_1, MDFR_ALT, open_file_in_quotes); + bind(context, KeyCode_2, MDFR_ALT, open_matching_file_cpp); + bind(context, KeyCode_0, MDFR_CTRL, write_zero_struct); end_map(context); begin_map(context, default_lister_ui_map); bind_vanilla_keys(context, lister__write_character); - bind(context, key_esc, MDFR_NONE, lister__quit); - bind(context, '\n', MDFR_NONE, lister__activate); - bind(context, '\t', MDFR_NONE, lister__activate); - bind(context, key_back, MDFR_NONE, lister__backspace_text_field); - bind(context, key_back, MDFR_CTRL, lister__backspace_text_field); - bind(context, key_back, MDFR_ALT, lister__backspace_text_field); - bind(context, key_back, MDFR_CMND, lister__backspace_text_field); - bind(context, key_back, MDFR_CTRL|MDFR_ALT, lister__backspace_text_field); - bind(context, key_back, MDFR_ALT|MDFR_CMND, lister__backspace_text_field); - bind(context, key_back, MDFR_CTRL|MDFR_CMND, lister__backspace_text_field); - bind(context, key_back, MDFR_CTRL|MDFR_ALT|MDFR_CMND, lister__backspace_text_field); - bind(context, key_up, MDFR_NONE, lister__move_up); - bind(context, 'k', MDFR_ALT, lister__move_up); - bind(context, key_page_up, MDFR_NONE, lister__move_up); - bind(context, key_down, MDFR_NONE, lister__move_down); - bind(context, 'j', MDFR_ALT, lister__move_down); - bind(context, key_page_down, MDFR_NONE, lister__move_down); - bind(context, key_mouse_wheel, MDFR_NONE, lister__wheel_scroll); - bind(context, key_mouse_left, MDFR_NONE, lister__mouse_press); - bind(context, key_mouse_left_release, MDFR_NONE, lister__mouse_release); - bind(context, key_mouse_move, MDFR_NONE, lister__repaint); - bind(context, key_animate, MDFR_NONE, lister__repaint); - end_map(context); -} -void fill_keys_mac_default(Bind_Helper *context){ - begin_map(context, mapid_global); - bind(context, ',', MDFR_CMND, change_active_panel); - bind(context, '<', MDFR_CMND, change_active_panel_backwards); - bind(context, 'n', MDFR_CMND, interactive_new); - bind(context, 'o', MDFR_CMND, interactive_open_or_new); - bind(context, 'o', MDFR_CTRL, open_in_other); - bind(context, 'k', MDFR_CMND, interactive_kill_buffer); - bind(context, 'i', MDFR_CMND, interactive_switch_buffer); - bind(context, 'h', MDFR_CMND, project_go_to_root_directory); - bind(context, 'S', MDFR_CMND, save_all_dirty_buffers); - bind(context, '.', MDFR_CTRL, change_to_build_panel); - bind(context, ',', MDFR_CTRL, close_build_panel); - bind(context, 'n', MDFR_CTRL, goto_next_jump); - bind(context, 'N', MDFR_CTRL, goto_prev_jump); - bind(context, 'M', MDFR_CTRL, goto_first_jump); - bind(context, 'm', MDFR_CTRL, build_in_build_panel); - bind(context, 'b', MDFR_CTRL, toggle_filebar); - bind(context, 'z', MDFR_CTRL, execute_any_cli); - bind(context, 'Z', MDFR_CTRL, execute_previous_cli); - bind(context, 'x', MDFR_CTRL, command_lister); - bind(context, 'X', MDFR_CTRL, project_command_lister); - bind(context, 'I', MDFR_CMND, list_all_functions_all_buffers_lister); - bind(context, 'E', MDFR_CTRL, exit_4coder); - bind(context, key_f1, MDFR_NONE, project_fkey_command); - bind(context, key_f2, MDFR_NONE, project_fkey_command); - bind(context, key_f3, MDFR_NONE, project_fkey_command); - bind(context, key_f4, MDFR_NONE, project_fkey_command); - bind(context, key_f5, MDFR_NONE, project_fkey_command); - bind(context, key_f6, MDFR_NONE, project_fkey_command); - bind(context, key_f7, MDFR_NONE, project_fkey_command); - bind(context, key_f8, MDFR_NONE, project_fkey_command); - bind(context, key_f9, MDFR_NONE, project_fkey_command); - bind(context, key_f10, MDFR_NONE, project_fkey_command); - bind(context, key_f11, MDFR_NONE, project_fkey_command); - bind(context, key_f12, MDFR_NONE, project_fkey_command); - bind(context, key_f13, MDFR_NONE, project_fkey_command); - bind(context, key_f14, MDFR_NONE, project_fkey_command); - bind(context, key_f15, MDFR_NONE, project_fkey_command); - bind(context, key_f16, MDFR_NONE, project_fkey_command); - bind(context, key_mouse_wheel, MDFR_NONE, mouse_wheel_scroll); - bind(context, key_mouse_wheel, MDFR_CMND, mouse_wheel_change_face_size); - end_map(context); - begin_map(context, mapid_file); - bind_vanilla_keys(context, write_character); - bind_vanilla_keys(context, MDFR_ALT, write_character); - bind(context, key_mouse_left, MDFR_NONE, click_set_cursor_and_mark); - bind(context, key_click_activate_view, MDFR_NONE, click_set_cursor_and_mark); - bind(context, key_mouse_left_release, MDFR_NONE, click_set_cursor); - bind(context, key_mouse_move, MDFR_NONE, click_set_cursor_if_lbutton); - bind(context, key_del, MDFR_NONE, delete_char); - bind(context, key_del, MDFR_SHIFT, delete_char); - bind(context, key_back, MDFR_NONE, backspace_char); - bind(context, key_back, MDFR_SHIFT, backspace_char); - bind(context, key_up, MDFR_NONE, move_up); - bind(context, key_down, MDFR_NONE, move_down); - bind(context, key_left, MDFR_NONE, move_left); - bind(context, key_right, MDFR_NONE, move_right); - bind(context, key_up, MDFR_SHIFT, move_up); - bind(context, key_down, MDFR_SHIFT, move_down); - bind(context, key_left, MDFR_SHIFT, move_left); - bind(context, key_right, MDFR_SHIFT, move_right); - bind(context, key_end, MDFR_NONE, seek_end_of_line); - bind(context, key_home, MDFR_NONE, seek_beginning_of_line); - bind(context, key_page_up, MDFR_CTRL, goto_beginning_of_file); - bind(context, key_page_down, MDFR_CTRL, goto_end_of_file); - bind(context, key_page_up, MDFR_NONE, page_up); - bind(context, key_page_down, MDFR_NONE, page_down); - bind(context, key_end, MDFR_SHIFT, seek_end_of_line); - bind(context, key_home, MDFR_SHIFT, seek_beginning_of_line); - bind(context, key_page_up, MDFR_CTRL|MDFR_SHIFT, goto_beginning_of_file); - bind(context, key_page_down, MDFR_CTRL|MDFR_SHIFT, goto_end_of_file); - bind(context, key_page_up, MDFR_SHIFT, page_up); - bind(context, key_page_down, MDFR_SHIFT, page_down); - bind(context, key_up, MDFR_CMND, move_up_to_blank_line_skip_whitespace); - bind(context, key_down, MDFR_CMND, move_down_to_blank_line_end); - bind(context, key_left, MDFR_CMND, move_left_whitespace_boundary); - bind(context, key_right, MDFR_CMND, move_right_whitespace_boundary); - bind(context, key_up, MDFR_CMND|MDFR_SHIFT, move_up_to_blank_line_skip_whitespace); - bind(context, key_down, MDFR_CMND|MDFR_SHIFT, move_down_to_blank_line_end); - bind(context, key_left, MDFR_CMND|MDFR_SHIFT, move_left_whitespace_boundary); - bind(context, key_right, MDFR_CMND|MDFR_SHIFT, move_right_whitespace_boundary); - bind(context, key_up, MDFR_ALT, move_line_up); - bind(context, key_down, MDFR_ALT, move_line_down); - bind(context, key_back, MDFR_CMND, backspace_alpha_numeric_boundary); - bind(context, key_del, MDFR_CMND, delete_alpha_numeric_boundary); - bind(context, key_back, MDFR_CTRL, snipe_backward_whitespace_or_token_boundary); - bind(context, key_del, MDFR_CTRL, snipe_forward_whitespace_or_token_boundary); - bind(context, '/', MDFR_CMND, set_mark); - bind(context, 'a', MDFR_CMND, replace_in_range); - bind(context, 'c', MDFR_CMND, copy); - bind(context, 'd', MDFR_CMND, delete_range); - bind(context, 'D', MDFR_CMND, delete_line); - bind(context, 'e', MDFR_CMND, center_view); - bind(context, 'E', MDFR_CMND, left_adjust_view); - bind(context, 'f', MDFR_CMND, search); - bind(context, 'F', MDFR_CMND, list_all_locations); - bind(context, 'F', MDFR_CTRL, list_all_substring_locations_case_insensitive); - bind(context, 'g', MDFR_CMND, goto_line); - bind(context, 'G', MDFR_CMND, list_all_locations_of_selection); - bind(context, 'K', MDFR_CMND, kill_buffer); - bind(context, 'L', MDFR_CMND, duplicate_line); - bind(context, 'm', MDFR_CMND, cursor_mark_swap); - bind(context, 'O', MDFR_CMND, reopen); - bind(context, 'q', MDFR_CMND, query_replace); - bind(context, 'Q', MDFR_CMND, query_replace_identifier); - bind(context, 'r', MDFR_CMND, reverse_search); - bind(context, 's', MDFR_CMND, save); - bind(context, 't', MDFR_CMND, search_identifier); - bind(context, 'T', MDFR_CMND, list_all_locations_of_identifier); - bind(context, 'v', MDFR_CMND, paste_and_indent); - bind(context, 'V', MDFR_CMND, paste_next_and_indent); - bind(context, 'x', MDFR_CMND, cut); - bind(context, 'y', MDFR_CMND, redo); - bind(context, 'z', MDFR_CMND, undo); - bind(context, '1', MDFR_CMND, view_buffer_other_panel); - bind(context, '2', MDFR_CMND, swap_buffers_between_panels); - bind(context, '\n', MDFR_NONE, newline_or_goto_position); - bind(context, '\n', MDFR_SHIFT, newline_or_goto_position_same_panel); - bind(context, '>', MDFR_CMND, view_jump_list_with_lister); - bind(context, ' ', MDFR_SHIFT, write_character); - end_map(context); - begin_map(context, default_code_map); - inherit_map(context, mapid_file); - bind(context, key_left, MDFR_CMND, move_left_alpha_numeric_or_camel_boundary); - bind(context, key_right, MDFR_CMND, move_right_alpha_numeric_or_camel_boundary); - bind(context, key_left, MDFR_CTRL, move_left_alpha_numeric_boundary); - bind(context, key_right, MDFR_CTRL, move_right_alpha_numeric_boundary); - bind(context, '\n', MDFR_NONE, write_and_auto_tab); - bind(context, '\n', MDFR_SHIFT, write_and_auto_tab); - bind(context, '}', MDFR_NONE, write_and_auto_tab); - bind(context, ')', MDFR_NONE, write_and_auto_tab); - bind(context, ']', MDFR_NONE, write_and_auto_tab); - bind(context, ';', MDFR_NONE, write_and_auto_tab); - bind(context, '#', MDFR_NONE, write_and_auto_tab); - bind(context, ';', MDFR_CTRL, comment_line_toggle); - bind(context, '\t', MDFR_NONE, word_complete); - bind(context, '\t', MDFR_CMND, auto_tab_range); - bind(context, '\t', MDFR_SHIFT, auto_tab_line_at_cursor); - bind(context, 'r', MDFR_CTRL, write_block); - bind(context, 't', MDFR_CTRL, write_todo); - bind(context, 'y', MDFR_CTRL, write_note); - bind(context, 'D', MDFR_CTRL, list_all_locations_of_type_definition); - bind(context, 'T', MDFR_CTRL, list_all_locations_of_type_definition_of_identifier); - bind(context, '[', MDFR_CMND, open_long_braces); - bind(context, '{', MDFR_CMND, open_long_braces_semicolon); - bind(context, '}', MDFR_CMND, open_long_braces_break); - bind(context, '[', MDFR_CTRL, select_surrounding_scope); - bind(context, ']', MDFR_CTRL, select_prev_scope_absolute); - bind(context, '\'', MDFR_CTRL, select_next_scope_absolute); - bind(context, '/', MDFR_CTRL, place_in_scope); - bind(context, '-', MDFR_CTRL, delete_current_scope); - bind(context, 'i', MDFR_CTRL, if0_off); - bind(context, '1', MDFR_CTRL, open_file_in_quotes); - bind(context, '2', MDFR_CTRL, open_matching_file_cpp); - bind(context, '0', MDFR_CMND, write_zero_struct); - end_map(context); - begin_map(context, default_lister_ui_map); - bind_vanilla_keys(context, lister__write_character); - bind(context, key_esc, MDFR_NONE, lister__quit); - bind(context, '\n', MDFR_NONE, lister__activate); - bind(context, '\t', MDFR_NONE, lister__activate); - bind(context, key_back, MDFR_NONE, lister__backspace_text_field); - bind(context, key_back, MDFR_CTRL, lister__backspace_text_field); - bind(context, key_back, MDFR_ALT, lister__backspace_text_field); - bind(context, key_back, MDFR_CMND, lister__backspace_text_field); - bind(context, key_back, MDFR_CTRL|MDFR_ALT, lister__backspace_text_field); - bind(context, key_back, MDFR_ALT|MDFR_CMND, lister__backspace_text_field); - bind(context, key_back, MDFR_CTRL|MDFR_CMND, lister__backspace_text_field); - bind(context, key_back, MDFR_CTRL|MDFR_ALT|MDFR_CMND, lister__backspace_text_field); - bind(context, key_up, MDFR_NONE, lister__move_up); - bind(context, key_page_up, MDFR_NONE, lister__move_up); - bind(context, key_down, MDFR_NONE, lister__move_down); - bind(context, key_page_down, MDFR_NONE, lister__move_down); - bind(context, key_mouse_wheel, MDFR_NONE, lister__wheel_scroll); - bind(context, key_mouse_left, MDFR_NONE, lister__mouse_press); - bind(context, key_mouse_left_release, MDFR_NONE, lister__mouse_release); - bind(context, key_mouse_move, MDFR_NONE, lister__repaint); - bind(context, key_animate, MDFR_NONE, lister__repaint); + bind(context, KeyCode_Escape, MDFR_NONE, lister__quit); + bind(context, KeyCode_Return, MDFR_NONE, lister__activate); + bind(context, KeyCode_Tab, MDFR_NONE, lister__activate); + bind(context, KeyCode_Backspace, MDFR_NONE, lister__backspace_text_field); + bind(context, KeyCode_Backspace, MDFR_CTRL, lister__backspace_text_field); + bind(context, KeyCode_Backspace, MDFR_ALT, lister__backspace_text_field); + bind(context, KeyCode_Backspace, MDFR_CMND, lister__backspace_text_field); + bind(context, KeyCode_Backspace, MDFR_CTRL|MDFR_ALT, lister__backspace_text_field); + bind(context, KeyCode_Backspace, MDFR_ALT|MDFR_CMND, lister__backspace_text_field); + bind(context, KeyCode_Backspace, MDFR_CTRL|MDFR_CMND, lister__backspace_text_field); + bind(context, KeyCode_Backspace, MDFR_CTRL|MDFR_ALT|MDFR_CMND, lister__backspace_text_field); + bind(context, KeyCode_Up, MDFR_NONE, lister__move_up); + bind(context, KeyCode_K, MDFR_ALT, lister__move_up); + bind(context, KeyCode_PageUp, MDFR_NONE, lister__move_up); + bind(context, KeyCode_Down, MDFR_NONE, lister__move_down); + bind(context, KeyCode_J, MDFR_ALT, lister__move_down); + bind(context, KeyCode_PageDown, MDFR_NONE, lister__move_down); + bind(context, KeyCodeExt_MouseWheel, MDFR_NONE, lister__wheel_scroll); + bind(context, KeyCodeExt_MouseLeft, MDFR_NONE, lister__mouse_press); + bind(context, KeyCodeExt_MouseLeftRelease, MDFR_NONE, lister__mouse_release); + bind(context, KeyCodeExt_MouseMove, MDFR_NONE, lister__repaint); + bind(context, KeyCodeExt_Animate, MDFR_NONE, lister__repaint); end_map(context); } #endif @@ -594,191 +410,6 @@ static Meta_Sub_Map fcoder_submaps_for_default[4] = { {"default_code_map", 16, "The following commands only apply in files where the lexer (syntax highlighting) is turned on.", 94, "mapid_file", 10, fcoder_binds_for_default_default_code_map, 33}, {"default_lister_ui_map", 21, "These commands apply in 'lister mode' such as when you open a file.", 67, 0, 0, fcoder_binds_for_default_default_lister_ui_map, 23}, }; -static Meta_Key_Bind fcoder_binds_for_mac_default_mapid_global[40] = { - {0, 44, 4, "change_active_panel", 19, LINK_PROCS(change_active_panel)}, - {0, 60, 4, "change_active_panel_backwards", 29, LINK_PROCS(change_active_panel_backwards)}, - {0, 110, 4, "interactive_new", 15, LINK_PROCS(interactive_new)}, - {0, 111, 4, "interactive_open_or_new", 23, LINK_PROCS(interactive_open_or_new)}, - {0, 111, 1, "open_in_other", 13, LINK_PROCS(open_in_other)}, - {0, 107, 4, "interactive_kill_buffer", 23, LINK_PROCS(interactive_kill_buffer)}, - {0, 105, 4, "interactive_switch_buffer", 25, LINK_PROCS(interactive_switch_buffer)}, - {0, 104, 4, "project_go_to_root_directory", 28, LINK_PROCS(project_go_to_root_directory)}, - {0, 83, 4, "save_all_dirty_buffers", 22, LINK_PROCS(save_all_dirty_buffers)}, - {0, 46, 1, "change_to_build_panel", 21, LINK_PROCS(change_to_build_panel)}, - {0, 44, 1, "close_build_panel", 17, LINK_PROCS(close_build_panel)}, - {0, 110, 1, "goto_next_jump", 14, LINK_PROCS(goto_next_jump)}, - {0, 78, 1, "goto_prev_jump", 14, LINK_PROCS(goto_prev_jump)}, - {0, 77, 1, "goto_first_jump", 15, LINK_PROCS(goto_first_jump)}, - {0, 109, 1, "build_in_build_panel", 20, LINK_PROCS(build_in_build_panel)}, - {0, 98, 1, "toggle_filebar", 14, LINK_PROCS(toggle_filebar)}, - {0, 122, 1, "execute_any_cli", 15, LINK_PROCS(execute_any_cli)}, - {0, 90, 1, "execute_previous_cli", 20, LINK_PROCS(execute_previous_cli)}, - {0, 120, 1, "command_lister", 14, LINK_PROCS(command_lister)}, - {0, 88, 1, "project_command_lister", 22, LINK_PROCS(project_command_lister)}, - {0, 73, 4, "list_all_functions_all_buffers_lister", 37, LINK_PROCS(list_all_functions_all_buffers_lister)}, - {0, 69, 1, "exit_4coder", 11, LINK_PROCS(exit_4coder)}, - {0, 55326, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55327, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55328, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55329, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55330, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55331, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55332, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55333, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55334, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55335, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55336, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55337, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55338, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55339, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55340, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55341, 0, "project_fkey_command", 20, LINK_PROCS(project_fkey_command)}, - {0, 55321, 0, "mouse_wheel_scroll", 18, LINK_PROCS(mouse_wheel_scroll)}, - {0, 55321, 4, "mouse_wheel_change_face_size", 28, LINK_PROCS(mouse_wheel_change_face_size)}, -}; -static Meta_Key_Bind fcoder_binds_for_mac_default_mapid_file[77] = { - {1, 0, 0, "write_character", 15, LINK_PROCS(write_character)}, - {1, 0, 2, "write_character", 15, LINK_PROCS(write_character)}, - {0, 55317, 0, "click_set_cursor_and_mark", 25, LINK_PROCS(click_set_cursor_and_mark)}, - {0, 55324, 0, "click_set_cursor_and_mark", 25, LINK_PROCS(click_set_cursor_and_mark)}, - {0, 55319, 0, "click_set_cursor", 16, LINK_PROCS(click_set_cursor)}, - {0, 55322, 0, "click_set_cursor_if_lbutton", 27, LINK_PROCS(click_set_cursor_if_lbutton)}, - {0, 55301, 0, "delete_char", 11, LINK_PROCS(delete_char)}, - {0, 55301, 8, "delete_char", 11, LINK_PROCS(delete_char)}, - {0, 55296, 0, "backspace_char", 14, LINK_PROCS(backspace_char)}, - {0, 55296, 8, "backspace_char", 14, LINK_PROCS(backspace_char)}, - {0, 55297, 0, "move_up", 7, LINK_PROCS(move_up)}, - {0, 55298, 0, "move_down", 9, LINK_PROCS(move_down)}, - {0, 55299, 0, "move_left", 9, LINK_PROCS(move_left)}, - {0, 55300, 0, "move_right", 10, LINK_PROCS(move_right)}, - {0, 55297, 8, "move_up", 7, LINK_PROCS(move_up)}, - {0, 55298, 8, "move_down", 9, LINK_PROCS(move_down)}, - {0, 55299, 8, "move_left", 9, LINK_PROCS(move_left)}, - {0, 55300, 8, "move_right", 10, LINK_PROCS(move_right)}, - {0, 55304, 0, "seek_end_of_line", 16, LINK_PROCS(seek_end_of_line)}, - {0, 55303, 0, "seek_beginning_of_line", 22, LINK_PROCS(seek_beginning_of_line)}, - {0, 55305, 1, "goto_beginning_of_file", 22, LINK_PROCS(goto_beginning_of_file)}, - {0, 55306, 1, "goto_end_of_file", 16, LINK_PROCS(goto_end_of_file)}, - {0, 55305, 0, "page_up", 7, LINK_PROCS(page_up)}, - {0, 55306, 0, "page_down", 9, LINK_PROCS(page_down)}, - {0, 55304, 8, "seek_end_of_line", 16, LINK_PROCS(seek_end_of_line)}, - {0, 55303, 8, "seek_beginning_of_line", 22, LINK_PROCS(seek_beginning_of_line)}, - {0, 55305, 9, "goto_beginning_of_file", 22, LINK_PROCS(goto_beginning_of_file)}, - {0, 55306, 9, "goto_end_of_file", 16, LINK_PROCS(goto_end_of_file)}, - {0, 55305, 8, "page_up", 7, LINK_PROCS(page_up)}, - {0, 55306, 8, "page_down", 9, LINK_PROCS(page_down)}, - {0, 55297, 4, "move_up_to_blank_line_skip_whitespace", 37, LINK_PROCS(move_up_to_blank_line_skip_whitespace)}, - {0, 55298, 4, "move_down_to_blank_line_end", 27, LINK_PROCS(move_down_to_blank_line_end)}, - {0, 55299, 4, "move_left_whitespace_boundary", 29, LINK_PROCS(move_left_whitespace_boundary)}, - {0, 55300, 4, "move_right_whitespace_boundary", 30, LINK_PROCS(move_right_whitespace_boundary)}, - {0, 55297, 12, "move_up_to_blank_line_skip_whitespace", 37, LINK_PROCS(move_up_to_blank_line_skip_whitespace)}, - {0, 55298, 12, "move_down_to_blank_line_end", 27, LINK_PROCS(move_down_to_blank_line_end)}, - {0, 55299, 12, "move_left_whitespace_boundary", 29, LINK_PROCS(move_left_whitespace_boundary)}, - {0, 55300, 12, "move_right_whitespace_boundary", 30, LINK_PROCS(move_right_whitespace_boundary)}, - {0, 55297, 2, "move_line_up", 12, LINK_PROCS(move_line_up)}, - {0, 55298, 2, "move_line_down", 14, LINK_PROCS(move_line_down)}, - {0, 55296, 4, "backspace_alpha_numeric_boundary", 32, LINK_PROCS(backspace_alpha_numeric_boundary)}, - {0, 55301, 4, "delete_alpha_numeric_boundary", 29, LINK_PROCS(delete_alpha_numeric_boundary)}, - {0, 55296, 1, "snipe_backward_whitespace_or_token_boundary", 43, LINK_PROCS(snipe_backward_whitespace_or_token_boundary)}, - {0, 55301, 1, "snipe_forward_whitespace_or_token_boundary", 42, LINK_PROCS(snipe_forward_whitespace_or_token_boundary)}, - {0, 47, 4, "set_mark", 8, LINK_PROCS(set_mark)}, - {0, 97, 4, "replace_in_range", 16, LINK_PROCS(replace_in_range)}, - {0, 99, 4, "copy", 4, LINK_PROCS(copy)}, - {0, 100, 4, "delete_range", 12, LINK_PROCS(delete_range)}, - {0, 68, 4, "delete_line", 11, LINK_PROCS(delete_line)}, - {0, 101, 4, "center_view", 11, LINK_PROCS(center_view)}, - {0, 69, 4, "left_adjust_view", 16, LINK_PROCS(left_adjust_view)}, - {0, 102, 4, "search", 6, LINK_PROCS(search)}, - {0, 70, 4, "list_all_locations", 18, LINK_PROCS(list_all_locations)}, - {0, 70, 1, "list_all_substring_locations_case_insensitive", 45, LINK_PROCS(list_all_substring_locations_case_insensitive)}, - {0, 103, 4, "goto_line", 9, LINK_PROCS(goto_line)}, - {0, 71, 4, "list_all_locations_of_selection", 31, LINK_PROCS(list_all_locations_of_selection)}, - {0, 75, 4, "kill_buffer", 11, LINK_PROCS(kill_buffer)}, - {0, 76, 4, "duplicate_line", 14, LINK_PROCS(duplicate_line)}, - {0, 109, 4, "cursor_mark_swap", 16, LINK_PROCS(cursor_mark_swap)}, - {0, 79, 4, "reopen", 6, LINK_PROCS(reopen)}, - {0, 113, 4, "query_replace", 13, LINK_PROCS(query_replace)}, - {0, 81, 4, "query_replace_identifier", 24, LINK_PROCS(query_replace_identifier)}, - {0, 114, 4, "reverse_search", 14, LINK_PROCS(reverse_search)}, - {0, 115, 4, "save", 4, LINK_PROCS(save)}, - {0, 116, 4, "search_identifier", 17, LINK_PROCS(search_identifier)}, - {0, 84, 4, "list_all_locations_of_identifier", 32, LINK_PROCS(list_all_locations_of_identifier)}, - {0, 118, 4, "paste_and_indent", 16, LINK_PROCS(paste_and_indent)}, - {0, 86, 4, "paste_next_and_indent", 21, LINK_PROCS(paste_next_and_indent)}, - {0, 120, 4, "cut", 3, LINK_PROCS(cut)}, - {0, 121, 4, "redo", 4, LINK_PROCS(redo)}, - {0, 122, 4, "undo", 4, LINK_PROCS(undo)}, - {0, 49, 4, "view_buffer_other_panel", 23, LINK_PROCS(view_buffer_other_panel)}, - {0, 50, 4, "swap_buffers_between_panels", 27, LINK_PROCS(swap_buffers_between_panels)}, - {0, 10, 0, "newline_or_goto_position", 24, LINK_PROCS(newline_or_goto_position)}, - {0, 10, 8, "newline_or_goto_position_same_panel", 35, LINK_PROCS(newline_or_goto_position_same_panel)}, - {0, 62, 4, "view_jump_list_with_lister", 26, LINK_PROCS(view_jump_list_with_lister)}, - {0, 32, 8, "write_character", 15, LINK_PROCS(write_character)}, -}; -static Meta_Key_Bind fcoder_binds_for_mac_default_default_code_map[33] = { - {0, 55299, 4, "move_left_alpha_numeric_or_camel_boundary", 41, LINK_PROCS(move_left_alpha_numeric_or_camel_boundary)}, - {0, 55300, 4, "move_right_alpha_numeric_or_camel_boundary", 42, LINK_PROCS(move_right_alpha_numeric_or_camel_boundary)}, - {0, 55299, 1, "move_left_alpha_numeric_boundary", 32, LINK_PROCS(move_left_alpha_numeric_boundary)}, - {0, 55300, 1, "move_right_alpha_numeric_boundary", 33, LINK_PROCS(move_right_alpha_numeric_boundary)}, - {0, 10, 0, "write_and_auto_tab", 18, LINK_PROCS(write_and_auto_tab)}, - {0, 10, 8, "write_and_auto_tab", 18, LINK_PROCS(write_and_auto_tab)}, - {0, 125, 0, "write_and_auto_tab", 18, LINK_PROCS(write_and_auto_tab)}, - {0, 41, 0, "write_and_auto_tab", 18, LINK_PROCS(write_and_auto_tab)}, - {0, 93, 0, "write_and_auto_tab", 18, LINK_PROCS(write_and_auto_tab)}, - {0, 59, 0, "write_and_auto_tab", 18, LINK_PROCS(write_and_auto_tab)}, - {0, 35, 0, "write_and_auto_tab", 18, LINK_PROCS(write_and_auto_tab)}, - {0, 59, 1, "comment_line_toggle", 19, LINK_PROCS(comment_line_toggle)}, - {0, 9, 0, "word_complete", 13, LINK_PROCS(word_complete)}, - {0, 9, 4, "auto_tab_range", 14, LINK_PROCS(auto_tab_range)}, - {0, 9, 8, "auto_tab_line_at_cursor", 23, LINK_PROCS(auto_tab_line_at_cursor)}, - {0, 114, 1, "write_block", 11, LINK_PROCS(write_block)}, - {0, 116, 1, "write_todo", 10, LINK_PROCS(write_todo)}, - {0, 121, 1, "write_note", 10, LINK_PROCS(write_note)}, - {0, 68, 1, "list_all_locations_of_type_definition", 37, LINK_PROCS(list_all_locations_of_type_definition)}, - {0, 84, 1, "list_all_locations_of_type_definition_of_identifier", 51, LINK_PROCS(list_all_locations_of_type_definition_of_identifier)}, - {0, 91, 4, "open_long_braces", 16, LINK_PROCS(open_long_braces)}, - {0, 123, 4, "open_long_braces_semicolon", 26, LINK_PROCS(open_long_braces_semicolon)}, - {0, 125, 4, "open_long_braces_break", 22, LINK_PROCS(open_long_braces_break)}, - {0, 91, 1, "select_surrounding_scope", 24, LINK_PROCS(select_surrounding_scope)}, - {0, 93, 1, "select_prev_scope_absolute", 26, LINK_PROCS(select_prev_scope_absolute)}, - {0, 39, 1, "select_next_scope_absolute", 26, LINK_PROCS(select_next_scope_absolute)}, - {0, 47, 1, "place_in_scope", 14, LINK_PROCS(place_in_scope)}, - {0, 45, 1, "delete_current_scope", 20, LINK_PROCS(delete_current_scope)}, - {0, 105, 1, "if0_off", 7, LINK_PROCS(if0_off)}, - {0, 49, 1, "open_file_in_quotes", 19, LINK_PROCS(open_file_in_quotes)}, - {0, 50, 1, "open_matching_file_cpp", 22, LINK_PROCS(open_matching_file_cpp)}, - {0, 48, 4, "write_zero_struct", 17, LINK_PROCS(write_zero_struct)}, -}; -static Meta_Key_Bind fcoder_binds_for_mac_default_default_lister_ui_map[21] = { - {1, 0, 0, "lister__write_character", 23, LINK_PROCS(lister__write_character)}, - {0, 55307, 0, "lister__quit", 12, LINK_PROCS(lister__quit)}, - {0, 10, 0, "lister__activate", 16, LINK_PROCS(lister__activate)}, - {0, 9, 0, "lister__activate", 16, LINK_PROCS(lister__activate)}, - {0, 55296, 0, "lister__backspace_text_field", 28, LINK_PROCS(lister__backspace_text_field)}, - {0, 55296, 1, "lister__backspace_text_field", 28, LINK_PROCS(lister__backspace_text_field)}, - {0, 55296, 2, "lister__backspace_text_field", 28, LINK_PROCS(lister__backspace_text_field)}, - {0, 55296, 4, "lister__backspace_text_field", 28, LINK_PROCS(lister__backspace_text_field)}, - {0, 55296, 3, "lister__backspace_text_field", 28, LINK_PROCS(lister__backspace_text_field)}, - {0, 55296, 6, "lister__backspace_text_field", 28, LINK_PROCS(lister__backspace_text_field)}, - {0, 55296, 5, "lister__backspace_text_field", 28, LINK_PROCS(lister__backspace_text_field)}, - {0, 55296, 7, "lister__backspace_text_field", 28, LINK_PROCS(lister__backspace_text_field)}, - {0, 55297, 0, "lister__move_up", 15, LINK_PROCS(lister__move_up)}, - {0, 55305, 0, "lister__move_up", 15, LINK_PROCS(lister__move_up)}, - {0, 55298, 0, "lister__move_down", 17, LINK_PROCS(lister__move_down)}, - {0, 55306, 0, "lister__move_down", 17, LINK_PROCS(lister__move_down)}, - {0, 55321, 0, "lister__wheel_scroll", 20, LINK_PROCS(lister__wheel_scroll)}, - {0, 55317, 0, "lister__mouse_press", 19, LINK_PROCS(lister__mouse_press)}, - {0, 55319, 0, "lister__mouse_release", 21, LINK_PROCS(lister__mouse_release)}, - {0, 55322, 0, "lister__repaint", 15, LINK_PROCS(lister__repaint)}, - {0, 55323, 0, "lister__repaint", 15, LINK_PROCS(lister__repaint)}, -}; -static Meta_Sub_Map fcoder_submaps_for_mac_default[4] = { - {"mapid_global", 12, "The following bindings apply in all situations.", 47, 0, 0, fcoder_binds_for_mac_default_mapid_global, 40}, - {"mapid_file", 10, "The following bindings apply in general text files and most apply in code files, but some are overriden by other commands specific to code files.", 145, 0, 0, fcoder_binds_for_mac_default_mapid_file, 77}, - {"default_code_map", 16, "The following commands only apply in files where the lexer (syntax highlighting) is turned on.", 94, "mapid_file", 10, fcoder_binds_for_mac_default_default_code_map, 33}, - {"default_lister_ui_map", 21, "These commands apply in 'lister mode' such as when you open a file.", 67, 0, 0, fcoder_binds_for_mac_default_default_lister_ui_map, 21}, -}; static Meta_Mapping fcoder_meta_maps[2] = { {"default", 7, "The default 4coder bindings - typically good for Windows and Linux", 66, fcoder_submaps_for_default, 4, LINK_PROCS(fill_keys_default)}, - {"mac_default", 11, "Default 4coder bindings on a Mac keyboard", 41, fcoder_submaps_for_mac_default, 4, LINK_PROCS(fill_keys_mac_default)}, }; diff --git a/custom/generated/system_api.cpp b/custom/generated/system_api.cpp index cbb4e9e6..ed253290 100644 --- a/custom/generated/system_api.cpp +++ b/custom/generated/system_api.cpp @@ -43,6 +43,7 @@ vtable->memory_free = system_memory_free; vtable->show_mouse_cursor = system_show_mouse_cursor; vtable->set_fullscreen = system_set_fullscreen; vtable->is_fullscreen = system_is_fullscreen; +vtable->get_keyboard_modifiers = system_get_keyboard_modifiers; } #if defined(DYNAMIC_LINK_API) function void @@ -90,6 +91,7 @@ system_memory_free = vtable->memory_free; system_show_mouse_cursor = vtable->show_mouse_cursor; system_set_fullscreen = vtable->set_fullscreen; system_is_fullscreen = vtable->is_fullscreen; +system_get_keyboard_modifiers = vtable->get_keyboard_modifiers; } #undef DYNAMIC_LINK_API #endif diff --git a/custom/generated/system_api.h b/custom/generated/system_api.h index 807b3736..e7362f2f 100644 --- a/custom/generated/system_api.h +++ b/custom/generated/system_api.h @@ -41,6 +41,7 @@ #define system_show_mouse_cursor_sig() void system_show_mouse_cursor(i32 show) #define system_set_fullscreen_sig() b32 system_set_fullscreen(b32 full_screen) #define system_is_fullscreen_sig() b32 system_is_fullscreen(void) +#define system_get_keyboard_modifiers_sig() Key_Modifiers system_get_keyboard_modifiers(void) typedef String_Const_u8 system_get_path_type(Arena* arena, System_Path_Code path_code); typedef String_Const_u8 system_get_canonical_type(Arena* arena, String_Const_u8 name); typedef File_List system_get_file_list_type(Arena* arena, String_Const_u8 directory); @@ -84,6 +85,7 @@ typedef void system_memory_free_type(void* ptr, umem size); typedef void system_show_mouse_cursor_type(i32 show); typedef b32 system_set_fullscreen_type(b32 full_screen); typedef b32 system_is_fullscreen_type(void); +typedef Key_Modifiers system_get_keyboard_modifiers_type(void); struct API_VTable_system{ system_get_path_type *get_path; system_get_canonical_type *get_canonical; @@ -128,6 +130,7 @@ system_memory_free_type *memory_free; system_show_mouse_cursor_type *show_mouse_cursor; system_set_fullscreen_type *set_fullscreen; system_is_fullscreen_type *is_fullscreen; +system_get_keyboard_modifiers_type *get_keyboard_modifiers; }; #if defined(STATIC_LINK_API) internal String_Const_u8 system_get_path(Arena* arena, System_Path_Code path_code); @@ -173,6 +176,7 @@ internal void system_memory_free(void* ptr, umem size); internal void system_show_mouse_cursor(i32 show); internal b32 system_set_fullscreen(b32 full_screen); internal b32 system_is_fullscreen(void); +internal Key_Modifiers system_get_keyboard_modifiers(void); #undef STATIC_LINK_API #elif defined(DYNAMIC_LINK_API) global system_get_path_type *system_get_path = 0; @@ -218,5 +222,6 @@ global system_memory_free_type *system_memory_free = 0; global system_show_mouse_cursor_type *system_show_mouse_cursor = 0; global system_set_fullscreen_type *system_set_fullscreen = 0; global system_is_fullscreen_type *system_is_fullscreen = 0; +global system_get_keyboard_modifiers_type *system_get_keyboard_modifiers = 0; #undef DYNAMIC_LINK_API #endif diff --git a/custom/generated/system_api_master_list.h b/custom/generated/system_api_master_list.h index 2773cd6b..906bc582 100644 --- a/custom/generated/system_api_master_list.h +++ b/custom/generated/system_api_master_list.h @@ -41,3 +41,4 @@ api(system) function void memory_free(void* ptr, umem size); api(system) function void show_mouse_cursor(i32 show); api(system) function b32 set_fullscreen(b32 full_screen); api(system) function b32 is_fullscreen(void); +api(system) function Key_Modifiers get_keyboard_modifiers(void); diff --git a/platform_linux/linux_4ed.cpp b/platform_linux/linux_4ed.cpp index 13159308..f931e9c5 100644 --- a/platform_linux/linux_4ed.cpp +++ b/platform_linux/linux_4ed.cpp @@ -20,6 +20,7 @@ #if defined(FRED_SUPER) # include "4coder_API/4coder_keycodes.h" +#include "4coder_keycode_extension.h" # include "4coder_API/4coder_style.h" # include "4coder_lib/4coder_arena.h" diff --git a/platform_mac/mac_4ed.cpp b/platform_mac/mac_4ed.cpp index c6930600..86df0baa 100644 --- a/platform_mac/mac_4ed.cpp +++ b/platform_mac/mac_4ed.cpp @@ -23,6 +23,7 @@ # include "4coder_lib/4coder_string.h" # include "4coder_API/4coder_keycodes.h" +#include "4coder_keycode_extension.h" # include "4coder_API/4coder_style.h" # include "4coder_API/4coder_types.h" diff --git a/platform_win32/win32_4ed.cpp b/platform_win32/win32_4ed.cpp index 469f9e58..bfd2ed21 100644 --- a/platform_win32/win32_4ed.cpp +++ b/platform_win32/win32_4ed.cpp @@ -1,3 +1,4 @@ + /* * Mr. 4th Dimention - Allen Webster * @@ -16,7 +17,8 @@ #include "4coder_table.h" #include "4coder_version.h" -#include "4coder_keycodes.h" +#include "generated/4coder_keycodes.h" +#include "4coder_keycode_extension.h" #include "4coder_default_colors.h" #include "4coder_types.h" @@ -615,54 +617,78 @@ global Key_Code keycode_lookup_table[255]; internal void win32_keycode_init(void){ - keycode_lookup_table[VK_BACK] = key_back; - keycode_lookup_table[VK_DELETE] = key_del; - keycode_lookup_table[VK_UP] = key_up; - keycode_lookup_table[VK_DOWN] = key_down; - keycode_lookup_table[VK_LEFT] = key_left; - keycode_lookup_table[VK_RIGHT] = key_right; - keycode_lookup_table[VK_INSERT] = key_insert; - keycode_lookup_table[VK_HOME] = key_home; - keycode_lookup_table[VK_END] = key_end; - keycode_lookup_table[VK_PRIOR] = key_page_up; - keycode_lookup_table[VK_NEXT] = key_page_down; - keycode_lookup_table[VK_ESCAPE] = key_esc; + for (u32 i = 'A'; i <= 'z'; i += 1){ + keycode_lookup_table[i] = KeyCode_A + i - 'A'; + } + for (u32 i = '0'; i <= '9'; i += 1){ + keycode_lookup_table[i] = KeyCode_0 + i - '0'; + } - keycode_lookup_table[VK_CONTROL] = key_ctrl; - keycode_lookup_table[VK_LCONTROL] = key_ctrl; - keycode_lookup_table[VK_RCONTROL] = key_ctrl; + keycode_lookup_table[VK_SPACE] = KeyCode_Space; + keycode_lookup_table[VK_OEM_3] = KeyCode_Tick; + keycode_lookup_table[VK_OEM_MINUS] = KeyCode_Minus; + keycode_lookup_table[VK_OEM_4] = KeyCode_LeftBracket; + keycode_lookup_table[VK_OEM_6] = KeyCode_RightBracket; + keycode_lookup_table[VK_OEM_1] = KeyCode_Semicolon; + keycode_lookup_table[VK_OEM_7] = KeyCode_Quote; + keycode_lookup_table[VK_OEM_COMMA] = KeyCode_Comma; + keycode_lookup_table[VK_OEM_PERIOD] = KeyCode_Period; + keycode_lookup_table[VK_OEM_2] = KeyCode_ForwardSlash; + keycode_lookup_table[VK_OEM_5] = KeyCode_BackwardSlash; - keycode_lookup_table[VK_MENU] = key_alt; - keycode_lookup_table[VK_LMENU] = key_alt; - keycode_lookup_table[VK_RMENU] = key_alt; + keycode_lookup_table[VK_TAB] = KeyCode_Tab; + keycode_lookup_table[VK_PAUSE] = KeyCode_Pause; + keycode_lookup_table[VK_ESCAPE] = KeyCode_Escape; - keycode_lookup_table[VK_SHIFT] = key_shift; - keycode_lookup_table[VK_LSHIFT] = key_shift; - keycode_lookup_table[VK_RSHIFT] = key_shift; + keycode_lookup_table[VK_UP] = KeyCode_Up; + keycode_lookup_table[VK_DOWN] = KeyCode_Down; + keycode_lookup_table[VK_LEFT] = KeyCode_Left; + keycode_lookup_table[VK_RIGHT] = KeyCode_Right; - keycode_lookup_table[VK_PAUSE] = key_pause; - keycode_lookup_table[VK_CAPITAL] = key_caps; - keycode_lookup_table[VK_NUMLOCK] = key_num_lock; - keycode_lookup_table[VK_SCROLL] = key_scroll_lock; - keycode_lookup_table[VK_APPS] = key_menu; + keycode_lookup_table[VK_BACK] = KeyCode_Backspace; + keycode_lookup_table[VK_RETURN] = KeyCode_Return; - keycode_lookup_table[VK_F1] = key_f1; - keycode_lookup_table[VK_F2] = key_f2; - keycode_lookup_table[VK_F3] = key_f3; - keycode_lookup_table[VK_F4] = key_f4; - keycode_lookup_table[VK_F5] = key_f5; - keycode_lookup_table[VK_F6] = key_f6; - keycode_lookup_table[VK_F7] = key_f7; - keycode_lookup_table[VK_F8] = key_f8; - keycode_lookup_table[VK_F9] = key_f9; + keycode_lookup_table[VK_DELETE] = KeyCode_Delete; + keycode_lookup_table[VK_INSERT] = KeyCode_Insert; + keycode_lookup_table[VK_HOME] = KeyCode_Home; + keycode_lookup_table[VK_END] = KeyCode_End; + keycode_lookup_table[VK_PRIOR] = KeyCode_PageUp; + keycode_lookup_table[VK_NEXT] = KeyCode_PageDown; - keycode_lookup_table[VK_F10] = key_f10; - keycode_lookup_table[VK_F11] = key_f11; - keycode_lookup_table[VK_F12] = key_f12; - keycode_lookup_table[VK_F13] = key_f13; - keycode_lookup_table[VK_F14] = key_f14; - keycode_lookup_table[VK_F15] = key_f15; - keycode_lookup_table[VK_F16] = key_f16; + keycode_lookup_table[VK_CAPITAL] = KeyCode_CapsLock; + keycode_lookup_table[VK_NUMLOCK] = KeyCode_NumLock; + keycode_lookup_table[VK_SCROLL] = KeyCode_ScrollLock; + keycode_lookup_table[VK_APPS] = KeyCode_Menu; + + keycode_lookup_table[VK_SHIFT] = KeyCode_Shift; + keycode_lookup_table[VK_LSHIFT] = KeyCode_Shift; + keycode_lookup_table[VK_RSHIFT] = KeyCode_Shift; + + keycode_lookup_table[VK_CONTROL] = KeyCode_Control; + keycode_lookup_table[VK_LCONTROL] = KeyCode_Control; + keycode_lookup_table[VK_RCONTROL] = KeyCode_Control; + + keycode_lookup_table[VK_MENU] = KeyCode_Alt; + keycode_lookup_table[VK_LMENU] = KeyCode_Alt; + keycode_lookup_table[VK_RMENU] = KeyCode_Alt; + + keycode_lookup_table[VK_F1] = KeyCode_F1; + keycode_lookup_table[VK_F2] = KeyCode_F2; + keycode_lookup_table[VK_F3] = KeyCode_F3; + keycode_lookup_table[VK_F4] = KeyCode_F4; + keycode_lookup_table[VK_F5] = KeyCode_F5; + keycode_lookup_table[VK_F6] = KeyCode_F6; + keycode_lookup_table[VK_F7] = KeyCode_F7; + keycode_lookup_table[VK_F8] = KeyCode_F8; + keycode_lookup_table[VK_F9] = KeyCode_F9; + + keycode_lookup_table[VK_F10] = KeyCode_F10; + keycode_lookup_table[VK_F11] = KeyCode_F11; + keycode_lookup_table[VK_F12] = KeyCode_F12; + keycode_lookup_table[VK_F13] = KeyCode_F13; + keycode_lookup_table[VK_F14] = KeyCode_F14; + keycode_lookup_table[VK_F15] = KeyCode_F15; + keycode_lookup_table[VK_F16] = KeyCode_F16; } internal void diff --git a/project.4coder b/project.4coder index d4d39510..dc75dd4a 100644 --- a/project.4coder +++ b/project.4coder @@ -65,13 +65,17 @@ command_list = { .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cmd = { { "custom\\bin\\build_one_time 4ed_api_check.cpp ..\\build & copy /B ..\\build\\one_time.exe ..\\build\\api_checker.exe", .os = "win" }, }, }, + { .name = "build keycode generator", + .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, + .cmd = { { "custom\\bin\\build_one_time 4ed_generate_keycodes.cpp ..\\build", .os = "win" }, }, }, + { .name = "generate custom api master list", .out = "*run*", .footer_panel = false, .save_dirty_files = false, .cmd = { { "..\\build\\api_parser 4ed_api_implementation.cpp", .os = "win" }, }, }, }; fkey_command[1] = "build x64"; -fkey_command[2] = "build api checker"; +fkey_command[2] = "build keycode generator"; fkey_command[4] = "run one time"; fkey_command[5] = "build C++ lexer generator"; fkey_command[6] = "build token tester";