Finishing up the new memory and lifetime API stuff, fixed some of the bug reports
							parent
							
								
									1469f78ba0
								
							
						
					
					
						commit
						e6d503abe5
					
				|  | @ -679,6 +679,22 @@ STRUCT View_Summary{ | |||
|     GUI_Scroll_Vars scroll_vars; | ||||
| }; | ||||
| 
 | ||||
| ENUM(int32_t, Managed_Object_Type) | ||||
| { | ||||
|     ManagedObjectType_Error = 0, | ||||
|     ManagedObjectType_Memory = 1, | ||||
|     ManagedObjectType_Markers = 2, | ||||
|     ManagedObjectType_COUNT = 3, | ||||
| }; | ||||
| 
 | ||||
| TYPEDEF uint64_t Managed_Scope; | ||||
| TYPEDEF int32_t Managed_Variable_ID; | ||||
| TYPEDEF uint64_t Managed_Object; | ||||
| 
 | ||||
| static Managed_Scope ManagedScope_NULL = 0; | ||||
| static Managed_Variable_ID ManagedVariableIndex_ERROR = -1; | ||||
| static Managed_Object ManagedObject_NULL = 0; | ||||
| 
 | ||||
| /* DOC(Query_Bar is a struct used to store information in the user's control that will be displayed as a drop down bar durring an interactive command.) */ | ||||
| STRUCT Query_Bar{ | ||||
|     /* DOC(This specifies the prompt portion of the drop down bar.) */ | ||||
|  | @ -687,14 +703,6 @@ STRUCT Query_Bar{ | |||
|     String string; | ||||
| }; | ||||
| 
 | ||||
| TYPEDEF uint64_t Managed_Group; | ||||
| TYPEDEF int32_t Managed_Variable_ID; | ||||
| TYPEDEF uint64_t Managed_Object; | ||||
| 
 | ||||
| static Managed_Group ManagedGroup_NULL = 0; | ||||
| static Managed_Variable_ID ManagedVariableIndex_ERROR = -1; | ||||
| static Managed_Object ManagedObject_NULL = 0; | ||||
| 
 | ||||
| ENUM(int16_t, UI_Item_Type){ | ||||
|     UIType_Option = 0, | ||||
|     UIType_TextField = 1, | ||||
|  |  | |||
|  | @ -21,15 +21,15 @@ write_character_parameter(Application_Links *app, uint8_t *character, uint32_t l | |||
|         //Managed_Object handle = buffer_add_markers(app, buffer.buffer_id, 1, 0);
 | ||||
|         //buffer_set_markers(app, handle, 0, 1, &next_cursor_marker);
 | ||||
|          | ||||
|         Managed_Object handle = buffer_markers_alloc(app, buffer.buffer_id, 1, 0); | ||||
|         managed_object_write(app, handle, 0, sizeof(Marker), &next_cursor_marker); | ||||
|         Managed_Object handle = alloc_buffer_markers_on_buffer(app, buffer.buffer_id, 1, 0); | ||||
|         managed_object_store_data(app, handle, 0, 1, &next_cursor_marker); | ||||
|          | ||||
|         buffer_replace_range(app, &buffer, pos, pos, (char*)character, length); | ||||
|          | ||||
|         //buffer_get_markers(app, handle, 0, 1, &next_cursor_marker);
 | ||||
|         //buffer_remove_markers(app, handle);
 | ||||
|          | ||||
|         managed_object_read(app, handle, 0, sizeof(Marker), &next_cursor_marker); | ||||
|         managed_object_load_data(app, handle, 0, 1, &next_cursor_marker); | ||||
|         managed_object_free(app, handle); | ||||
|          | ||||
|         view_set_cursor(app, &view, seek_pos(next_cursor_marker.pos), true); | ||||
|  |  | |||
|  | @ -50,10 +50,10 @@ CUSTOM_DOC("At the cursor, insert the text at the top of the clipboard.") | |||
|     int32_t count = clipboard_count(app, 0); | ||||
|     if (count > 0){ | ||||
|         View_Summary view = get_active_view(app, access); | ||||
|         Managed_Group group = view_get_managed_group(app, view.view_id); | ||||
|         managed_variable_set(app, group, view_next_rewrite_loc, RewritePaste); | ||||
|         Managed_Scope scope = view_get_managed_scope(app, view.view_id); | ||||
|         managed_variable_set(app, scope, view_next_rewrite_loc, RewritePaste); | ||||
|         int32_t paste_index = 0; | ||||
|         managed_variable_set(app, group, view_paste_index_loc, paste_index); | ||||
|         managed_variable_set(app, scope, view_paste_index_loc, paste_index); | ||||
|          | ||||
|         int32_t len = clipboard_index(app, 0, paste_index, 0, 0); | ||||
|         char *str = 0; | ||||
|  | @ -87,16 +87,16 @@ CUSTOM_DOC("If the previous command was paste or paste_next, replaces the paste | |||
|     int32_t count = clipboard_count(app, 0); | ||||
|     if (count > 0){ | ||||
|         View_Summary view = get_active_view(app, access); | ||||
|         Managed_Group group = view_get_managed_group(app, view.view_id); | ||||
|         Managed_Scope scope = view_get_managed_scope(app, view.view_id); | ||||
|          | ||||
|         uint64_t rewrite = 0; | ||||
|         managed_variable_get(app, group, view_rewrite_loc, &rewrite); | ||||
|         managed_variable_get(app, scope, view_rewrite_loc, &rewrite); | ||||
|         if (rewrite == RewritePaste){ | ||||
|             managed_variable_set(app, group, view_next_rewrite_loc, RewritePaste); | ||||
|             managed_variable_set(app, scope, view_next_rewrite_loc, RewritePaste); | ||||
|             uint64_t prev_paste_index = 0; | ||||
|             managed_variable_get(app, group, view_paste_index_loc, &prev_paste_index); | ||||
|             managed_variable_get(app, scope, view_paste_index_loc, &prev_paste_index); | ||||
|             int32_t paste_index = (int32_t)prev_paste_index + 1; | ||||
|             managed_variable_set(app, group, view_paste_index_loc, paste_index); | ||||
|             managed_variable_set(app, scope, view_paste_index_loc, paste_index); | ||||
|              | ||||
|             int32_t len = clipboard_index(app, 0, paste_index, 0, 0); | ||||
|             char *str = 0; | ||||
|  |  | |||
|  | @ -56,15 +56,15 @@ new_view_settings(Application_Links *app, View_Summary *view){ | |||
| 
 | ||||
| static void | ||||
| view_set_passive(Application_Links *app, View_Summary *view, bool32 value){ | ||||
|     Managed_Group group = view_get_managed_group(app, view->view_id); | ||||
|     managed_variable_set(app, group, view_is_passive_loc, (uint64_t)value); | ||||
|     Managed_Scope scope = view_get_managed_scope(app, view->view_id); | ||||
|     managed_variable_set(app, scope, view_is_passive_loc, (uint64_t)value); | ||||
| } | ||||
| 
 | ||||
| static bool32 | ||||
| view_get_is_passive(Application_Links *app, View_Summary *view){ | ||||
|     Managed_Group group = view_get_managed_group(app, view->view_id); | ||||
|     Managed_Scope scope = view_get_managed_scope(app, view->view_id); | ||||
|     uint64_t is_passive = 0; | ||||
|     managed_variable_get(app, group, view_is_passive_loc, &is_passive); | ||||
|     managed_variable_get(app, scope, view_is_passive_loc, &is_passive); | ||||
|     return(is_passive != 0); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -42,12 +42,12 @@ START_HOOK_SIG(default_start){ | |||
| // also relies on this particular command caller hook.
 | ||||
| COMMAND_CALLER_HOOK(default_command_caller){ | ||||
|     View_Summary view = get_active_view(app, AccessAll); | ||||
|     Managed_Group group = view_get_managed_group(app, view.view_id); | ||||
|     managed_variable_set(app, group, view_next_rewrite_loc, 0); | ||||
|     Managed_Scope scope = view_get_managed_scope(app, view.view_id); | ||||
|     managed_variable_set(app, scope, view_next_rewrite_loc, 0); | ||||
|     exec_command(app, cmd); | ||||
|     uint64_t next_rewrite = 0; | ||||
|     managed_variable_get(app, group, view_next_rewrite_loc, &next_rewrite); | ||||
|     managed_variable_set(app, group, view_rewrite_loc, next_rewrite); | ||||
|     managed_variable_get(app, scope, view_next_rewrite_loc, &next_rewrite); | ||||
|     managed_variable_set(app, scope, view_rewrite_loc, next_rewrite); | ||||
|     return(0); | ||||
| } | ||||
| 
 | ||||
|  | @ -215,7 +215,6 @@ OPEN_FILE_HOOK_SIG(default_file_settings){ | |||
|      | ||||
|     bool32 treat_as_code = false; | ||||
|     bool32 treat_as_todo = false; | ||||
|     bool32 wrap_lines = true; | ||||
|     bool32 lex_without_strings = false; | ||||
|      | ||||
|     CString_Array extensions = get_code_extensions(&global_config.code_exts); | ||||
|  | @ -279,20 +278,10 @@ OPEN_FILE_HOOK_SIG(default_file_settings){ | |||
|         } | ||||
|          | ||||
|         if (!treat_as_code){ | ||||
|             String lead_name = front_of_directory(name); | ||||
|             if (match_insensitive(lead_name, "todo.txt")){ | ||||
|                 treat_as_todo = true; | ||||
|             } | ||||
|             treat_as_todo = match_insensitive(front_of_directory(name), "todo.txt"); | ||||
|         } | ||||
|     } | ||||
|      | ||||
|     if (treat_as_code){ | ||||
|         wrap_lines = false; | ||||
|     } | ||||
|     if (buffer.file_name == 0){ | ||||
|         wrap_lines = false; | ||||
|     } | ||||
|      | ||||
|     int32_t map_id = (treat_as_code)?((int32_t)default_code_map):((int32_t)mapid_file); | ||||
|     int32_t map_id_query = 0; | ||||
|      | ||||
|  | @ -307,36 +296,46 @@ OPEN_FILE_HOOK_SIG(default_file_settings){ | |||
|     Assert(map_id_query == map_id); | ||||
|     buffer_set_setting(app, &buffer, BufferSetting_ParserContext, parse_context_id); | ||||
|      | ||||
|     // NOTE(allen): Decide buffer settings
 | ||||
|     bool32 wrap_lines = true; | ||||
|     bool32 use_virtual_whitespace = false; | ||||
|     bool32 use_lexer = false; | ||||
|     if (treat_as_todo){ | ||||
|         buffer_set_setting(app, &buffer, BufferSetting_WrapLine, true); | ||||
|         lex_without_strings = true; | ||||
|         wrap_lines = true; | ||||
|         use_virtual_whitespace = true; | ||||
|         use_lexer = true; | ||||
|     } | ||||
|     else if (treat_as_code){ | ||||
|         wrap_lines = global_config.enable_code_wrapping; | ||||
|         use_virtual_whitespace = global_config.enable_virtual_whitespace; | ||||
|         use_lexer = true; | ||||
|     } | ||||
|     if (match(make_string(buffer.buffer_name, buffer.buffer_name_len), "*compilation*")){ | ||||
|         wrap_lines = false; | ||||
|     } | ||||
|     if (buffer.size >= (192 << 10)){ | ||||
|         wrap_lines = false; | ||||
|         use_virtual_whitespace = false; | ||||
|     } | ||||
|      | ||||
|     // NOTE(allen|a4.0.12): There is a little bit of grossness going on here.
 | ||||
|     // If we set BufferSetting_Lex to true, it will launch a lexing job.
 | ||||
|     // If a lexing job is active when we set BufferSetting_VirtualWhitespace, the call can fail.
 | ||||
|     // Unfortunantely without tokens virtual whitespace doesn't really make sense.
 | ||||
|     // So for now I have it automatically turning on lexing when virtual whitespace is turned on.
 | ||||
|     // Cleaning some of that up is a goal for future versions.
 | ||||
|     if (lex_without_strings){ | ||||
|         buffer_set_setting(app, &buffer, BufferSetting_LexWithoutStrings, true); | ||||
|     } | ||||
|     if (wrap_lines){ | ||||
|         buffer_set_setting(app, &buffer, BufferSetting_WrapLine, true); | ||||
|     } | ||||
|     if (use_virtual_whitespace){ | ||||
|         buffer_set_setting(app, &buffer, BufferSetting_VirtualWhitespace, true); | ||||
|     } | ||||
|     else if (treat_as_code && buffer.size < (128 << 10)){ | ||||
|         if (global_config.enable_virtual_whitespace){ | ||||
|             // NOTE(allen|a4.0.12): There is a little bit of grossness going on here.
 | ||||
|             // If we set BufferSetting_Lex to true, it will launch a lexing job.
 | ||||
|             // If a lexing job is active when we set BufferSetting_VirtualWhitespace, the call can fail.
 | ||||
|             // Unfortunantely without tokens virtual whitespace doesn't really make sense.
 | ||||
|             // So for now I have it automatically turning on lexing when virtual whitespace is turned on.
 | ||||
|             // Cleaning some of that up is a goal for future versions.
 | ||||
|             if (lex_without_strings){ | ||||
|                 buffer_set_setting(app, &buffer, BufferSetting_LexWithoutStrings, true); | ||||
|             } | ||||
|             buffer_set_setting(app, &buffer, BufferSetting_WrapLine, global_config.enable_code_wrapping); | ||||
|             buffer_set_setting(app, &buffer, BufferSetting_VirtualWhitespace, true); | ||||
|         } | ||||
|         else if (global_config.enable_code_wrapping){ | ||||
|             if (lex_without_strings){ | ||||
|                 buffer_set_setting(app, &buffer, BufferSetting_LexWithoutStrings, true); | ||||
|             } | ||||
|             buffer_set_setting(app, &buffer, BufferSetting_Lex, true); | ||||
|             buffer_set_setting(app, &buffer, BufferSetting_WrapLine, true); | ||||
|         } | ||||
|     } | ||||
|     else{ | ||||
|         buffer_set_setting(app, &buffer, BufferSetting_WrapLine, wrap_lines); | ||||
|         buffer_set_setting(app, &buffer, BufferSetting_Lex, treat_as_code); | ||||
|     if (use_lexer){ | ||||
|         buffer_set_setting(app, &buffer, BufferSetting_Lex, true); | ||||
|     } | ||||
|      | ||||
|     // no meaning for return
 | ||||
|  |  | |||
|  | @ -19,7 +19,7 @@ struct Application_Links; | |||
| #define BUFFER_BATCH_EDIT_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, char *str, int32_t str_len, Buffer_Edit *edits, int32_t edit_count, Buffer_Batch_Edit_Type type) | ||||
| #define BUFFER_GET_SETTING_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t *value_out) | ||||
| #define BUFFER_SET_SETTING_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t value) | ||||
| #define BUFFER_GET_MANAGED_GROUP_SIG(n) Managed_Group n(Application_Links *app, Buffer_ID buffer_id) | ||||
| #define BUFFER_GET_MANAGED_SCOPE_SIG(n) Managed_Scope n(Application_Links *app, Buffer_ID buffer_id) | ||||
| #define BUFFER_TOKEN_COUNT_SIG(n) int32_t n(Application_Links *app, Buffer_Summary *buffer) | ||||
| #define BUFFER_READ_TOKENS_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, int32_t start_token, int32_t end_token, Cpp_Token *tokens_out) | ||||
| #define BUFFER_GET_TOKEN_INDEX_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, int32_t pos, Cpp_Get_Token_Result *get_result) | ||||
|  | @ -36,7 +36,7 @@ struct Application_Links; | |||
| #define SET_ACTIVE_VIEW_SIG(n) bool32 n(Application_Links *app, View_Summary *view) | ||||
| #define VIEW_GET_SETTING_SIG(n) bool32 n(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t *value_out) | ||||
| #define VIEW_SET_SETTING_SIG(n) bool32 n(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t value) | ||||
| #define VIEW_GET_MANAGED_GROUP_SIG(n) Managed_Group n(Application_Links *app, View_ID view_id) | ||||
| #define VIEW_GET_MANAGED_SCOPE_SIG(n) Managed_Scope n(Application_Links *app, View_ID view_id) | ||||
| #define VIEW_SET_SPLIT_PROPORTION_SIG(n) bool32 n(Application_Links *app, View_Summary *view, float t) | ||||
| #define VIEW_COMPUTE_CURSOR_SIG(n) bool32 n(Application_Links *app, View_Summary *view, Buffer_Seek seek, Full_Cursor *cursor_out) | ||||
| #define VIEW_SET_CURSOR_SIG(n) bool32 n(Application_Links *app, View_Summary *view, Buffer_Seek seek, bool32 set_preferred_x) | ||||
|  | @ -49,18 +49,22 @@ struct Application_Links; | |||
| #define VIEW_END_UI_MODE_SIG(n) int32_t n(Application_Links *app, View_Summary *view) | ||||
| #define VIEW_SET_UI_SIG(n) bool32 n(Application_Links *app, View_Summary *view, UI_Control *control) | ||||
| #define VIEW_GET_UI_COPY_SIG(n) UI_Control n(Application_Links *app, View_Summary *view, struct Partition *part) | ||||
| #define GET_GLOBAL_MANAGED_GROUP_SIG(n) Managed_Group n(Application_Links *app) | ||||
| #define GET_INTERSECTED_MANAGED_GROUP_SIG(n) Managed_Group n(Application_Links *app, Managed_Group *intersected_groups, int32_t count) | ||||
| #define GET_GLOBAL_MANAGED_SCOPE_SIG(n) Managed_Scope n(Application_Links *app) | ||||
| #define GET_MANAGED_SCOPE_WITH_MULTIPLE_DEPENDENCIES_SIG(n) Managed_Scope n(Application_Links *app, Managed_Scope *intersected_scopes, int32_t count) | ||||
| #define MANAGED_VARIABLE_CREATE_SIG(n) Managed_Variable_ID n(Application_Links *app, char *null_terminated_name, uint64_t default_value) | ||||
| #define MANAGED_VARIABLE_GET_ID_SIG(n) Managed_Variable_ID n(Application_Links *app, char *null_terminated_name) | ||||
| #define MANAGED_VARIABLE_CREATE_OR_GET_ID_SIG(n) Managed_Variable_ID n(Application_Links *app, char *null_terminated_name, uint64_t default_value) | ||||
| #define MANAGED_VARIABLE_SET_SIG(n) bool32 n(Application_Links *app, Managed_Group group, Managed_Variable_ID location, uint64_t value) | ||||
| #define MANAGED_VARIABLE_GET_SIG(n) bool32 n(Application_Links *app, Managed_Group group, Managed_Variable_ID location, uint64_t *value_out) | ||||
| #define MANAGED_MEMORY_ALLOC_SIG(n) Managed_Object n(Application_Links *app, Managed_Group group, int32_t size) | ||||
| #define BUFFER_MARKERS_ALLOC_SIG(n) Managed_Object n(Application_Links *app, Buffer_ID buffer_id, int32_t count, Managed_Group *group) | ||||
| #define MANAGED_VARIABLE_SET_SIG(n) bool32 n(Application_Links *app, Managed_Scope scope, Managed_Variable_ID location, uint64_t value) | ||||
| #define MANAGED_VARIABLE_GET_SIG(n) bool32 n(Application_Links *app, Managed_Scope scope, Managed_Variable_ID location, uint64_t *value_out) | ||||
| #define ALLOC_MANAGED_MEMORY_IN_SCOPE_SIG(n) Managed_Object n(Application_Links *app, Managed_Scope scope, int32_t item_size, int32_t count) | ||||
| #define ALLOC_BUFFER_MARKERS_ON_BUFFER_SIG(n) Managed_Object n(Application_Links *app, Buffer_ID buffer_id, int32_t count, Managed_Scope *optional_extra_scope) | ||||
| #define MANAGED_OBJECT_GET_ITEM_SIZE_SIG(n) uint32_t n(Application_Links *app, Managed_Object object) | ||||
| #define MANAGED_OBJECT_GET_ITEM_COUNT_SIG(n) uint32_t n(Application_Links *app, Managed_Object object) | ||||
| #define MANAGED_OBJECT_GET_TYPE_SIG(n) Managed_Object_Type n(Application_Links *app, Managed_Object object) | ||||
| #define MANAGED_OBJECT_GET_CONTAINING_SCOPE_SIG(n) Managed_Scope n(Application_Links *app, Managed_Object object) | ||||
| #define MANAGED_OBJECT_FREE_SIG(n) bool32 n(Application_Links *app, Managed_Object object) | ||||
| #define MANAGED_OBJECT_WRITE_SIG(n) bool32 n(Application_Links *app, Managed_Object object, uint32_t start, uint32_t size, void *mem) | ||||
| #define MANAGED_OBJECT_READ_SIG(n) bool32 n(Application_Links *app, Managed_Object object, uint32_t start, uint32_t size, void *mem_out) | ||||
| #define MANAGED_OBJECT_STORE_DATA_SIG(n) bool32 n(Application_Links *app, Managed_Object object, uint32_t first_index, uint32_t count, void *mem) | ||||
| #define MANAGED_OBJECT_LOAD_DATA_SIG(n) bool32 n(Application_Links *app, Managed_Object object, uint32_t first_index, uint32_t count, void *mem_out) | ||||
| #define GET_USER_INPUT_SIG(n) User_Input n(Application_Links *app, Input_Type_Flag get_type, Input_Type_Flag abort_type) | ||||
| #define GET_COMMAND_INPUT_SIG(n) User_Input n(Application_Links *app) | ||||
| #define GET_MOUSE_STATE_SIG(n) Mouse_State n(Application_Links *app) | ||||
|  | @ -120,7 +124,7 @@ typedef BUFFER_COMPUTE_CURSOR_SIG(Buffer_Compute_Cursor_Function); | |||
| typedef BUFFER_BATCH_EDIT_SIG(Buffer_Batch_Edit_Function); | ||||
| typedef BUFFER_GET_SETTING_SIG(Buffer_Get_Setting_Function); | ||||
| typedef BUFFER_SET_SETTING_SIG(Buffer_Set_Setting_Function); | ||||
| typedef BUFFER_GET_MANAGED_GROUP_SIG(Buffer_Get_Managed_Group_Function); | ||||
| typedef BUFFER_GET_MANAGED_SCOPE_SIG(Buffer_Get_Managed_Scope_Function); | ||||
| typedef BUFFER_TOKEN_COUNT_SIG(Buffer_Token_Count_Function); | ||||
| typedef BUFFER_READ_TOKENS_SIG(Buffer_Read_Tokens_Function); | ||||
| typedef BUFFER_GET_TOKEN_INDEX_SIG(Buffer_Get_Token_Index_Function); | ||||
|  | @ -137,7 +141,7 @@ typedef CLOSE_VIEW_SIG(Close_View_Function); | |||
| typedef SET_ACTIVE_VIEW_SIG(Set_Active_View_Function); | ||||
| typedef VIEW_GET_SETTING_SIG(View_Get_Setting_Function); | ||||
| typedef VIEW_SET_SETTING_SIG(View_Set_Setting_Function); | ||||
| typedef VIEW_GET_MANAGED_GROUP_SIG(View_Get_Managed_Group_Function); | ||||
| typedef VIEW_GET_MANAGED_SCOPE_SIG(View_Get_Managed_Scope_Function); | ||||
| typedef VIEW_SET_SPLIT_PROPORTION_SIG(View_Set_Split_Proportion_Function); | ||||
| typedef VIEW_COMPUTE_CURSOR_SIG(View_Compute_Cursor_Function); | ||||
| typedef VIEW_SET_CURSOR_SIG(View_Set_Cursor_Function); | ||||
|  | @ -150,18 +154,22 @@ typedef VIEW_START_UI_MODE_SIG(View_Start_UI_Mode_Function); | |||
| typedef VIEW_END_UI_MODE_SIG(View_End_UI_Mode_Function); | ||||
| typedef VIEW_SET_UI_SIG(View_Set_UI_Function); | ||||
| typedef VIEW_GET_UI_COPY_SIG(View_Get_UI_Copy_Function); | ||||
| typedef GET_GLOBAL_MANAGED_GROUP_SIG(Get_Global_Managed_Group_Function); | ||||
| typedef GET_INTERSECTED_MANAGED_GROUP_SIG(Get_Intersected_Managed_Group_Function); | ||||
| typedef GET_GLOBAL_MANAGED_SCOPE_SIG(Get_Global_Managed_Scope_Function); | ||||
| typedef GET_MANAGED_SCOPE_WITH_MULTIPLE_DEPENDENCIES_SIG(Get_Managed_Scope_With_Multiple_Dependencies_Function); | ||||
| typedef MANAGED_VARIABLE_CREATE_SIG(Managed_Variable_Create_Function); | ||||
| typedef MANAGED_VARIABLE_GET_ID_SIG(Managed_Variable_Get_ID_Function); | ||||
| typedef MANAGED_VARIABLE_CREATE_OR_GET_ID_SIG(Managed_Variable_Create_Or_Get_ID_Function); | ||||
| typedef MANAGED_VARIABLE_SET_SIG(Managed_Variable_Set_Function); | ||||
| typedef MANAGED_VARIABLE_GET_SIG(Managed_Variable_Get_Function); | ||||
| typedef MANAGED_MEMORY_ALLOC_SIG(Managed_Memory_Alloc_Function); | ||||
| typedef BUFFER_MARKERS_ALLOC_SIG(Buffer_Markers_Alloc_Function); | ||||
| typedef ALLOC_MANAGED_MEMORY_IN_SCOPE_SIG(Alloc_Managed_Memory_In_Scope_Function); | ||||
| typedef ALLOC_BUFFER_MARKERS_ON_BUFFER_SIG(Alloc_Buffer_Markers_On_Buffer_Function); | ||||
| typedef MANAGED_OBJECT_GET_ITEM_SIZE_SIG(Managed_Object_Get_Item_Size_Function); | ||||
| typedef MANAGED_OBJECT_GET_ITEM_COUNT_SIG(Managed_Object_Get_Item_Count_Function); | ||||
| typedef MANAGED_OBJECT_GET_TYPE_SIG(Managed_Object_Get_Type_Function); | ||||
| typedef MANAGED_OBJECT_GET_CONTAINING_SCOPE_SIG(Managed_Object_Get_Containing_Scope_Function); | ||||
| typedef MANAGED_OBJECT_FREE_SIG(Managed_Object_Free_Function); | ||||
| typedef MANAGED_OBJECT_WRITE_SIG(Managed_Object_Write_Function); | ||||
| typedef MANAGED_OBJECT_READ_SIG(Managed_Object_Read_Function); | ||||
| typedef MANAGED_OBJECT_STORE_DATA_SIG(Managed_Object_Store_Data_Function); | ||||
| typedef MANAGED_OBJECT_LOAD_DATA_SIG(Managed_Object_Load_Data_Function); | ||||
| typedef GET_USER_INPUT_SIG(Get_User_Input_Function); | ||||
| typedef GET_COMMAND_INPUT_SIG(Get_Command_Input_Function); | ||||
| typedef GET_MOUSE_STATE_SIG(Get_Mouse_State_Function); | ||||
|  | @ -223,7 +231,7 @@ Buffer_Compute_Cursor_Function *buffer_compute_cursor; | |||
| Buffer_Batch_Edit_Function *buffer_batch_edit; | ||||
| Buffer_Get_Setting_Function *buffer_get_setting; | ||||
| Buffer_Set_Setting_Function *buffer_set_setting; | ||||
| Buffer_Get_Managed_Group_Function *buffer_get_managed_group; | ||||
| Buffer_Get_Managed_Scope_Function *buffer_get_managed_scope; | ||||
| Buffer_Token_Count_Function *buffer_token_count; | ||||
| Buffer_Read_Tokens_Function *buffer_read_tokens; | ||||
| Buffer_Get_Token_Index_Function *buffer_get_token_index; | ||||
|  | @ -240,7 +248,7 @@ Close_View_Function *close_view; | |||
| Set_Active_View_Function *set_active_view; | ||||
| View_Get_Setting_Function *view_get_setting; | ||||
| View_Set_Setting_Function *view_set_setting; | ||||
| View_Get_Managed_Group_Function *view_get_managed_group; | ||||
| View_Get_Managed_Scope_Function *view_get_managed_scope; | ||||
| View_Set_Split_Proportion_Function *view_set_split_proportion; | ||||
| View_Compute_Cursor_Function *view_compute_cursor; | ||||
| View_Set_Cursor_Function *view_set_cursor; | ||||
|  | @ -253,18 +261,22 @@ View_Start_UI_Mode_Function *view_start_ui_mode; | |||
| View_End_UI_Mode_Function *view_end_ui_mode; | ||||
| View_Set_UI_Function *view_set_ui; | ||||
| View_Get_UI_Copy_Function *view_get_ui_copy; | ||||
| Get_Global_Managed_Group_Function *get_global_managed_group; | ||||
| Get_Intersected_Managed_Group_Function *get_intersected_managed_group; | ||||
| Get_Global_Managed_Scope_Function *get_global_managed_scope; | ||||
| Get_Managed_Scope_With_Multiple_Dependencies_Function *get_managed_scope_with_multiple_dependencies; | ||||
| Managed_Variable_Create_Function *managed_variable_create; | ||||
| Managed_Variable_Get_ID_Function *managed_variable_get_id; | ||||
| Managed_Variable_Create_Or_Get_ID_Function *managed_variable_create_or_get_id; | ||||
| Managed_Variable_Set_Function *managed_variable_set; | ||||
| Managed_Variable_Get_Function *managed_variable_get; | ||||
| Managed_Memory_Alloc_Function *managed_memory_alloc; | ||||
| Buffer_Markers_Alloc_Function *buffer_markers_alloc; | ||||
| Alloc_Managed_Memory_In_Scope_Function *alloc_managed_memory_in_scope; | ||||
| Alloc_Buffer_Markers_On_Buffer_Function *alloc_buffer_markers_on_buffer; | ||||
| Managed_Object_Get_Item_Size_Function *managed_object_get_item_size; | ||||
| Managed_Object_Get_Item_Count_Function *managed_object_get_item_count; | ||||
| Managed_Object_Get_Type_Function *managed_object_get_type; | ||||
| Managed_Object_Get_Containing_Scope_Function *managed_object_get_containing_scope; | ||||
| Managed_Object_Free_Function *managed_object_free; | ||||
| Managed_Object_Write_Function *managed_object_write; | ||||
| Managed_Object_Read_Function *managed_object_read; | ||||
| Managed_Object_Store_Data_Function *managed_object_store_data; | ||||
| Managed_Object_Load_Data_Function *managed_object_load_data; | ||||
| Get_User_Input_Function *get_user_input; | ||||
| Get_Command_Input_Function *get_command_input; | ||||
| Get_Mouse_State_Function *get_mouse_state; | ||||
|  | @ -325,7 +337,7 @@ Buffer_Compute_Cursor_Function *buffer_compute_cursor_; | |||
| Buffer_Batch_Edit_Function *buffer_batch_edit_; | ||||
| Buffer_Get_Setting_Function *buffer_get_setting_; | ||||
| Buffer_Set_Setting_Function *buffer_set_setting_; | ||||
| Buffer_Get_Managed_Group_Function *buffer_get_managed_group_; | ||||
| Buffer_Get_Managed_Scope_Function *buffer_get_managed_scope_; | ||||
| Buffer_Token_Count_Function *buffer_token_count_; | ||||
| Buffer_Read_Tokens_Function *buffer_read_tokens_; | ||||
| Buffer_Get_Token_Index_Function *buffer_get_token_index_; | ||||
|  | @ -342,7 +354,7 @@ Close_View_Function *close_view_; | |||
| Set_Active_View_Function *set_active_view_; | ||||
| View_Get_Setting_Function *view_get_setting_; | ||||
| View_Set_Setting_Function *view_set_setting_; | ||||
| View_Get_Managed_Group_Function *view_get_managed_group_; | ||||
| View_Get_Managed_Scope_Function *view_get_managed_scope_; | ||||
| View_Set_Split_Proportion_Function *view_set_split_proportion_; | ||||
| View_Compute_Cursor_Function *view_compute_cursor_; | ||||
| View_Set_Cursor_Function *view_set_cursor_; | ||||
|  | @ -355,18 +367,22 @@ View_Start_UI_Mode_Function *view_start_ui_mode_; | |||
| View_End_UI_Mode_Function *view_end_ui_mode_; | ||||
| View_Set_UI_Function *view_set_ui_; | ||||
| View_Get_UI_Copy_Function *view_get_ui_copy_; | ||||
| Get_Global_Managed_Group_Function *get_global_managed_group_; | ||||
| Get_Intersected_Managed_Group_Function *get_intersected_managed_group_; | ||||
| Get_Global_Managed_Scope_Function *get_global_managed_scope_; | ||||
| Get_Managed_Scope_With_Multiple_Dependencies_Function *get_managed_scope_with_multiple_dependencies_; | ||||
| Managed_Variable_Create_Function *managed_variable_create_; | ||||
| Managed_Variable_Get_ID_Function *managed_variable_get_id_; | ||||
| Managed_Variable_Create_Or_Get_ID_Function *managed_variable_create_or_get_id_; | ||||
| Managed_Variable_Set_Function *managed_variable_set_; | ||||
| Managed_Variable_Get_Function *managed_variable_get_; | ||||
| Managed_Memory_Alloc_Function *managed_memory_alloc_; | ||||
| Buffer_Markers_Alloc_Function *buffer_markers_alloc_; | ||||
| Alloc_Managed_Memory_In_Scope_Function *alloc_managed_memory_in_scope_; | ||||
| Alloc_Buffer_Markers_On_Buffer_Function *alloc_buffer_markers_on_buffer_; | ||||
| Managed_Object_Get_Item_Size_Function *managed_object_get_item_size_; | ||||
| Managed_Object_Get_Item_Count_Function *managed_object_get_item_count_; | ||||
| Managed_Object_Get_Type_Function *managed_object_get_type_; | ||||
| Managed_Object_Get_Containing_Scope_Function *managed_object_get_containing_scope_; | ||||
| Managed_Object_Free_Function *managed_object_free_; | ||||
| Managed_Object_Write_Function *managed_object_write_; | ||||
| Managed_Object_Read_Function *managed_object_read_; | ||||
| Managed_Object_Store_Data_Function *managed_object_store_data_; | ||||
| Managed_Object_Load_Data_Function *managed_object_load_data_; | ||||
| Get_User_Input_Function *get_user_input_; | ||||
| Get_Command_Input_Function *get_command_input_; | ||||
| Get_Mouse_State_Function *get_mouse_state_; | ||||
|  | @ -435,7 +451,7 @@ app_links->buffer_compute_cursor_ = Buffer_Compute_Cursor;\ | |||
| app_links->buffer_batch_edit_ = Buffer_Batch_Edit;\ | ||||
| app_links->buffer_get_setting_ = Buffer_Get_Setting;\ | ||||
| app_links->buffer_set_setting_ = Buffer_Set_Setting;\ | ||||
| app_links->buffer_get_managed_group_ = Buffer_Get_Managed_Group;\ | ||||
| app_links->buffer_get_managed_scope_ = Buffer_Get_Managed_Scope;\ | ||||
| app_links->buffer_token_count_ = Buffer_Token_Count;\ | ||||
| app_links->buffer_read_tokens_ = Buffer_Read_Tokens;\ | ||||
| app_links->buffer_get_token_index_ = Buffer_Get_Token_Index;\ | ||||
|  | @ -452,7 +468,7 @@ app_links->close_view_ = Close_View;\ | |||
| app_links->set_active_view_ = Set_Active_View;\ | ||||
| app_links->view_get_setting_ = View_Get_Setting;\ | ||||
| app_links->view_set_setting_ = View_Set_Setting;\ | ||||
| app_links->view_get_managed_group_ = View_Get_Managed_Group;\ | ||||
| app_links->view_get_managed_scope_ = View_Get_Managed_Scope;\ | ||||
| app_links->view_set_split_proportion_ = View_Set_Split_Proportion;\ | ||||
| app_links->view_compute_cursor_ = View_Compute_Cursor;\ | ||||
| app_links->view_set_cursor_ = View_Set_Cursor;\ | ||||
|  | @ -465,18 +481,22 @@ app_links->view_start_ui_mode_ = View_Start_UI_Mode;\ | |||
| app_links->view_end_ui_mode_ = View_End_UI_Mode;\ | ||||
| app_links->view_set_ui_ = View_Set_UI;\ | ||||
| app_links->view_get_ui_copy_ = View_Get_UI_Copy;\ | ||||
| app_links->get_global_managed_group_ = Get_Global_Managed_Group;\ | ||||
| app_links->get_intersected_managed_group_ = Get_Intersected_Managed_Group;\ | ||||
| app_links->get_global_managed_scope_ = Get_Global_Managed_Scope;\ | ||||
| app_links->get_managed_scope_with_multiple_dependencies_ = Get_Managed_Scope_With_Multiple_Dependencies;\ | ||||
| app_links->managed_variable_create_ = Managed_Variable_Create;\ | ||||
| app_links->managed_variable_get_id_ = Managed_Variable_Get_ID;\ | ||||
| app_links->managed_variable_create_or_get_id_ = Managed_Variable_Create_Or_Get_ID;\ | ||||
| app_links->managed_variable_set_ = Managed_Variable_Set;\ | ||||
| app_links->managed_variable_get_ = Managed_Variable_Get;\ | ||||
| app_links->managed_memory_alloc_ = Managed_Memory_Alloc;\ | ||||
| app_links->buffer_markers_alloc_ = Buffer_Markers_Alloc;\ | ||||
| app_links->alloc_managed_memory_in_scope_ = Alloc_Managed_Memory_In_Scope;\ | ||||
| app_links->alloc_buffer_markers_on_buffer_ = Alloc_Buffer_Markers_On_Buffer;\ | ||||
| app_links->managed_object_get_item_size_ = Managed_Object_Get_Item_Size;\ | ||||
| app_links->managed_object_get_item_count_ = Managed_Object_Get_Item_Count;\ | ||||
| app_links->managed_object_get_type_ = Managed_Object_Get_Type;\ | ||||
| app_links->managed_object_get_containing_scope_ = Managed_Object_Get_Containing_Scope;\ | ||||
| app_links->managed_object_free_ = Managed_Object_Free;\ | ||||
| app_links->managed_object_write_ = Managed_Object_Write;\ | ||||
| app_links->managed_object_read_ = Managed_Object_Read;\ | ||||
| app_links->managed_object_store_data_ = Managed_Object_Store_Data;\ | ||||
| app_links->managed_object_load_data_ = Managed_Object_Load_Data;\ | ||||
| app_links->get_user_input_ = Get_User_Input;\ | ||||
| app_links->get_command_input_ = Get_Command_Input;\ | ||||
| app_links->get_mouse_state_ = Get_Mouse_State;\ | ||||
|  | @ -537,7 +557,7 @@ static inline bool32 buffer_compute_cursor(Application_Links *app, Buffer_Summar | |||
| static inline bool32 buffer_batch_edit(Application_Links *app, Buffer_Summary *buffer, char *str, int32_t str_len, Buffer_Edit *edits, int32_t edit_count, Buffer_Batch_Edit_Type type){return(app->buffer_batch_edit(app, buffer, str, str_len, edits, edit_count, type));} | ||||
| static inline bool32 buffer_get_setting(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t *value_out){return(app->buffer_get_setting(app, buffer, setting, value_out));} | ||||
| static inline bool32 buffer_set_setting(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t value){return(app->buffer_set_setting(app, buffer, setting, value));} | ||||
| static inline Managed_Group buffer_get_managed_group(Application_Links *app, Buffer_ID buffer_id){return(app->buffer_get_managed_group(app, buffer_id));} | ||||
| static inline Managed_Scope buffer_get_managed_scope(Application_Links *app, Buffer_ID buffer_id){return(app->buffer_get_managed_scope(app, buffer_id));} | ||||
| static inline int32_t buffer_token_count(Application_Links *app, Buffer_Summary *buffer){return(app->buffer_token_count(app, buffer));} | ||||
| static inline bool32 buffer_read_tokens(Application_Links *app, Buffer_Summary *buffer, int32_t start_token, int32_t end_token, Cpp_Token *tokens_out){return(app->buffer_read_tokens(app, buffer, start_token, end_token, tokens_out));} | ||||
| static inline bool32 buffer_get_token_index(Application_Links *app, Buffer_Summary *buffer, int32_t pos, Cpp_Get_Token_Result *get_result){return(app->buffer_get_token_index(app, buffer, pos, get_result));} | ||||
|  | @ -554,7 +574,7 @@ static inline bool32 close_view(Application_Links *app, View_Summary *view){retu | |||
| static inline bool32 set_active_view(Application_Links *app, View_Summary *view){return(app->set_active_view(app, view));} | ||||
| static inline bool32 view_get_setting(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t *value_out){return(app->view_get_setting(app, view, setting, value_out));} | ||||
| static inline bool32 view_set_setting(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t value){return(app->view_set_setting(app, view, setting, value));} | ||||
| static inline Managed_Group view_get_managed_group(Application_Links *app, View_ID view_id){return(app->view_get_managed_group(app, view_id));} | ||||
| static inline Managed_Scope view_get_managed_scope(Application_Links *app, View_ID view_id){return(app->view_get_managed_scope(app, view_id));} | ||||
| static inline bool32 view_set_split_proportion(Application_Links *app, View_Summary *view, float t){return(app->view_set_split_proportion(app, view, t));} | ||||
| static inline bool32 view_compute_cursor(Application_Links *app, View_Summary *view, Buffer_Seek seek, Full_Cursor *cursor_out){return(app->view_compute_cursor(app, view, seek, cursor_out));} | ||||
| static inline bool32 view_set_cursor(Application_Links *app, View_Summary *view, Buffer_Seek seek, bool32 set_preferred_x){return(app->view_set_cursor(app, view, seek, set_preferred_x));} | ||||
|  | @ -567,18 +587,22 @@ static inline int32_t view_start_ui_mode(Application_Links *app, View_Summary *v | |||
| static inline int32_t view_end_ui_mode(Application_Links *app, View_Summary *view){return(app->view_end_ui_mode(app, view));} | ||||
| static inline bool32 view_set_ui(Application_Links *app, View_Summary *view, UI_Control *control){return(app->view_set_ui(app, view, control));} | ||||
| static inline UI_Control view_get_ui_copy(Application_Links *app, View_Summary *view, struct Partition *part){return(app->view_get_ui_copy(app, view, part));} | ||||
| static inline Managed_Group get_global_managed_group(Application_Links *app){return(app->get_global_managed_group(app));} | ||||
| static inline Managed_Group get_intersected_managed_group(Application_Links *app, Managed_Group *intersected_groups, int32_t count){return(app->get_intersected_managed_group(app, intersected_groups, count));} | ||||
| static inline Managed_Scope get_global_managed_scope(Application_Links *app){return(app->get_global_managed_scope(app));} | ||||
| static inline Managed_Scope get_managed_scope_with_multiple_dependencies(Application_Links *app, Managed_Scope *intersected_scopes, int32_t count){return(app->get_managed_scope_with_multiple_dependencies(app, intersected_scopes, count));} | ||||
| static inline Managed_Variable_ID managed_variable_create(Application_Links *app, char *null_terminated_name, uint64_t default_value){return(app->managed_variable_create(app, null_terminated_name, default_value));} | ||||
| static inline Managed_Variable_ID managed_variable_get_id(Application_Links *app, char *null_terminated_name){return(app->managed_variable_get_id(app, null_terminated_name));} | ||||
| static inline Managed_Variable_ID managed_variable_create_or_get_id(Application_Links *app, char *null_terminated_name, uint64_t default_value){return(app->managed_variable_create_or_get_id(app, null_terminated_name, default_value));} | ||||
| static inline bool32 managed_variable_set(Application_Links *app, Managed_Group group, Managed_Variable_ID location, uint64_t value){return(app->managed_variable_set(app, group, location, value));} | ||||
| static inline bool32 managed_variable_get(Application_Links *app, Managed_Group group, Managed_Variable_ID location, uint64_t *value_out){return(app->managed_variable_get(app, group, location, value_out));} | ||||
| static inline Managed_Object managed_memory_alloc(Application_Links *app, Managed_Group group, int32_t size){return(app->managed_memory_alloc(app, group, size));} | ||||
| static inline Managed_Object buffer_markers_alloc(Application_Links *app, Buffer_ID buffer_id, int32_t count, Managed_Group *group){return(app->buffer_markers_alloc(app, buffer_id, count, group));} | ||||
| static inline bool32 managed_variable_set(Application_Links *app, Managed_Scope scope, Managed_Variable_ID location, uint64_t value){return(app->managed_variable_set(app, scope, location, value));} | ||||
| static inline bool32 managed_variable_get(Application_Links *app, Managed_Scope scope, Managed_Variable_ID location, uint64_t *value_out){return(app->managed_variable_get(app, scope, location, value_out));} | ||||
| static inline Managed_Object alloc_managed_memory_in_scope(Application_Links *app, Managed_Scope scope, int32_t item_size, int32_t count){return(app->alloc_managed_memory_in_scope(app, scope, item_size, count));} | ||||
| static inline Managed_Object alloc_buffer_markers_on_buffer(Application_Links *app, Buffer_ID buffer_id, int32_t count, Managed_Scope *optional_extra_scope){return(app->alloc_buffer_markers_on_buffer(app, buffer_id, count, optional_extra_scope));} | ||||
| static inline uint32_t managed_object_get_item_size(Application_Links *app, Managed_Object object){return(app->managed_object_get_item_size(app, object));} | ||||
| static inline uint32_t managed_object_get_item_count(Application_Links *app, Managed_Object object){return(app->managed_object_get_item_count(app, object));} | ||||
| static inline Managed_Object_Type managed_object_get_type(Application_Links *app, Managed_Object object){return(app->managed_object_get_type(app, object));} | ||||
| static inline Managed_Scope managed_object_get_containing_scope(Application_Links *app, Managed_Object object){return(app->managed_object_get_containing_scope(app, object));} | ||||
| static inline bool32 managed_object_free(Application_Links *app, Managed_Object object){return(app->managed_object_free(app, object));} | ||||
| static inline bool32 managed_object_write(Application_Links *app, Managed_Object object, uint32_t start, uint32_t size, void *mem){return(app->managed_object_write(app, object, start, size, mem));} | ||||
| static inline bool32 managed_object_read(Application_Links *app, Managed_Object object, uint32_t start, uint32_t size, void *mem_out){return(app->managed_object_read(app, object, start, size, mem_out));} | ||||
| static inline bool32 managed_object_store_data(Application_Links *app, Managed_Object object, uint32_t first_index, uint32_t count, void *mem){return(app->managed_object_store_data(app, object, first_index, count, mem));} | ||||
| static inline bool32 managed_object_load_data(Application_Links *app, Managed_Object object, uint32_t first_index, uint32_t count, void *mem_out){return(app->managed_object_load_data(app, object, first_index, count, mem_out));} | ||||
| static inline User_Input get_user_input(Application_Links *app, Input_Type_Flag get_type, Input_Type_Flag abort_type){return(app->get_user_input(app, get_type, abort_type));} | ||||
| static inline User_Input get_command_input(Application_Links *app){return(app->get_command_input(app));} | ||||
| static inline Mouse_State get_mouse_state(Application_Links *app){return(app->get_mouse_state(app));} | ||||
|  | @ -639,7 +663,7 @@ static inline bool32 buffer_compute_cursor(Application_Links *app, Buffer_Summar | |||
| static inline bool32 buffer_batch_edit(Application_Links *app, Buffer_Summary *buffer, char *str, int32_t str_len, Buffer_Edit *edits, int32_t edit_count, Buffer_Batch_Edit_Type type){return(app->buffer_batch_edit_(app, buffer, str, str_len, edits, edit_count, type));} | ||||
| static inline bool32 buffer_get_setting(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t *value_out){return(app->buffer_get_setting_(app, buffer, setting, value_out));} | ||||
| static inline bool32 buffer_set_setting(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t value){return(app->buffer_set_setting_(app, buffer, setting, value));} | ||||
| static inline Managed_Group buffer_get_managed_group(Application_Links *app, Buffer_ID buffer_id){return(app->buffer_get_managed_group_(app, buffer_id));} | ||||
| static inline Managed_Scope buffer_get_managed_scope(Application_Links *app, Buffer_ID buffer_id){return(app->buffer_get_managed_scope_(app, buffer_id));} | ||||
| static inline int32_t buffer_token_count(Application_Links *app, Buffer_Summary *buffer){return(app->buffer_token_count_(app, buffer));} | ||||
| static inline bool32 buffer_read_tokens(Application_Links *app, Buffer_Summary *buffer, int32_t start_token, int32_t end_token, Cpp_Token *tokens_out){return(app->buffer_read_tokens_(app, buffer, start_token, end_token, tokens_out));} | ||||
| static inline bool32 buffer_get_token_index(Application_Links *app, Buffer_Summary *buffer, int32_t pos, Cpp_Get_Token_Result *get_result){return(app->buffer_get_token_index_(app, buffer, pos, get_result));} | ||||
|  | @ -656,7 +680,7 @@ static inline bool32 close_view(Application_Links *app, View_Summary *view){retu | |||
| static inline bool32 set_active_view(Application_Links *app, View_Summary *view){return(app->set_active_view_(app, view));} | ||||
| static inline bool32 view_get_setting(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t *value_out){return(app->view_get_setting_(app, view, setting, value_out));} | ||||
| static inline bool32 view_set_setting(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t value){return(app->view_set_setting_(app, view, setting, value));} | ||||
| static inline Managed_Group view_get_managed_group(Application_Links *app, View_ID view_id){return(app->view_get_managed_group_(app, view_id));} | ||||
| static inline Managed_Scope view_get_managed_scope(Application_Links *app, View_ID view_id){return(app->view_get_managed_scope_(app, view_id));} | ||||
| static inline bool32 view_set_split_proportion(Application_Links *app, View_Summary *view, float t){return(app->view_set_split_proportion_(app, view, t));} | ||||
| static inline bool32 view_compute_cursor(Application_Links *app, View_Summary *view, Buffer_Seek seek, Full_Cursor *cursor_out){return(app->view_compute_cursor_(app, view, seek, cursor_out));} | ||||
| static inline bool32 view_set_cursor(Application_Links *app, View_Summary *view, Buffer_Seek seek, bool32 set_preferred_x){return(app->view_set_cursor_(app, view, seek, set_preferred_x));} | ||||
|  | @ -669,18 +693,22 @@ static inline int32_t view_start_ui_mode(Application_Links *app, View_Summary *v | |||
| static inline int32_t view_end_ui_mode(Application_Links *app, View_Summary *view){return(app->view_end_ui_mode_(app, view));} | ||||
| static inline bool32 view_set_ui(Application_Links *app, View_Summary *view, UI_Control *control){return(app->view_set_ui_(app, view, control));} | ||||
| static inline UI_Control view_get_ui_copy(Application_Links *app, View_Summary *view, struct Partition *part){return(app->view_get_ui_copy_(app, view, part));} | ||||
| static inline Managed_Group get_global_managed_group(Application_Links *app){return(app->get_global_managed_group_(app));} | ||||
| static inline Managed_Group get_intersected_managed_group(Application_Links *app, Managed_Group *intersected_groups, int32_t count){return(app->get_intersected_managed_group_(app, intersected_groups, count));} | ||||
| static inline Managed_Scope get_global_managed_scope(Application_Links *app){return(app->get_global_managed_scope_(app));} | ||||
| static inline Managed_Scope get_managed_scope_with_multiple_dependencies(Application_Links *app, Managed_Scope *intersected_scopes, int32_t count){return(app->get_managed_scope_with_multiple_dependencies_(app, intersected_scopes, count));} | ||||
| static inline Managed_Variable_ID managed_variable_create(Application_Links *app, char *null_terminated_name, uint64_t default_value){return(app->managed_variable_create_(app, null_terminated_name, default_value));} | ||||
| static inline Managed_Variable_ID managed_variable_get_id(Application_Links *app, char *null_terminated_name){return(app->managed_variable_get_id_(app, null_terminated_name));} | ||||
| static inline Managed_Variable_ID managed_variable_create_or_get_id(Application_Links *app, char *null_terminated_name, uint64_t default_value){return(app->managed_variable_create_or_get_id_(app, null_terminated_name, default_value));} | ||||
| static inline bool32 managed_variable_set(Application_Links *app, Managed_Group group, Managed_Variable_ID location, uint64_t value){return(app->managed_variable_set_(app, group, location, value));} | ||||
| static inline bool32 managed_variable_get(Application_Links *app, Managed_Group group, Managed_Variable_ID location, uint64_t *value_out){return(app->managed_variable_get_(app, group, location, value_out));} | ||||
| static inline Managed_Object managed_memory_alloc(Application_Links *app, Managed_Group group, int32_t size){return(app->managed_memory_alloc_(app, group, size));} | ||||
| static inline Managed_Object buffer_markers_alloc(Application_Links *app, Buffer_ID buffer_id, int32_t count, Managed_Group *group){return(app->buffer_markers_alloc_(app, buffer_id, count, group));} | ||||
| static inline bool32 managed_variable_set(Application_Links *app, Managed_Scope scope, Managed_Variable_ID location, uint64_t value){return(app->managed_variable_set_(app, scope, location, value));} | ||||
| static inline bool32 managed_variable_get(Application_Links *app, Managed_Scope scope, Managed_Variable_ID location, uint64_t *value_out){return(app->managed_variable_get_(app, scope, location, value_out));} | ||||
| static inline Managed_Object alloc_managed_memory_in_scope(Application_Links *app, Managed_Scope scope, int32_t item_size, int32_t count){return(app->alloc_managed_memory_in_scope_(app, scope, item_size, count));} | ||||
| static inline Managed_Object alloc_buffer_markers_on_buffer(Application_Links *app, Buffer_ID buffer_id, int32_t count, Managed_Scope *optional_extra_scope){return(app->alloc_buffer_markers_on_buffer_(app, buffer_id, count, optional_extra_scope));} | ||||
| static inline uint32_t managed_object_get_item_size(Application_Links *app, Managed_Object object){return(app->managed_object_get_item_size_(app, object));} | ||||
| static inline uint32_t managed_object_get_item_count(Application_Links *app, Managed_Object object){return(app->managed_object_get_item_count_(app, object));} | ||||
| static inline Managed_Object_Type managed_object_get_type(Application_Links *app, Managed_Object object){return(app->managed_object_get_type_(app, object));} | ||||
| static inline Managed_Scope managed_object_get_containing_scope(Application_Links *app, Managed_Object object){return(app->managed_object_get_containing_scope_(app, object));} | ||||
| static inline bool32 managed_object_free(Application_Links *app, Managed_Object object){return(app->managed_object_free_(app, object));} | ||||
| static inline bool32 managed_object_write(Application_Links *app, Managed_Object object, uint32_t start, uint32_t size, void *mem){return(app->managed_object_write_(app, object, start, size, mem));} | ||||
| static inline bool32 managed_object_read(Application_Links *app, Managed_Object object, uint32_t start, uint32_t size, void *mem_out){return(app->managed_object_read_(app, object, start, size, mem_out));} | ||||
| static inline bool32 managed_object_store_data(Application_Links *app, Managed_Object object, uint32_t first_index, uint32_t count, void *mem){return(app->managed_object_store_data_(app, object, first_index, count, mem));} | ||||
| static inline bool32 managed_object_load_data(Application_Links *app, Managed_Object object, uint32_t first_index, uint32_t count, void *mem_out){return(app->managed_object_load_data_(app, object, first_index, count, mem_out));} | ||||
| static inline User_Input get_user_input(Application_Links *app, Input_Type_Flag get_type, Input_Type_Flag abort_type){return(app->get_user_input_(app, get_type, abort_type));} | ||||
| static inline User_Input get_command_input(Application_Links *app){return(app->get_command_input_(app));} | ||||
| static inline Mouse_State get_mouse_state(Application_Links *app){return(app->get_mouse_state_(app));} | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ | |||
| #define command_id(c) (fcoder_metacmd_ID_##c) | ||||
| #define command_metadata(c) (&fcoder_metacmd_table[command_id(c)]) | ||||
| #define command_metadata_by_id(id) (&fcoder_metacmd_table[id]) | ||||
| #define command_one_past_last_id 214 | ||||
| #define command_one_past_last_id 202 | ||||
| #if defined(CUSTOM_COMMAND_SIG) | ||||
| #define PROC_LINKS(x,y) x | ||||
| #else | ||||
|  | @ -78,7 +78,6 @@ CUSTOM_COMMAND_SIG(interactive_open); | |||
| CUSTOM_COMMAND_SIG(interactive_open_or_new); | ||||
| CUSTOM_COMMAND_SIG(interactive_switch_buffer); | ||||
| CUSTOM_COMMAND_SIG(kill_buffer); | ||||
| CUSTOM_COMMAND_SIG(kill_rect); | ||||
| CUSTOM_COMMAND_SIG(left_adjust_view); | ||||
| CUSTOM_COMMAND_SIG(list_all_functions_current_buffer); | ||||
| CUSTOM_COMMAND_SIG(list_all_locations); | ||||
|  | @ -110,12 +109,6 @@ CUSTOM_COMMAND_SIG(lister__write_character__file_path); | |||
| CUSTOM_COMMAND_SIG(lister__write_character__fixed_list); | ||||
| CUSTOM_COMMAND_SIG(load_project); | ||||
| CUSTOM_COMMAND_SIG(make_directory_query); | ||||
| CUSTOM_COMMAND_SIG(miblo_decrement_basic); | ||||
| CUSTOM_COMMAND_SIG(miblo_decrement_time_stamp); | ||||
| CUSTOM_COMMAND_SIG(miblo_decrement_time_stamp_minute); | ||||
| CUSTOM_COMMAND_SIG(miblo_increment_basic); | ||||
| CUSTOM_COMMAND_SIG(miblo_increment_time_stamp); | ||||
| CUSTOM_COMMAND_SIG(miblo_increment_time_stamp_minute); | ||||
| CUSTOM_COMMAND_SIG(move_down); | ||||
| CUSTOM_COMMAND_SIG(move_down_10); | ||||
| CUSTOM_COMMAND_SIG(move_down_textual); | ||||
|  | @ -125,7 +118,6 @@ CUSTOM_COMMAND_SIG(move_line_up); | |||
| CUSTOM_COMMAND_SIG(move_right); | ||||
| CUSTOM_COMMAND_SIG(move_up); | ||||
| CUSTOM_COMMAND_SIG(move_up_10); | ||||
| CUSTOM_COMMAND_SIG(multi_line_edit); | ||||
| CUSTOM_COMMAND_SIG(newline_or_goto_position_direct); | ||||
| CUSTOM_COMMAND_SIG(newline_or_goto_position_same_panel_direct); | ||||
| CUSTOM_COMMAND_SIG(newline_or_goto_position_same_panel_sticky); | ||||
|  | @ -157,9 +149,7 @@ CUSTOM_COMMAND_SIG(redo); | |||
| CUSTOM_COMMAND_SIG(reload_themes); | ||||
| CUSTOM_COMMAND_SIG(remap_interactive); | ||||
| CUSTOM_COMMAND_SIG(rename_file_query); | ||||
| CUSTOM_COMMAND_SIG(rename_parameter); | ||||
| CUSTOM_COMMAND_SIG(reopen); | ||||
| CUSTOM_COMMAND_SIG(replace_all_occurrences); | ||||
| CUSTOM_COMMAND_SIG(replace_in_range); | ||||
| CUSTOM_COMMAND_SIG(reverse_search); | ||||
| CUSTOM_COMMAND_SIG(reverse_search_identifier); | ||||
|  | @ -216,8 +206,6 @@ CUSTOM_COMMAND_SIG(word_complete); | |||
| CUSTOM_COMMAND_SIG(write_and_auto_tab); | ||||
| CUSTOM_COMMAND_SIG(write_block); | ||||
| CUSTOM_COMMAND_SIG(write_character); | ||||
| CUSTOM_COMMAND_SIG(write_explicit_enum_flags); | ||||
| CUSTOM_COMMAND_SIG(write_explicit_enum_values); | ||||
| CUSTOM_COMMAND_SIG(write_hack); | ||||
| CUSTOM_COMMAND_SIG(write_note); | ||||
| CUSTOM_COMMAND_SIG(write_todo); | ||||
|  | @ -234,221 +222,209 @@ char *source_name; | |||
| int32_t source_name_len; | ||||
| int32_t line_number; | ||||
| }; | ||||
| static Command_Metadata fcoder_metacmd_table[214] = { | ||||
| { PROC_LINKS(allow_mouse, 0), "allow_mouse", 11,  "Shows the mouse and causes all mouse input to be processed normally.", 68, "c:\\4ed\\code\\4coder_default_framework.cpp", 43, 193 }, | ||||
| { PROC_LINKS(auto_tab_line_at_cursor, 0), "auto_tab_line_at_cursor", 23,  "Auto-indents the line on which the cursor sits.", 47, "c:\\4ed\\code\\4coder_auto_indent.cpp", 37, 722 }, | ||||
| { PROC_LINKS(auto_tab_range, 0), "auto_tab_range", 14,  "Auto-indents the range between the cursor and the mark.", 55, "c:\\4ed\\code\\4coder_auto_indent.cpp", 37, 733 }, | ||||
| { PROC_LINKS(auto_tab_whole_file, 0), "auto_tab_whole_file", 19,  "Audo-indents the entire current buffer.", 39, "c:\\4ed\\code\\4coder_auto_indent.cpp", 37, 712 }, | ||||
| { PROC_LINKS(backspace_char, 0), "backspace_char", 14,  "Deletes the character to the left of the cursor.", 48, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 73 }, | ||||
| { PROC_LINKS(backspace_word, 0), "backspace_word", 14,  "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1247 }, | ||||
| { PROC_LINKS(basic_change_active_panel, 0), "basic_change_active_panel", 25,  "Change the currently active panel, moving to the panel with the next highest view_id.  Will not skipe the build panel if it is open.", 132, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 439 }, | ||||
| { PROC_LINKS(build_in_build_panel, 0), "build_in_build_panel", 20,  "Looks for a build.bat, build.sh, or makefile in the current and parent directories.  Runs the first that it finds and prints the output to *compilation*.  Puts the *compilation* buffer in a panel at the footer of the current view.", 230, "c:\\4ed\\code\\4coder_build_commands.cpp", 40, 187 }, | ||||
| { PROC_LINKS(build_search, 0), "build_search", 12,  "Looks for a build.bat, build.sh, or makefile in the current and parent directories.  Runs the first that it finds and prints the output to *compilation*.", 153, "c:\\4ed\\code\\4coder_build_commands.cpp", 40, 155 }, | ||||
| { PROC_LINKS(center_view, 0), "center_view", 11,  "Centers the view vertically on the line on which the cursor sits.", 65, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 126 }, | ||||
| { PROC_LINKS(change_active_panel, 0), "change_active_panel", 19,  "Change the currently active panel, moving to the panel with the next highest view_id.", 85, "c:\\4ed\\code\\4coder_default_framework.cpp", 43, 135 }, | ||||
| { PROC_LINKS(change_active_panel_backwards, 0), "change_active_panel_backwards", 29,  "Change the currently active panel, moving to the panel with the next lowest view_id.", 84, "c:\\4ed\\code\\4coder_default_framework.cpp", 43, 145 }, | ||||
| { PROC_LINKS(change_to_build_panel, 0), "change_to_build_panel", 21,  "If the special build panel is open, makes the build panel the active panel.", 75, "c:\\4ed\\code\\4coder_build_commands.cpp", 40, 209 }, | ||||
| { PROC_LINKS(clean_all_lines, 0), "clean_all_lines", 15,  "Removes trailing whitespace from all lines in the current buffer.", 65, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 374 }, | ||||
| { PROC_LINKS(click_set_cursor, 0), "click_set_cursor", 16,  "Sets the cursor position to the mouse position.", 47, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 180 }, | ||||
| { PROC_LINKS(click_set_mark, 0), "click_set_mark", 14,  "Sets the mark position to the mouse position.", 45, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 193 }, | ||||
| { PROC_LINKS(close_all_code, 0), "close_all_code", 14,  "Closes any buffer with a filename ending with an extension configured to be recognized as a code file type.", 107, "c:\\4ed\\code\\4coder_project_commands.cpp", 42, 1048 }, | ||||
| { PROC_LINKS(close_build_panel, 0), "close_build_panel", 17,  "If the special build panel is open, closes it.", 46, "c:\\4ed\\code\\4coder_build_commands.cpp", 40, 203 }, | ||||
| { PROC_LINKS(close_panel, 0), "close_panel", 11,  "Closes the currently active panel if it is not the only panel open.", 67, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 447 }, | ||||
| { PROC_LINKS(copy, 0), "copy", 4,  "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "c:\\4ed\\code\\4coder_clipboard.cpp", 35, 26 }, | ||||
| { PROC_LINKS(cursor_mark_swap, 0), "cursor_mark_swap", 16,  "Swaps the position of the cursor and the mark.", 46, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 101 }, | ||||
| { PROC_LINKS(cut, 0), "cut", 3,  "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "c:\\4ed\\code\\4coder_clipboard.cpp", 35, 35 }, | ||||
| { PROC_LINKS(decrease_face_size, 0), "decrease_face_size", 18,  "Decrease the size of the face used by the current buffer.", 57, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 537 }, | ||||
| { PROC_LINKS(decrease_line_wrap, 0), "decrease_line_wrap", 18,  "Decrases the current buffer's width for line wrapping.", 54, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 514 }, | ||||
| { PROC_LINKS(delete_char, 0), "delete_char", 11,  "Deletes the character to the right of the cursor.", 49, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 55 }, | ||||
| { PROC_LINKS(delete_current_scope, 0), "delete_current_scope", 20,  "Deletes the braces surrounding the currently selected scope.  Leaves the contents within the scope.", 99, "c:\\4ed\\code\\4coder_scope_commands.cpp", 40, 487 }, | ||||
| { PROC_LINKS(delete_file_query, 0), "delete_file_query", 17,  "Deletes the file of the current buffer if 4coder has the appropriate access rights. Will ask the user for confirmation first.", 125, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1030 }, | ||||
| { PROC_LINKS(delete_line, 0), "delete_line", 11,  "Delete the line the on which the cursor sits.", 45, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1280 }, | ||||
| { PROC_LINKS(delete_range, 0), "delete_range", 12,  "Deletes the text in the range between the cursor and the mark.", 62, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 113 }, | ||||
| { PROC_LINKS(delete_word, 0), "delete_word", 11,  "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1253 }, | ||||
| { PROC_LINKS(duplicate_line, 0), "duplicate_line", 14,  "Create a copy of the line on which the cursor sits.", 51, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1258 }, | ||||
| { PROC_LINKS(eol_dosify, 0), "eol_dosify", 10,  "Puts the buffer in DOS line ending mode.", 40, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 567 }, | ||||
| { PROC_LINKS(eol_nixify, 0), "eol_nixify", 10,  "Puts the buffer in NIX line ending mode.", 40, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 575 }, | ||||
| { PROC_LINKS(execute_any_cli, 0), "execute_any_cli", 15,  "Queries for an output buffer name and system command, runs the system command as a CLI and prints the output to the specified buffer.", 133, "c:\\4ed\\code\\4coder_system_command.cpp", 40, 23 }, | ||||
| { PROC_LINKS(execute_arbitrary_command, 0), "execute_arbitrary_command", 25,  "Execute a 'long form' command.", 30, "c:\\4ed\\code\\4coder_long_command_switch.cpp", 45, 8 }, | ||||
| { PROC_LINKS(execute_previous_cli, 0), "execute_previous_cli", 20,  "If the command execute_any_cli has already been used, this will execute a CLI reusing the most recent buffer name and command.", 126, "c:\\4ed\\code\\4coder_system_command.cpp", 40, 7 }, | ||||
| { PROC_LINKS(exit_4coder, 0), "exit_4coder", 11,  "Attempts to close 4coder.", 25, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 583 }, | ||||
| { PROC_LINKS(goto_beginning_of_file, 0), "goto_beginning_of_file", 22,  "Sets the cursor to the beginning of the file.", 45, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1168 }, | ||||
| { PROC_LINKS(goto_end_of_file, 0), "goto_end_of_file", 16,  "Sets the cursor to the end of the file.", 39, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1175 }, | ||||
| { PROC_LINKS(goto_first_jump_direct, 0), "goto_first_jump_direct", 22,  "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "c:\\4ed\\code\\4coder_jump_direct.cpp", 37, 84 }, | ||||
| { PROC_LINKS(goto_first_jump_same_panel_sticky, 0), "goto_first_jump_same_panel_sticky", 33,  "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer and views the buffer in the panel where the jump list was.", 153, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 37, 516 }, | ||||
| { PROC_LINKS(goto_first_jump_sticky, 0), "goto_first_jump_sticky", 22,  "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 37, 498 }, | ||||
| { PROC_LINKS(goto_jump_at_cursor_direct, 0), "goto_jump_at_cursor_direct", 26,  "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "c:\\4ed\\code\\4coder_jump_direct.cpp", 37, 8 }, | ||||
| { PROC_LINKS(goto_jump_at_cursor_same_panel_direct, 0), "goto_jump_at_cursor_same_panel_direct", 37,  "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list..", 168, "c:\\4ed\\code\\4coder_jump_direct.cpp", 37, 29 }, | ||||
| { PROC_LINKS(goto_jump_at_cursor_same_panel_sticky, 0), "goto_jump_at_cursor_same_panel_sticky", 37,  "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list.", 167, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 37, 344 }, | ||||
| { PROC_LINKS(goto_jump_at_cursor_sticky, 0), "goto_jump_at_cursor_sticky", 26,  "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 37, 316 }, | ||||
| { PROC_LINKS(goto_line, 0), "goto_line", 9,  "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 591 }, | ||||
| { PROC_LINKS(goto_next_jump_direct, 0), "goto_next_jump_direct", 21,  "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "c:\\4ed\\code\\4coder_jump_direct.cpp", 37, 48 }, | ||||
| { PROC_LINKS(goto_next_jump_no_skips_direct, 0), "goto_next_jump_no_skips_direct", 30,  "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "c:\\4ed\\code\\4coder_jump_direct.cpp", 37, 66 }, | ||||
| { PROC_LINKS(goto_next_jump_no_skips_sticky, 0), "goto_next_jump_no_skips_sticky", 30,  "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 37, 467 }, | ||||
| { PROC_LINKS(goto_next_jump_sticky, 0), "goto_next_jump_sticky", 21,  "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 37, 437 }, | ||||
| { PROC_LINKS(goto_prev_jump_direct, 0), "goto_prev_jump_direct", 21,  "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "c:\\4ed\\code\\4coder_jump_direct.cpp", 37, 57 }, | ||||
| { PROC_LINKS(goto_prev_jump_no_skips_direct, 0), "goto_prev_jump_no_skips_direct", 30,  "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "c:\\4ed\\code\\4coder_jump_direct.cpp", 37, 75 }, | ||||
| { PROC_LINKS(goto_prev_jump_no_skips_sticky, 0), "goto_prev_jump_no_skips_sticky", 30,  "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 37, 483 }, | ||||
| { PROC_LINKS(goto_prev_jump_sticky, 0), "goto_prev_jump_sticky", 21,  "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 37, 453 }, | ||||
| { PROC_LINKS(hide_filebar, 0), "hide_filebar", 12,  "Sets the current view to hide it's filebar.", 43, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 477 }, | ||||
| { PROC_LINKS(hide_scrollbar, 0), "hide_scrollbar", 14,  "Sets the current view to hide it's scrollbar.", 45, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 463 }, | ||||
| { PROC_LINKS(highlight_next_scope_absolute, 0), "highlight_next_scope_absolute", 29,  "Finds the first scope started by '{' after the cursor and puts the cursor and mark on the '{' and '}'.", 102, "c:\\4ed\\code\\4coder_scope_commands.cpp", 40, 363 }, | ||||
| { PROC_LINKS(highlight_prev_scope_absolute, 0), "highlight_prev_scope_absolute", 29,  "Finds the first scope started by '{' before the cursor and puts the cursor and mark on the '{' and '}'.", 103, "c:\\4ed\\code\\4coder_scope_commands.cpp", 40, 382 }, | ||||
| { PROC_LINKS(highlight_surrounding_scope, 0), "highlight_surrounding_scope", 27,  "Finds the scope enclosed by '{' '}' surrounding the cursor and puts the cursor and mark on the '{' and '}'.", 107, "c:\\4ed\\code\\4coder_scope_commands.cpp", 40, 341 }, | ||||
| { PROC_LINKS(if0_off, 0), "if0_off", 7,  "Surround the range between the cursor and mark with an '#if 0' and an '#endif'", 78, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 49, 82 }, | ||||
| { PROC_LINKS(increase_face_size, 0), "increase_face_size", 18,  "Increase the size of the face used by the current buffer.", 57, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 525 }, | ||||
| { PROC_LINKS(increase_line_wrap, 0), "increase_line_wrap", 18,  "Increases the current buffer's width for line wrapping.", 55, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 503 }, | ||||
| { PROC_LINKS(interactive_kill_buffer, 0), "interactive_kill_buffer", 23,  "Interactively kill an open buffer.", 34, "c:\\4ed\\code\\4coder_lists.cpp", 31, 646 }, | ||||
| { PROC_LINKS(interactive_new, 0), "interactive_new", 15,  "Interactively creates a new file.", 33, "c:\\4ed\\code\\4coder_lists.cpp", 31, 748 }, | ||||
| { PROC_LINKS(interactive_open, 0), "interactive_open", 16,  "Interactively opens a file.", 27, "c:\\4ed\\code\\4coder_lists.cpp", 31, 775 }, | ||||
| { PROC_LINKS(interactive_open_or_new, 0), "interactive_open_or_new", 23,  "Interactively open a file out of the file system.", 49, "c:\\4ed\\code\\4coder_lists.cpp", 31, 715 }, | ||||
| { PROC_LINKS(interactive_switch_buffer, 0), "interactive_switch_buffer", 25,  "Interactively switch to an open buffer.", 39, "c:\\4ed\\code\\4coder_lists.cpp", 31, 628 }, | ||||
| { PROC_LINKS(kill_buffer, 0), "kill_buffer", 11,  "Kills the current buffer.", 25, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1450 }, | ||||
| { PROC_LINKS(kill_rect, 0), "kill_rect", 9,  "Delete characters in a rectangular region. Range testing is done by unwrapped-xy coordinates.", 93, "c:\\4ed\\code\\4coder_experiments.cpp", 37, 26 }, | ||||
| { PROC_LINKS(left_adjust_view, 0), "left_adjust_view", 16,  "Sets the left size of the view near the x position of the cursor.", 65, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 141 }, | ||||
| { PROC_LINKS(list_all_functions_current_buffer, 0), "list_all_functions_current_buffer", 33,  "Creates a jump list of lines of the current buffer that appear to define or declare functions.", 94, "c:\\4ed\\code\\4coder_function_list.cpp", 39, 318 }, | ||||
| { PROC_LINKS(list_all_locations, 0), "list_all_locations", 18,  "Queries the user for a string and lists all exact case-sensitive matches found in all open buffers.", 99, "c:\\4ed\\code\\4coder_search.cpp", 32, 747 }, | ||||
| { PROC_LINKS(list_all_locations_case_insensitive, 0), "list_all_locations_case_insensitive", 35,  "Queries the user for a string and lists all exact case-insensitive matches found in all open buffers.", 101, "c:\\4ed\\code\\4coder_search.cpp", 32, 759 }, | ||||
| { PROC_LINKS(list_all_locations_of_identifier, 0), "list_all_locations_of_identifier", 32,  "Reads a token or word under the cursor and lists all exact case-sensitive mathces in all open buffers.", 102, "c:\\4ed\\code\\4coder_search.cpp", 32, 771 }, | ||||
| { PROC_LINKS(list_all_locations_of_identifier_case_insensitive, 0), "list_all_locations_of_identifier_case_insensitive", 49,  "Reads a token or word under the cursor and lists all exact case-insensitive mathces in all open buffers.", 104, "c:\\4ed\\code\\4coder_search.cpp", 32, 777 }, | ||||
| { PROC_LINKS(list_all_locations_of_selection, 0), "list_all_locations_of_selection", 31,  "Reads the string in the selected range and lists all exact case-sensitive mathces in all open buffers.", 102, "c:\\4ed\\code\\4coder_search.cpp", 32, 783 }, | ||||
| { PROC_LINKS(list_all_locations_of_selection_case_insensitive, 0), "list_all_locations_of_selection_case_insensitive", 48,  "Reads the string in the selected range and lists all exact case-insensitive mathces in all open buffers.", 104, "c:\\4ed\\code\\4coder_search.cpp", 32, 789 }, | ||||
| { PROC_LINKS(list_all_locations_of_type_definition, 0), "list_all_locations_of_type_definition", 37,  "Queries user for string, lists all locations of strings that appear to define a type whose name matches the input string.", 121, "c:\\4ed\\code\\4coder_search.cpp", 32, 795 }, | ||||
| { PROC_LINKS(list_all_locations_of_type_definition_of_identifier, 0), "list_all_locations_of_type_definition_of_identifier", 51,  "Reads a token or word under the cursor and lists all locations of strings that appear to define a type whose name matches it.", 125, "c:\\4ed\\code\\4coder_search.cpp", 32, 806 }, | ||||
| { PROC_LINKS(list_all_substring_locations, 0), "list_all_substring_locations", 28,  "Queries the user for a string and lists all case-sensitive substring matches found in all open buffers.", 103, "c:\\4ed\\code\\4coder_search.cpp", 32, 753 }, | ||||
| { PROC_LINKS(list_all_substring_locations_case_insensitive, 0), "list_all_substring_locations_case_insensitive", 45,  "Queries the user for a string and lists all case-insensitive substring matches found in all open buffers.", 105, "c:\\4ed\\code\\4coder_search.cpp", 32, 765 }, | ||||
| { PROC_LINKS(lister__activate, 0), "lister__activate", 16,  "A lister mode command that activates the list's action on the highlighted item.", 79, "c:\\4ed\\code\\4coder_lists.cpp", 31, 17 }, | ||||
| { PROC_LINKS(lister__backspace_text_field, 0), "lister__backspace_text_field", 28,  "A lister mode command that dispatches to the lister's backspace text field handler.", 83, "c:\\4ed\\code\\4coder_lists.cpp", 31, 43 }, | ||||
| { PROC_LINKS(lister__backspace_text_field__default, 0), "lister__backspace_text_field__default", 37,  "A lister mode command that backspaces one character from the text field.", 72, "c:\\4ed\\code\\4coder_lists.cpp", 31, 148 }, | ||||
| { PROC_LINKS(lister__backspace_text_field__file_path, 0), "lister__backspace_text_field__file_path", 39,  "A lister mode command that backspaces one character from the text field of a file system list.", 94, "c:\\4ed\\code\\4coder_lists.cpp", 31, 220 }, | ||||
| { PROC_LINKS(lister__mouse_press, 0), "lister__mouse_press", 19,  "A lister mode command that beings a click interaction with a list item under the mouse.", 87, "c:\\4ed\\code\\4coder_lists.cpp", 31, 88 }, | ||||
| { PROC_LINKS(lister__mouse_release, 0), "lister__mouse_release", 21,  "A lister mode command that ends a click interaction with a list item under the mouse, possibly activating it.", 109, "c:\\4ed\\code\\4coder_lists.cpp", 31, 100 }, | ||||
| { PROC_LINKS(lister__move_down, 0), "lister__move_down", 17,  "A lister mode command that dispatches to the lister's navigate down handler.", 76, "c:\\4ed\\code\\4coder_lists.cpp", 31, 63 }, | ||||
| { PROC_LINKS(lister__move_down__default, 0), "lister__move_down__default", 26,  "A lister mode command that moves the highlighted item one down in the list.", 75, "c:\\4ed\\code\\4coder_lists.cpp", 31, 179 }, | ||||
| { PROC_LINKS(lister__move_up, 0), "lister__move_up", 15,  "A lister mode command that dispatches to the lister's navigate up handler.", 74, "c:\\4ed\\code\\4coder_lists.cpp", 31, 53 }, | ||||
| { PROC_LINKS(lister__move_up__default, 0), "lister__move_up__default", 24,  "A lister mode command that moves the highlighted item one up in the list.", 73, "c:\\4ed\\code\\4coder_lists.cpp", 31, 163 }, | ||||
| { PROC_LINKS(lister__quit, 0), "lister__quit", 12,  "A lister mode command that quits the list without executing any actions.", 72, "c:\\4ed\\code\\4coder_lists.cpp", 31, 8 }, | ||||
| { PROC_LINKS(lister__repaint, 0), "lister__repaint", 15,  "A lister mode command that updates the lists UI data.", 53, "c:\\4ed\\code\\4coder_lists.cpp", 31, 117 }, | ||||
| { PROC_LINKS(lister__wheel_scroll, 0), "lister__wheel_scroll", 20,  "A lister mode command that scrolls the list in response to the mouse wheel.", 75, "c:\\4ed\\code\\4coder_lists.cpp", 31, 73 }, | ||||
| { PROC_LINKS(lister__write_character, 0), "lister__write_character", 23,  "A lister mode command that dispatches to the lister's write character handler.", 78, "c:\\4ed\\code\\4coder_lists.cpp", 31, 33 }, | ||||
| { PROC_LINKS(lister__write_character__default, 0), "lister__write_character__default", 32,  "A lister mode command that inserts a new character to the text field.", 69, "c:\\4ed\\code\\4coder_lists.cpp", 31, 128 }, | ||||
| { PROC_LINKS(lister__write_character__file_path, 0), "lister__write_character__file_path", 34,  "A lister mode command that inserts a character into the text field of a file system list.", 89, "c:\\4ed\\code\\4coder_lists.cpp", 31, 195 }, | ||||
| { PROC_LINKS(lister__write_character__fixed_list, 0), "lister__write_character__fixed_list", 35,  "A lister mode command that handles input for the fixed sure to kill list.", 73, "c:\\4ed\\code\\4coder_lists.cpp", 31, 255 }, | ||||
| { PROC_LINKS(load_project, 0), "load_project", 12,  "Looks for a project.4coder file in the current directory and tries to load it.  Looks in parent directories until a project file is found or there are no more parents.", 167, "c:\\4ed\\code\\4coder_project_commands.cpp", 42, 1071 }, | ||||
| { PROC_LINKS(make_directory_query, 0), "make_directory_query", 20,  "Queries the user for a name and creates a new directory with the given name.", 76, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1138 }, | ||||
| { PROC_LINKS(miblo_decrement_basic, 0), "miblo_decrement_basic", 21,  "Decrement an integer under the cursor by one.", 45, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 39, 110 }, | ||||
| { PROC_LINKS(miblo_decrement_time_stamp, 0), "miblo_decrement_time_stamp", 26,  "Decrement a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 39, 383 }, | ||||
| { PROC_LINKS(miblo_decrement_time_stamp_minute, 0), "miblo_decrement_time_stamp_minute", 33,  "Decrement a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 39, 395 }, | ||||
| { PROC_LINKS(miblo_increment_basic, 0), "miblo_increment_basic", 21,  "Increment an integer under the cursor by one.", 45, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 39, 94 }, | ||||
| { PROC_LINKS(miblo_increment_time_stamp, 0), "miblo_increment_time_stamp", 26,  "Increment a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 39, 377 }, | ||||
| { PROC_LINKS(miblo_increment_time_stamp_minute, 0), "miblo_increment_time_stamp_minute", 33,  "Increment a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "c:\\4ed\\code\\4coder_miblo_numbers.cpp", 39, 389 }, | ||||
| { PROC_LINKS(move_down, 0), "move_down", 9,  "Moves the cursor down one line.", 31, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 256 }, | ||||
| { PROC_LINKS(move_down_10, 0), "move_down_10", 12,  "Moves the cursor down ten lines.", 32, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 268 }, | ||||
| { PROC_LINKS(move_down_textual, 0), "move_down_textual", 17,  "Moves down to the next line of actual text, regardless of line wrapping.", 72, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 274 }, | ||||
| { PROC_LINKS(move_left, 0), "move_left", 9,  "Moves the cursor one character to the left.", 43, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 305 }, | ||||
| { PROC_LINKS(move_line_down, 0), "move_line_down", 14,  "Swaps the line under the cursor with the line below it, and moves the cursor down with it.", 90, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1235 }, | ||||
| { PROC_LINKS(move_line_up, 0), "move_line_up", 12,  "Swaps the line under the cursor with the line above it, and moves the cursor up with it.", 88, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1171 }, | ||||
| { PROC_LINKS(move_right, 0), "move_right", 10,  "Moves the cursor one character to the right.", 44, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 314 }, | ||||
| { PROC_LINKS(move_up, 0), "move_up", 7,  "Moves the cursor up one line.", 29, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 250 }, | ||||
| { PROC_LINKS(move_up_10, 0), "move_up_10", 10,  "Moves the cursor up ten lines.", 30, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 262 }, | ||||
| { PROC_LINKS(multi_line_edit, 0), "multi_line_edit", 15,  "Begin multi-line mode.  In multi-line mode characters are inserted at every line between the mark and cursor.  All characters are inserted at the same character offset into the line.  This mode uses line_char coordinates.", 221, "c:\\4ed\\code\\4coder_experiments.cpp", 37, 117 }, | ||||
| { PROC_LINKS(newline_or_goto_position_direct, 0), "newline_or_goto_position_direct", 31,  "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "c:\\4ed\\code\\4coder_jump_direct.cpp", 37, 101 }, | ||||
| { PROC_LINKS(newline_or_goto_position_same_panel_direct, 0), "newline_or_goto_position_same_panel_direct", 42,  "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "c:\\4ed\\code\\4coder_jump_direct.cpp", 37, 116 }, | ||||
| { PROC_LINKS(newline_or_goto_position_same_panel_sticky, 0), "newline_or_goto_position_same_panel_sticky", 42,  "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 37, 554 }, | ||||
| { PROC_LINKS(newline_or_goto_position_sticky, 0), "newline_or_goto_position_sticky", 31,  "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "c:\\4ed\\code\\4coder_jump_sticky.cpp", 37, 539 }, | ||||
| { PROC_LINKS(open_all_code, 0), "open_all_code", 13,  "Open all code in the current directory. File types are determined by extensions. An extension is considered code based on the extensions specified in 4coder.config.", 164, "c:\\4ed\\code\\4coder_project_commands.cpp", 42, 1055 }, | ||||
| { PROC_LINKS(open_all_code_recursive, 0), "open_all_code_recursive", 23,  "Works as open_all_code but also runs in all subdirectories.", 59, "c:\\4ed\\code\\4coder_project_commands.cpp", 42, 1062 }, | ||||
| { PROC_LINKS(open_color_tweaker, 0), "open_color_tweaker", 18,  "Opens the 4coder theme selector list.", 37, "c:\\4ed\\code\\4coder_lists.cpp", 31, 791 }, | ||||
| { PROC_LINKS(open_file_in_quotes, 0), "open_file_in_quotes", 19,  "Reads a filename from surrounding '\"' characters and attempts to open the corresponding file.", 94, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1357 }, | ||||
| { PROC_LINKS(open_in_other, 0), "open_in_other", 13,  "Interactively opens a file in the other panel.", 46, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1508 }, | ||||
| { PROC_LINKS(open_long_braces, 0), "open_long_braces", 16,  "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 49, 58 }, | ||||
| { PROC_LINKS(open_long_braces_break, 0), "open_long_braces_break", 22,  "At the cursor, insert a '{' and '}break;' separated by a blank line.", 68, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 49, 74 }, | ||||
| { PROC_LINKS(open_long_braces_semicolon, 0), "open_long_braces_semicolon", 26,  "At the cursor, insert a '{' and '};' separated by a blank line.", 63, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 49, 66 }, | ||||
| { PROC_LINKS(open_matching_file_cpp, 0), "open_matching_file_cpp", 22,  "If the current file is a *.cpp or *.h, attempts to open the corresponding *.h or *.cpp file in the other view.", 110, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1393 }, | ||||
| { PROC_LINKS(open_panel_hsplit, 0), "open_panel_hsplit", 17,  "Create a new panel by horizontally splitting the active panel.", 62, "c:\\4ed\\code\\4coder_default_framework.cpp", 43, 164 }, | ||||
| { PROC_LINKS(open_panel_vsplit, 0), "open_panel_vsplit", 17,  "Create a new panel by vertically splitting the active panel.", 60, "c:\\4ed\\code\\4coder_default_framework.cpp", 43, 155 }, | ||||
| { PROC_LINKS(page_down, 0), "page_down", 9,  "Scrolls the view down one view height and moves the cursor down one view height.", 80, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 294 }, | ||||
| { PROC_LINKS(page_up, 0), "page_up", 7,  "Scrolls the view up one view height and moves the cursor up one view height.", 76, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 285 }, | ||||
| { PROC_LINKS(paste, 0), "paste", 5,  "At the cursor, insert the text at the top of the clipboard.", 59, "c:\\4ed\\code\\4coder_clipboard.cpp", 35, 46 }, | ||||
| { PROC_LINKS(paste_and_indent, 0), "paste_and_indent", 16,  "Paste from the top of clipboard and run auto-indent on the newly pasted text.", 77, "c:\\4ed\\code\\4coder_clipboard.cpp", 35, 131 }, | ||||
| { PROC_LINKS(paste_next, 0), "paste_next", 10,  "If the previous command was paste or paste_next, replaces the paste range with the next text down on the clipboard, otherwise operates as the paste command.", 156, "c:\\4ed\\code\\4coder_clipboard.cpp", 35, 83 }, | ||||
| { PROC_LINKS(paste_next_and_indent, 0), "paste_next_and_indent", 21,  "Paste the next item on the clipboard and run auto-indent on the newly pasted text.", 82, "c:\\4ed\\code\\4coder_clipboard.cpp", 35, 138 }, | ||||
| { PROC_LINKS(place_in_scope, 0), "place_in_scope", 14,  "Wraps the code contained in the range between cursor and mark with a new curly brace scope.", 91, "c:\\4ed\\code\\4coder_scope_commands.cpp", 40, 481 }, | ||||
| { PROC_LINKS(project_fkey_command, 0), "project_fkey_command", 20,  "Run an 'fkey command' configured in a project.4coder file.  Determines the index of the 'fkey command' by which function key or numeric key was pressed to trigger the command.", 175, "c:\\4ed\\code\\4coder_project_commands.cpp", 42, 1078 }, | ||||
| { PROC_LINKS(project_go_to_root_directory, 0), "project_go_to_root_directory", 28,  "Changes 4coder's hot directory to the root directory of the currently loaded project. With no loaded project nothing hapepns.", 125, "c:\\4ed\\code\\4coder_project_commands.cpp", 42, 1103 }, | ||||
| { PROC_LINKS(query_replace, 0), "query_replace", 13,  "Queries the user for two strings, and incrementally replaces every occurence of the first string with the second string.", 120, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 918 }, | ||||
| { PROC_LINKS(query_replace_identifier, 0), "query_replace_identifier", 24,  "Queries the user for a string, and incrementally replace every occurence of the word or token found at the cursor with the specified string.", 140, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 938 }, | ||||
| { PROC_LINKS(query_replace_selection, 0), "query_replace_selection", 23,  "Queries the user for a string, and incrementally replace every occurence of the string found in the selected range with the specified string.", 141, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 956 }, | ||||
| { PROC_LINKS(redo, 0), "redo", 4,  "Advances forewards through the undo history.", 44, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1465 }, | ||||
| { PROC_LINKS(reload_themes, 0), "reload_themes", 13,  "Loads all the theme files in the theme folder, replacing duplicates with the new theme data.", 92, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1485 }, | ||||
| { PROC_LINKS(remap_interactive, 0), "remap_interactive", 17,  "Switch to a named key binding map.", 34, "c:\\4ed\\code\\4coder_default_framework.cpp", 43, 213 }, | ||||
| { PROC_LINKS(rename_file_query, 0), "rename_file_query", 17,  "Queries the user for a new name and renames the file of the current buffer, altering the buffer's name too.", 107, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1096 }, | ||||
| { PROC_LINKS(rename_parameter, 0), "rename_parameter", 16,  "If the cursor is found to be on the name of a function parameter in the signature of a function definition, all occurences within the scope of the function will be replaced with a new provided string.", 200, "c:\\4ed\\code\\4coder_experiments.cpp", 37, 384 }, | ||||
| { PROC_LINKS(reopen, 0), "reopen", 6,  "Reopen the current buffer from the hard drive.", 46, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1471 }, | ||||
| { PROC_LINKS(replace_all_occurrences, 0), "replace_all_occurrences", 23,  "Queries the user for two strings, and replaces all occurrences of the first string with the second string in all open buffers.", 126, "c:\\4ed\\code\\4coder_experiments.cpp", 37, 779 }, | ||||
| { PROC_LINKS(replace_in_range, 0), "replace_in_range", 16,  "Queries the user for two strings, and replaces all occurences of the first string in the range between the cursor and the mark with the second string.", 150, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 816 }, | ||||
| { PROC_LINKS(reverse_search, 0), "reverse_search", 14,  "Begins an incremental search up through the current buffer for a user specified string.", 87, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 787 }, | ||||
| { PROC_LINKS(reverse_search_identifier, 0), "reverse_search_identifier", 25,  "Begins an incremental search up through the current buffer for the word or token under the cursor.", 98, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 805 }, | ||||
| { PROC_LINKS(save, 0), "save", 4,  "Saves the current buffer.", 25, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1477 }, | ||||
| { PROC_LINKS(save_all_dirty_buffers, 0), "save_all_dirty_buffers", 22,  "Saves all buffers marked dirty (showing the '*' indicator).", 59, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1000 }, | ||||
| { PROC_LINKS(save_to_query, 0), "save_to_query", 13,  "Queries the user for a name and saves the contents of the current buffer, altering the buffer's name too.", 105, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1056 }, | ||||
| { PROC_LINKS(scope_absorb_down, 0), "scope_absorb_down", 17,  "If a scope is currently selected, and a statement or block statement is present below the current scope, the statement is moved into the scope.", 143, "c:\\4ed\\code\\4coder_scope_commands.cpp", 40, 738 }, | ||||
| { PROC_LINKS(search, 0), "search", 6,  "Begins an incremental search down through the current buffer for a user specified string.", 89, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 780 }, | ||||
| { PROC_LINKS(search_identifier, 0), "search_identifier", 17,  "Begins an incremental search down through the current buffer for the word or token under the cursor.", 100, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 794 }, | ||||
| { PROC_LINKS(seek_alphanumeric_left, 0), "seek_alphanumeric_left", 22,  "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1227 }, | ||||
| { PROC_LINKS(seek_alphanumeric_or_camel_left, 0), "seek_alphanumeric_or_camel_left", 31,  "Seek left for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 106, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1239 }, | ||||
| { PROC_LINKS(seek_alphanumeric_or_camel_right, 0), "seek_alphanumeric_or_camel_right", 32,  "Seek right for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 107, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1233 }, | ||||
| { PROC_LINKS(seek_alphanumeric_right, 0), "seek_alphanumeric_right", 23,  "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1221 }, | ||||
| { PROC_LINKS(seek_beginning_of_line, 0), "seek_beginning_of_line", 22,  "Seeks the cursor to the beginning of the visual line.", 53, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1126 }, | ||||
| { PROC_LINKS(seek_beginning_of_textual_line, 0), "seek_beginning_of_textual_line", 30,  "Seeks the cursor to the beginning of the line across all text.", 62, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1108 }, | ||||
| { PROC_LINKS(seek_end_of_line, 0), "seek_end_of_line", 16,  "Seeks the cursor to the end of the visual line.", 47, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1137 }, | ||||
| { PROC_LINKS(seek_end_of_textual_line, 0), "seek_end_of_textual_line", 24,  "Seeks the cursor to the end of the line across all text.", 56, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1117 }, | ||||
| { PROC_LINKS(seek_token_left, 0), "seek_token_left", 15,  "Seek left for the next beginning of a token.", 44, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1203 }, | ||||
| { PROC_LINKS(seek_token_right, 0), "seek_token_right", 16,  "Seek right for the next end of a token.", 39, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1197 }, | ||||
| { PROC_LINKS(seek_white_or_token_left, 0), "seek_white_or_token_left", 24,  "Seek left for the next end of a token or boundary between whitespace and non-whitespace.", 88, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1215 }, | ||||
| { PROC_LINKS(seek_white_or_token_right, 0), "seek_white_or_token_right", 25,  "Seek right for the next end of a token or boundary between whitespace and non-whitespace.", 89, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1209 }, | ||||
| { PROC_LINKS(seek_whitespace_down, 0), "seek_whitespace_down", 20,  "Seeks the cursor down to the next blank line.", 45, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1099 }, | ||||
| { PROC_LINKS(seek_whitespace_down_end_line, 0), "seek_whitespace_down_end_line", 29,  "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1158 }, | ||||
| { PROC_LINKS(seek_whitespace_left, 0), "seek_whitespace_left", 20,  "Seek left for the next boundary between whitespace and non-whitespace.", 70, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1191 }, | ||||
| { PROC_LINKS(seek_whitespace_right, 0), "seek_whitespace_right", 21,  "Seek right for the next boundary between whitespace and non-whitespace.", 71, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1185 }, | ||||
| { PROC_LINKS(seek_whitespace_up, 0), "seek_whitespace_up", 18,  "Seeks the cursor up to the next blank line.", 43, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1090 }, | ||||
| { PROC_LINKS(seek_whitespace_up_end_line, 0), "seek_whitespace_up_end_line", 27,  "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1148 }, | ||||
| { PROC_LINKS(select_all, 0), "select_all", 10,  "Puts the cursor at the top of the file, and the mark at the bottom of the file.", 79, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 323 }, | ||||
| { PROC_LINKS(set_bindings_choose, 0), "set_bindings_choose", 19,  "Remap keybindings using the 'choose' mapping rule.", 50, "c:\\4ed\\code\\4coder_remapping_commands.cpp", 44, 47 }, | ||||
| { PROC_LINKS(set_bindings_default, 0), "set_bindings_default", 20,  "Remap keybindings using the 'default' mapping rule.", 51, "c:\\4ed\\code\\4coder_remapping_commands.cpp", 44, 61 }, | ||||
| { PROC_LINKS(set_bindings_mac_default, 0), "set_bindings_mac_default", 24,  "Remap keybindings using the 'mac-default' mapping rule.", 55, "c:\\4ed\\code\\4coder_remapping_commands.cpp", 44, 75 }, | ||||
| { PROC_LINKS(set_mark, 0), "set_mark", 8,  "Sets the mark to the current position of the cursor.", 52, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 92 }, | ||||
| { PROC_LINKS(setup_build_bat, 0), "setup_build_bat", 15,  "Queries the user for several configuration options and initializes a new build batch script.", 92, "c:\\4ed\\code\\4coder_project_commands.cpp", 42, 1488 }, | ||||
| { PROC_LINKS(setup_build_bat_and_sh, 0), "setup_build_bat_and_sh", 22,  "Queries the user for several configuration options and initializes a new build batch script.", 92, "c:\\4ed\\code\\4coder_project_commands.cpp", 42, 1500 }, | ||||
| { PROC_LINKS(setup_build_sh, 0), "setup_build_sh", 14,  "Queries the user for several configuration options and initializes a new build shell script.", 92, "c:\\4ed\\code\\4coder_project_commands.cpp", 42, 1494 }, | ||||
| { PROC_LINKS(setup_new_project, 0), "setup_new_project", 17,  "Queries the user for several configuration options and initializes a new 4coder project with build scripts for every OS.", 120, "c:\\4ed\\code\\4coder_project_commands.cpp", 42, 1481 }, | ||||
| { PROC_LINKS(show_filebar, 0), "show_filebar", 12,  "Sets the current view to show it's filebar.", 43, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 470 }, | ||||
| { PROC_LINKS(show_scrollbar, 0), "show_scrollbar", 14,  "Sets the current view to show it's scrollbar.", 45, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 456 }, | ||||
| { PROC_LINKS(snipe_token_or_word, 0), "snipe_token_or_word", 19,  "Delete a single, whole token on or to the left of the cursor and post it to the clipboard.", 90, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1259 }, | ||||
| { PROC_LINKS(snipe_token_or_word_right, 0), "snipe_token_or_word_right", 25,  "Delete a single, whole token on or to the right of the cursor and post it to the clipboard.", 91, "c:\\4ed\\code\\4coder_seek.cpp", 30, 1265 }, | ||||
| { PROC_LINKS(suppress_mouse, 0), "suppress_mouse", 14,  "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "c:\\4ed\\code\\4coder_default_framework.cpp", 43, 187 }, | ||||
| { PROC_LINKS(swap_buffers_between_panels, 0), "swap_buffers_between_panels", 27,  "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1417 }, | ||||
| { PROC_LINKS(to_lowercase, 0), "to_lowercase", 12,  "Converts all ascii text in the range between the cursor and the mark to lowercase.", 82, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 354 }, | ||||
| { PROC_LINKS(to_uppercase, 0), "to_uppercase", 12,  "Converts all ascii text in the range between the cursor and the mark to uppercase.", 82, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 334 }, | ||||
| { PROC_LINKS(toggle_filebar, 0), "toggle_filebar", 14,  "Toggles the visibility status of the current view's filebar.", 60, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 484 }, | ||||
| { PROC_LINKS(toggle_fullscreen, 0), "toggle_fullscreen", 17,  "Toggle fullscreen mode on or off.  The change(s) do not take effect until the next frame.", 89, "c:\\4ed\\code\\4coder_default_framework.cpp", 43, 205 }, | ||||
| { PROC_LINKS(toggle_line_wrap, 0), "toggle_line_wrap", 16,  "Toggles the current buffer's line wrapping status.", 50, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 493 }, | ||||
| { PROC_LINKS(toggle_mouse, 0), "toggle_mouse", 12,  "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "c:\\4ed\\code\\4coder_default_framework.cpp", 43, 199 }, | ||||
| { PROC_LINKS(toggle_show_whitespace, 0), "toggle_show_whitespace", 22,  "Toggles the current buffer's whitespace visibility status.", 58, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 560 }, | ||||
| { PROC_LINKS(toggle_virtual_whitespace, 0), "toggle_virtual_whitespace", 25,  "Toggles the current buffer's virtual whitespace status.", 55, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 549 }, | ||||
| { PROC_LINKS(undo, 0), "undo", 4,  "Advances backwards through the undo history.", 44, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1459 }, | ||||
| { PROC_LINKS(view_buffer_other_panel, 0), "view_buffer_other_panel", 23,  "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 1407 }, | ||||
| { PROC_LINKS(word_complete, 0), "word_complete", 13,  "Iteratively tries completing the word to the left of the cursor with other words in open buffers that have the same prefix string.", 130, "c:\\4ed\\code\\4coder_search.cpp", 32, 826 }, | ||||
| { PROC_LINKS(write_and_auto_tab, 0), "write_and_auto_tab", 18,  "Inserts a character and auto-indents the line on which the cursor sits.", 71, "c:\\4ed\\code\\4coder_auto_indent.cpp", 37, 745 }, | ||||
| { PROC_LINKS(write_block, 0), "write_block", 11,  "At the cursor, insert a block comment.", 38, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 49, 106 }, | ||||
| { PROC_LINKS(write_character, 0), "write_character", 15,  "Inserts whatever character was used to trigger this command.", 60, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 39 }, | ||||
| { PROC_LINKS(write_explicit_enum_flags, 0), "write_explicit_enum_flags", 25,  "If the cursor is found to be on the '{' of an enum definition, the values of the enum will be filled in to give each a unique power of 2 value, starting from 1.  Existing values are overwritten.", 194, "c:\\4ed\\code\\4coder_experiments.cpp", 37, 706 }, | ||||
| { PROC_LINKS(write_explicit_enum_values, 0), "write_explicit_enum_values", 26,  "If the cursor is found to be on the '{' of an enum definition, the values of the enum will be filled in sequentially starting from zero.  Existing values are overwritten.", 170, "c:\\4ed\\code\\4coder_experiments.cpp", 37, 700 }, | ||||
| { PROC_LINKS(write_hack, 0), "write_hack", 10,  "At the cursor, insert a '// HACK' comment, includes user name if it was specified in config.4coder.", 99, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 49, 94 }, | ||||
| { PROC_LINKS(write_note, 0), "write_note", 10,  "At the cursor, insert a '// NOTE' comment, includes user name if it was specified in config.4coder.", 99, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 49, 100 }, | ||||
| { PROC_LINKS(write_todo, 0), "write_todo", 10,  "At the cursor, insert a '// TODO' comment, includes user name if it was specified in config.4coder.", 99, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 49, 88 }, | ||||
| { PROC_LINKS(write_underscore, 0), "write_underscore", 16,  "Inserts an underscore.", 22, "c:\\4ed\\code\\4coder_base_commands.cpp", 39, 48 }, | ||||
| { PROC_LINKS(write_zero_struct, 0), "write_zero_struct", 17,  "At the cursor, insert a ' = {0};'.", 34, "c:\\4ed\\code\\4coder_combined_write_commands.cpp", 49, 112 }, | ||||
| static Command_Metadata fcoder_metacmd_table[202] = { | ||||
| { PROC_LINKS(allow_mouse, 0), "allow_mouse", 11,  "Shows the mouse and causes all mouse input to be processed normally.", 68, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 193 }, | ||||
| { PROC_LINKS(auto_tab_line_at_cursor, 0), "auto_tab_line_at_cursor", 23,  "Auto-indents the line on which the cursor sits.", 47, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 722 }, | ||||
| { PROC_LINKS(auto_tab_range, 0), "auto_tab_range", 14,  "Auto-indents the range between the cursor and the mark.", 55, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 733 }, | ||||
| { PROC_LINKS(auto_tab_whole_file, 0), "auto_tab_whole_file", 19,  "Audo-indents the entire current buffer.", 39, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 712 }, | ||||
| { PROC_LINKS(backspace_char, 0), "backspace_char", 14,  "Deletes the character to the left of the cursor.", 48, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 73 }, | ||||
| { PROC_LINKS(backspace_word, 0), "backspace_word", 14,  "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1247 }, | ||||
| { PROC_LINKS(basic_change_active_panel, 0), "basic_change_active_panel", 25,  "Change the currently active panel, moving to the panel with the next highest view_id.  Will not skipe the build panel if it is open.", 132, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 439 }, | ||||
| { PROC_LINKS(build_in_build_panel, 0), "build_in_build_panel", 20,  "Looks for a build.bat, build.sh, or makefile in the current and parent directories.  Runs the first that it finds and prints the output to *compilation*.  Puts the *compilation* buffer in a panel at the footer of the current view.", 230, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 187 }, | ||||
| { PROC_LINKS(build_search, 0), "build_search", 12,  "Looks for a build.bat, build.sh, or makefile in the current and parent directories.  Runs the first that it finds and prints the output to *compilation*.", 153, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 155 }, | ||||
| { PROC_LINKS(center_view, 0), "center_view", 11,  "Centers the view vertically on the line on which the cursor sits.", 65, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 126 }, | ||||
| { PROC_LINKS(change_active_panel, 0), "change_active_panel", 19,  "Change the currently active panel, moving to the panel with the next highest view_id.", 85, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 135 }, | ||||
| { PROC_LINKS(change_active_panel_backwards, 0), "change_active_panel_backwards", 29,  "Change the currently active panel, moving to the panel with the next lowest view_id.", 84, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 145 }, | ||||
| { PROC_LINKS(change_to_build_panel, 0), "change_to_build_panel", 21,  "If the special build panel is open, makes the build panel the active panel.", 75, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 209 }, | ||||
| { PROC_LINKS(clean_all_lines, 0), "clean_all_lines", 15,  "Removes trailing whitespace from all lines in the current buffer.", 65, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 374 }, | ||||
| { PROC_LINKS(click_set_cursor, 0), "click_set_cursor", 16,  "Sets the cursor position to the mouse position.", 47, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 180 }, | ||||
| { PROC_LINKS(click_set_mark, 0), "click_set_mark", 14,  "Sets the mark position to the mouse position.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 193 }, | ||||
| { PROC_LINKS(close_all_code, 0), "close_all_code", 14,  "Closes any buffer with a filename ending with an extension configured to be recognized as a code file type.", 107, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1048 }, | ||||
| { PROC_LINKS(close_build_panel, 0), "close_build_panel", 17,  "If the special build panel is open, closes it.", 46, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 203 }, | ||||
| { PROC_LINKS(close_panel, 0), "close_panel", 11,  "Closes the currently active panel if it is not the only panel open.", 67, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 447 }, | ||||
| { PROC_LINKS(copy, 0), "copy", 4,  "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 26 }, | ||||
| { PROC_LINKS(cursor_mark_swap, 0), "cursor_mark_swap", 16,  "Swaps the position of the cursor and the mark.", 46, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 101 }, | ||||
| { PROC_LINKS(cut, 0), "cut", 3,  "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 35 }, | ||||
| { PROC_LINKS(decrease_face_size, 0), "decrease_face_size", 18,  "Decrease the size of the face used by the current buffer.", 57, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 537 }, | ||||
| { PROC_LINKS(decrease_line_wrap, 0), "decrease_line_wrap", 18,  "Decrases the current buffer's width for line wrapping.", 54, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 514 }, | ||||
| { PROC_LINKS(delete_char, 0), "delete_char", 11,  "Deletes the character to the right of the cursor.", 49, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 55 }, | ||||
| { PROC_LINKS(delete_current_scope, 0), "delete_current_scope", 20,  "Deletes the braces surrounding the currently selected scope.  Leaves the contents within the scope.", 99, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 487 }, | ||||
| { PROC_LINKS(delete_file_query, 0), "delete_file_query", 17,  "Deletes the file of the current buffer if 4coder has the appropriate access rights. Will ask the user for confirmation first.", 125, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1030 }, | ||||
| { PROC_LINKS(delete_line, 0), "delete_line", 11,  "Delete the line the on which the cursor sits.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1280 }, | ||||
| { PROC_LINKS(delete_range, 0), "delete_range", 12,  "Deletes the text in the range between the cursor and the mark.", 62, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 113 }, | ||||
| { PROC_LINKS(delete_word, 0), "delete_word", 11,  "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1253 }, | ||||
| { PROC_LINKS(duplicate_line, 0), "duplicate_line", 14,  "Create a copy of the line on which the cursor sits.", 51, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1258 }, | ||||
| { PROC_LINKS(eol_dosify, 0), "eol_dosify", 10,  "Puts the buffer in DOS line ending mode.", 40, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 567 }, | ||||
| { PROC_LINKS(eol_nixify, 0), "eol_nixify", 10,  "Puts the buffer in NIX line ending mode.", 40, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 575 }, | ||||
| { PROC_LINKS(execute_any_cli, 0), "execute_any_cli", 15,  "Queries for an output buffer name and system command, runs the system command as a CLI and prints the output to the specified buffer.", 133, "w:\\4ed\\code\\4coder_system_command.cpp", 37, 23 }, | ||||
| { PROC_LINKS(execute_arbitrary_command, 0), "execute_arbitrary_command", 25,  "Execute a 'long form' command.", 30, "w:\\4ed\\code\\4coder_long_command_switch.cpp", 42, 8 }, | ||||
| { PROC_LINKS(execute_previous_cli, 0), "execute_previous_cli", 20,  "If the command execute_any_cli has already been used, this will execute a CLI reusing the most recent buffer name and command.", 126, "w:\\4ed\\code\\4coder_system_command.cpp", 37, 7 }, | ||||
| { PROC_LINKS(exit_4coder, 0), "exit_4coder", 11,  "Attempts to close 4coder.", 25, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 583 }, | ||||
| { PROC_LINKS(goto_beginning_of_file, 0), "goto_beginning_of_file", 22,  "Sets the cursor to the beginning of the file.", 45, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1168 }, | ||||
| { PROC_LINKS(goto_end_of_file, 0), "goto_end_of_file", 16,  "Sets the cursor to the end of the file.", 39, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1175 }, | ||||
| { PROC_LINKS(goto_first_jump_direct, 0), "goto_first_jump_direct", 22,  "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 84 }, | ||||
| { PROC_LINKS(goto_first_jump_same_panel_sticky, 0), "goto_first_jump_same_panel_sticky", 33,  "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer and views the buffer in the panel where the jump list was.", 153, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 520 }, | ||||
| { PROC_LINKS(goto_first_jump_sticky, 0), "goto_first_jump_sticky", 22,  "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 502 }, | ||||
| { PROC_LINKS(goto_jump_at_cursor_direct, 0), "goto_jump_at_cursor_direct", 26,  "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 8 }, | ||||
| { PROC_LINKS(goto_jump_at_cursor_same_panel_direct, 0), "goto_jump_at_cursor_same_panel_direct", 37,  "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list..", 168, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 29 }, | ||||
| { PROC_LINKS(goto_jump_at_cursor_same_panel_sticky, 0), "goto_jump_at_cursor_same_panel_sticky", 37,  "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list.", 167, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 348 }, | ||||
| { PROC_LINKS(goto_jump_at_cursor_sticky, 0), "goto_jump_at_cursor_sticky", 26,  "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 320 }, | ||||
| { PROC_LINKS(goto_line, 0), "goto_line", 9,  "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 591 }, | ||||
| { PROC_LINKS(goto_next_jump_direct, 0), "goto_next_jump_direct", 21,  "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 48 }, | ||||
| { PROC_LINKS(goto_next_jump_no_skips_direct, 0), "goto_next_jump_no_skips_direct", 30,  "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 66 }, | ||||
| { PROC_LINKS(goto_next_jump_no_skips_sticky, 0), "goto_next_jump_no_skips_sticky", 30,  "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 471 }, | ||||
| { PROC_LINKS(goto_next_jump_sticky, 0), "goto_next_jump_sticky", 21,  "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 441 }, | ||||
| { PROC_LINKS(goto_prev_jump_direct, 0), "goto_prev_jump_direct", 21,  "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 57 }, | ||||
| { PROC_LINKS(goto_prev_jump_no_skips_direct, 0), "goto_prev_jump_no_skips_direct", 30,  "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 75 }, | ||||
| { PROC_LINKS(goto_prev_jump_no_skips_sticky, 0), "goto_prev_jump_no_skips_sticky", 30,  "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 487 }, | ||||
| { PROC_LINKS(goto_prev_jump_sticky, 0), "goto_prev_jump_sticky", 21,  "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 457 }, | ||||
| { PROC_LINKS(hide_filebar, 0), "hide_filebar", 12,  "Sets the current view to hide it's filebar.", 43, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 477 }, | ||||
| { PROC_LINKS(hide_scrollbar, 0), "hide_scrollbar", 14,  "Sets the current view to hide it's scrollbar.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 463 }, | ||||
| { PROC_LINKS(highlight_next_scope_absolute, 0), "highlight_next_scope_absolute", 29,  "Finds the first scope started by '{' after the cursor and puts the cursor and mark on the '{' and '}'.", 102, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 363 }, | ||||
| { PROC_LINKS(highlight_prev_scope_absolute, 0), "highlight_prev_scope_absolute", 29,  "Finds the first scope started by '{' before the cursor and puts the cursor and mark on the '{' and '}'.", 103, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 382 }, | ||||
| { PROC_LINKS(highlight_surrounding_scope, 0), "highlight_surrounding_scope", 27,  "Finds the scope enclosed by '{' '}' surrounding the cursor and puts the cursor and mark on the '{' and '}'.", 107, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 341 }, | ||||
| { PROC_LINKS(if0_off, 0), "if0_off", 7,  "Surround the range between the cursor and mark with an '#if 0' and an '#endif'", 78, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 82 }, | ||||
| { PROC_LINKS(increase_face_size, 0), "increase_face_size", 18,  "Increase the size of the face used by the current buffer.", 57, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 525 }, | ||||
| { PROC_LINKS(increase_line_wrap, 0), "increase_line_wrap", 18,  "Increases the current buffer's width for line wrapping.", 55, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 503 }, | ||||
| { PROC_LINKS(interactive_kill_buffer, 0), "interactive_kill_buffer", 23,  "Interactively kill an open buffer.", 34, "w:\\4ed\\code\\4coder_lists.cpp", 28, 646 }, | ||||
| { PROC_LINKS(interactive_new, 0), "interactive_new", 15,  "Interactively creates a new file.", 33, "w:\\4ed\\code\\4coder_lists.cpp", 28, 748 }, | ||||
| { PROC_LINKS(interactive_open, 0), "interactive_open", 16,  "Interactively opens a file.", 27, "w:\\4ed\\code\\4coder_lists.cpp", 28, 775 }, | ||||
| { PROC_LINKS(interactive_open_or_new, 0), "interactive_open_or_new", 23,  "Interactively open a file out of the file system.", 49, "w:\\4ed\\code\\4coder_lists.cpp", 28, 715 }, | ||||
| { PROC_LINKS(interactive_switch_buffer, 0), "interactive_switch_buffer", 25,  "Interactively switch to an open buffer.", 39, "w:\\4ed\\code\\4coder_lists.cpp", 28, 628 }, | ||||
| { PROC_LINKS(kill_buffer, 0), "kill_buffer", 11,  "Kills the current buffer.", 25, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1450 }, | ||||
| { PROC_LINKS(left_adjust_view, 0), "left_adjust_view", 16,  "Sets the left size of the view near the x position of the cursor.", 65, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 141 }, | ||||
| { PROC_LINKS(list_all_functions_current_buffer, 0), "list_all_functions_current_buffer", 33,  "Creates a jump list of lines of the current buffer that appear to define or declare functions.", 94, "w:\\4ed\\code\\4coder_function_list.cpp", 36, 318 }, | ||||
| { PROC_LINKS(list_all_locations, 0), "list_all_locations", 18,  "Queries the user for a string and lists all exact case-sensitive matches found in all open buffers.", 99, "w:\\4ed\\code\\4coder_search.cpp", 29, 772 }, | ||||
| { PROC_LINKS(list_all_locations_case_insensitive, 0), "list_all_locations_case_insensitive", 35,  "Queries the user for a string and lists all exact case-insensitive matches found in all open buffers.", 101, "w:\\4ed\\code\\4coder_search.cpp", 29, 784 }, | ||||
| { PROC_LINKS(list_all_locations_of_identifier, 0), "list_all_locations_of_identifier", 32,  "Reads a token or word under the cursor and lists all exact case-sensitive mathces in all open buffers.", 102, "w:\\4ed\\code\\4coder_search.cpp", 29, 796 }, | ||||
| { PROC_LINKS(list_all_locations_of_identifier_case_insensitive, 0), "list_all_locations_of_identifier_case_insensitive", 49,  "Reads a token or word under the cursor and lists all exact case-insensitive mathces in all open buffers.", 104, "w:\\4ed\\code\\4coder_search.cpp", 29, 802 }, | ||||
| { PROC_LINKS(list_all_locations_of_selection, 0), "list_all_locations_of_selection", 31,  "Reads the string in the selected range and lists all exact case-sensitive mathces in all open buffers.", 102, "w:\\4ed\\code\\4coder_search.cpp", 29, 808 }, | ||||
| { PROC_LINKS(list_all_locations_of_selection_case_insensitive, 0), "list_all_locations_of_selection_case_insensitive", 48,  "Reads the string in the selected range and lists all exact case-insensitive mathces in all open buffers.", 104, "w:\\4ed\\code\\4coder_search.cpp", 29, 814 }, | ||||
| { PROC_LINKS(list_all_locations_of_type_definition, 0), "list_all_locations_of_type_definition", 37,  "Queries user for string, lists all locations of strings that appear to define a type whose name matches the input string.", 121, "w:\\4ed\\code\\4coder_search.cpp", 29, 820 }, | ||||
| { PROC_LINKS(list_all_locations_of_type_definition_of_identifier, 0), "list_all_locations_of_type_definition_of_identifier", 51,  "Reads a token or word under the cursor and lists all locations of strings that appear to define a type whose name matches it.", 125, "w:\\4ed\\code\\4coder_search.cpp", 29, 831 }, | ||||
| { PROC_LINKS(list_all_substring_locations, 0), "list_all_substring_locations", 28,  "Queries the user for a string and lists all case-sensitive substring matches found in all open buffers.", 103, "w:\\4ed\\code\\4coder_search.cpp", 29, 778 }, | ||||
| { PROC_LINKS(list_all_substring_locations_case_insensitive, 0), "list_all_substring_locations_case_insensitive", 45,  "Queries the user for a string and lists all case-insensitive substring matches found in all open buffers.", 105, "w:\\4ed\\code\\4coder_search.cpp", 29, 790 }, | ||||
| { PROC_LINKS(lister__activate, 0), "lister__activate", 16,  "A lister mode command that activates the list's action on the highlighted item.", 79, "w:\\4ed\\code\\4coder_lists.cpp", 28, 17 }, | ||||
| { PROC_LINKS(lister__backspace_text_field, 0), "lister__backspace_text_field", 28,  "A lister mode command that dispatches to the lister's backspace text field handler.", 83, "w:\\4ed\\code\\4coder_lists.cpp", 28, 43 }, | ||||
| { PROC_LINKS(lister__backspace_text_field__default, 0), "lister__backspace_text_field__default", 37,  "A lister mode command that backspaces one character from the text field.", 72, "w:\\4ed\\code\\4coder_lists.cpp", 28, 148 }, | ||||
| { PROC_LINKS(lister__backspace_text_field__file_path, 0), "lister__backspace_text_field__file_path", 39,  "A lister mode command that backspaces one character from the text field of a file system list.", 94, "w:\\4ed\\code\\4coder_lists.cpp", 28, 220 }, | ||||
| { PROC_LINKS(lister__mouse_press, 0), "lister__mouse_press", 19,  "A lister mode command that beings a click interaction with a list item under the mouse.", 87, "w:\\4ed\\code\\4coder_lists.cpp", 28, 88 }, | ||||
| { PROC_LINKS(lister__mouse_release, 0), "lister__mouse_release", 21,  "A lister mode command that ends a click interaction with a list item under the mouse, possibly activating it.", 109, "w:\\4ed\\code\\4coder_lists.cpp", 28, 100 }, | ||||
| { PROC_LINKS(lister__move_down, 0), "lister__move_down", 17,  "A lister mode command that dispatches to the lister's navigate down handler.", 76, "w:\\4ed\\code\\4coder_lists.cpp", 28, 63 }, | ||||
| { PROC_LINKS(lister__move_down__default, 0), "lister__move_down__default", 26,  "A lister mode command that moves the highlighted item one down in the list.", 75, "w:\\4ed\\code\\4coder_lists.cpp", 28, 179 }, | ||||
| { PROC_LINKS(lister__move_up, 0), "lister__move_up", 15,  "A lister mode command that dispatches to the lister's navigate up handler.", 74, "w:\\4ed\\code\\4coder_lists.cpp", 28, 53 }, | ||||
| { PROC_LINKS(lister__move_up__default, 0), "lister__move_up__default", 24,  "A lister mode command that moves the highlighted item one up in the list.", 73, "w:\\4ed\\code\\4coder_lists.cpp", 28, 163 }, | ||||
| { PROC_LINKS(lister__quit, 0), "lister__quit", 12,  "A lister mode command that quits the list without executing any actions.", 72, "w:\\4ed\\code\\4coder_lists.cpp", 28, 8 }, | ||||
| { PROC_LINKS(lister__repaint, 0), "lister__repaint", 15,  "A lister mode command that updates the lists UI data.", 53, "w:\\4ed\\code\\4coder_lists.cpp", 28, 117 }, | ||||
| { PROC_LINKS(lister__wheel_scroll, 0), "lister__wheel_scroll", 20,  "A lister mode command that scrolls the list in response to the mouse wheel.", 75, "w:\\4ed\\code\\4coder_lists.cpp", 28, 73 }, | ||||
| { PROC_LINKS(lister__write_character, 0), "lister__write_character", 23,  "A lister mode command that dispatches to the lister's write character handler.", 78, "w:\\4ed\\code\\4coder_lists.cpp", 28, 33 }, | ||||
| { PROC_LINKS(lister__write_character__default, 0), "lister__write_character__default", 32,  "A lister mode command that inserts a new character to the text field.", 69, "w:\\4ed\\code\\4coder_lists.cpp", 28, 128 }, | ||||
| { PROC_LINKS(lister__write_character__file_path, 0), "lister__write_character__file_path", 34,  "A lister mode command that inserts a character into the text field of a file system list.", 89, "w:\\4ed\\code\\4coder_lists.cpp", 28, 195 }, | ||||
| { PROC_LINKS(lister__write_character__fixed_list, 0), "lister__write_character__fixed_list", 35,  "A lister mode command that handles input for the fixed sure to kill list.", 73, "w:\\4ed\\code\\4coder_lists.cpp", 28, 255 }, | ||||
| { PROC_LINKS(load_project, 0), "load_project", 12,  "Looks for a project.4coder file in the current directory and tries to load it.  Looks in parent directories until a project file is found or there are no more parents.", 167, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1071 }, | ||||
| { PROC_LINKS(make_directory_query, 0), "make_directory_query", 20,  "Queries the user for a name and creates a new directory with the given name.", 76, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1138 }, | ||||
| { PROC_LINKS(move_down, 0), "move_down", 9,  "Moves the cursor down one line.", 31, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 256 }, | ||||
| { PROC_LINKS(move_down_10, 0), "move_down_10", 12,  "Moves the cursor down ten lines.", 32, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 268 }, | ||||
| { PROC_LINKS(move_down_textual, 0), "move_down_textual", 17,  "Moves down to the next line of actual text, regardless of line wrapping.", 72, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 274 }, | ||||
| { PROC_LINKS(move_left, 0), "move_left", 9,  "Moves the cursor one character to the left.", 43, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 305 }, | ||||
| { PROC_LINKS(move_line_down, 0), "move_line_down", 14,  "Swaps the line under the cursor with the line below it, and moves the cursor down with it.", 90, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1235 }, | ||||
| { PROC_LINKS(move_line_up, 0), "move_line_up", 12,  "Swaps the line under the cursor with the line above it, and moves the cursor up with it.", 88, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1171 }, | ||||
| { PROC_LINKS(move_right, 0), "move_right", 10,  "Moves the cursor one character to the right.", 44, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 314 }, | ||||
| { PROC_LINKS(move_up, 0), "move_up", 7,  "Moves the cursor up one line.", 29, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 250 }, | ||||
| { PROC_LINKS(move_up_10, 0), "move_up_10", 10,  "Moves the cursor up ten lines.", 30, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 262 }, | ||||
| { PROC_LINKS(newline_or_goto_position_direct, 0), "newline_or_goto_position_direct", 31,  "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 101 }, | ||||
| { PROC_LINKS(newline_or_goto_position_same_panel_direct, 0), "newline_or_goto_position_same_panel_direct", 42,  "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "w:\\4ed\\code\\4coder_jump_direct.cpp", 34, 116 }, | ||||
| { PROC_LINKS(newline_or_goto_position_same_panel_sticky, 0), "newline_or_goto_position_same_panel_sticky", 42,  "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 558 }, | ||||
| { PROC_LINKS(newline_or_goto_position_sticky, 0), "newline_or_goto_position_sticky", 31,  "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 543 }, | ||||
| { PROC_LINKS(open_all_code, 0), "open_all_code", 13,  "Open all code in the current directory. File types are determined by extensions. An extension is considered code based on the extensions specified in 4coder.config.", 164, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1055 }, | ||||
| { PROC_LINKS(open_all_code_recursive, 0), "open_all_code_recursive", 23,  "Works as open_all_code but also runs in all subdirectories.", 59, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1062 }, | ||||
| { PROC_LINKS(open_color_tweaker, 0), "open_color_tweaker", 18,  "Opens the 4coder theme selector list.", 37, "w:\\4ed\\code\\4coder_lists.cpp", 28, 791 }, | ||||
| { PROC_LINKS(open_file_in_quotes, 0), "open_file_in_quotes", 19,  "Reads a filename from surrounding '\"' characters and attempts to open the corresponding file.", 94, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1357 }, | ||||
| { PROC_LINKS(open_in_other, 0), "open_in_other", 13,  "Interactively opens a file in the other panel.", 46, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1508 }, | ||||
| { PROC_LINKS(open_long_braces, 0), "open_long_braces", 16,  "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 58 }, | ||||
| { PROC_LINKS(open_long_braces_break, 0), "open_long_braces_break", 22,  "At the cursor, insert a '{' and '}break;' separated by a blank line.", 68, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 74 }, | ||||
| { PROC_LINKS(open_long_braces_semicolon, 0), "open_long_braces_semicolon", 26,  "At the cursor, insert a '{' and '};' separated by a blank line.", 63, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 66 }, | ||||
| { PROC_LINKS(open_matching_file_cpp, 0), "open_matching_file_cpp", 22,  "If the current file is a *.cpp or *.h, attempts to open the corresponding *.h or *.cpp file in the other view.", 110, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1393 }, | ||||
| { PROC_LINKS(open_panel_hsplit, 0), "open_panel_hsplit", 17,  "Create a new panel by horizontally splitting the active panel.", 62, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 164 }, | ||||
| { PROC_LINKS(open_panel_vsplit, 0), "open_panel_vsplit", 17,  "Create a new panel by vertically splitting the active panel.", 60, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 155 }, | ||||
| { PROC_LINKS(page_down, 0), "page_down", 9,  "Scrolls the view down one view height and moves the cursor down one view height.", 80, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 294 }, | ||||
| { PROC_LINKS(page_up, 0), "page_up", 7,  "Scrolls the view up one view height and moves the cursor up one view height.", 76, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 285 }, | ||||
| { PROC_LINKS(paste, 0), "paste", 5,  "At the cursor, insert the text at the top of the clipboard.", 59, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 46 }, | ||||
| { PROC_LINKS(paste_and_indent, 0), "paste_and_indent", 16,  "Paste from the top of clipboard and run auto-indent on the newly pasted text.", 77, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 131 }, | ||||
| { PROC_LINKS(paste_next, 0), "paste_next", 10,  "If the previous command was paste or paste_next, replaces the paste range with the next text down on the clipboard, otherwise operates as the paste command.", 156, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 83 }, | ||||
| { PROC_LINKS(paste_next_and_indent, 0), "paste_next_and_indent", 21,  "Paste the next item on the clipboard and run auto-indent on the newly pasted text.", 82, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 138 }, | ||||
| { PROC_LINKS(place_in_scope, 0), "place_in_scope", 14,  "Wraps the code contained in the range between cursor and mark with a new curly brace scope.", 91, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 481 }, | ||||
| { PROC_LINKS(project_fkey_command, 0), "project_fkey_command", 20,  "Run an 'fkey command' configured in a project.4coder file.  Determines the index of the 'fkey command' by which function key or numeric key was pressed to trigger the command.", 175, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1078 }, | ||||
| { PROC_LINKS(project_go_to_root_directory, 0), "project_go_to_root_directory", 28,  "Changes 4coder's hot directory to the root directory of the currently loaded project. With no loaded project nothing hapepns.", 125, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1103 }, | ||||
| { PROC_LINKS(query_replace, 0), "query_replace", 13,  "Queries the user for two strings, and incrementally replaces every occurence of the first string with the second string.", 120, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 918 }, | ||||
| { PROC_LINKS(query_replace_identifier, 0), "query_replace_identifier", 24,  "Queries the user for a string, and incrementally replace every occurence of the word or token found at the cursor with the specified string.", 140, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 938 }, | ||||
| { PROC_LINKS(query_replace_selection, 0), "query_replace_selection", 23,  "Queries the user for a string, and incrementally replace every occurence of the string found in the selected range with the specified string.", 141, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 956 }, | ||||
| { PROC_LINKS(redo, 0), "redo", 4,  "Advances forewards through the undo history.", 44, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1465 }, | ||||
| { PROC_LINKS(reload_themes, 0), "reload_themes", 13,  "Loads all the theme files in the theme folder, replacing duplicates with the new theme data.", 92, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1485 }, | ||||
| { PROC_LINKS(remap_interactive, 0), "remap_interactive", 17,  "Switch to a named key binding map.", 34, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 213 }, | ||||
| { PROC_LINKS(rename_file_query, 0), "rename_file_query", 17,  "Queries the user for a new name and renames the file of the current buffer, altering the buffer's name too.", 107, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1096 }, | ||||
| { PROC_LINKS(reopen, 0), "reopen", 6,  "Reopen the current buffer from the hard drive.", 46, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1471 }, | ||||
| { PROC_LINKS(replace_in_range, 0), "replace_in_range", 16,  "Queries the user for two strings, and replaces all occurences of the first string in the range between the cursor and the mark with the second string.", 150, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 816 }, | ||||
| { PROC_LINKS(reverse_search, 0), "reverse_search", 14,  "Begins an incremental search up through the current buffer for a user specified string.", 87, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 787 }, | ||||
| { PROC_LINKS(reverse_search_identifier, 0), "reverse_search_identifier", 25,  "Begins an incremental search up through the current buffer for the word or token under the cursor.", 98, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 805 }, | ||||
| { PROC_LINKS(save, 0), "save", 4,  "Saves the current buffer.", 25, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1477 }, | ||||
| { PROC_LINKS(save_all_dirty_buffers, 0), "save_all_dirty_buffers", 22,  "Saves all buffers marked dirty (showing the '*' indicator).", 59, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1000 }, | ||||
| { PROC_LINKS(save_to_query, 0), "save_to_query", 13,  "Queries the user for a name and saves the contents of the current buffer, altering the buffer's name too.", 105, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1056 }, | ||||
| { PROC_LINKS(scope_absorb_down, 0), "scope_absorb_down", 17,  "If a scope is currently selected, and a statement or block statement is present below the current scope, the statement is moved into the scope.", 143, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 738 }, | ||||
| { PROC_LINKS(search, 0), "search", 6,  "Begins an incremental search down through the current buffer for a user specified string.", 89, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 780 }, | ||||
| { PROC_LINKS(search_identifier, 0), "search_identifier", 17,  "Begins an incremental search down through the current buffer for the word or token under the cursor.", 100, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 794 }, | ||||
| { PROC_LINKS(seek_alphanumeric_left, 0), "seek_alphanumeric_left", 22,  "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1227 }, | ||||
| { PROC_LINKS(seek_alphanumeric_or_camel_left, 0), "seek_alphanumeric_or_camel_left", 31,  "Seek left for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 106, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1239 }, | ||||
| { PROC_LINKS(seek_alphanumeric_or_camel_right, 0), "seek_alphanumeric_or_camel_right", 32,  "Seek right for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 107, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1233 }, | ||||
| { PROC_LINKS(seek_alphanumeric_right, 0), "seek_alphanumeric_right", 23,  "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1221 }, | ||||
| { PROC_LINKS(seek_beginning_of_line, 0), "seek_beginning_of_line", 22,  "Seeks the cursor to the beginning of the visual line.", 53, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1126 }, | ||||
| { PROC_LINKS(seek_beginning_of_textual_line, 0), "seek_beginning_of_textual_line", 30,  "Seeks the cursor to the beginning of the line across all text.", 62, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1108 }, | ||||
| { PROC_LINKS(seek_end_of_line, 0), "seek_end_of_line", 16,  "Seeks the cursor to the end of the visual line.", 47, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1137 }, | ||||
| { PROC_LINKS(seek_end_of_textual_line, 0), "seek_end_of_textual_line", 24,  "Seeks the cursor to the end of the line across all text.", 56, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1117 }, | ||||
| { PROC_LINKS(seek_token_left, 0), "seek_token_left", 15,  "Seek left for the next beginning of a token.", 44, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1203 }, | ||||
| { PROC_LINKS(seek_token_right, 0), "seek_token_right", 16,  "Seek right for the next end of a token.", 39, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1197 }, | ||||
| { PROC_LINKS(seek_white_or_token_left, 0), "seek_white_or_token_left", 24,  "Seek left for the next end of a token or boundary between whitespace and non-whitespace.", 88, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1215 }, | ||||
| { PROC_LINKS(seek_white_or_token_right, 0), "seek_white_or_token_right", 25,  "Seek right for the next end of a token or boundary between whitespace and non-whitespace.", 89, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1209 }, | ||||
| { PROC_LINKS(seek_whitespace_down, 0), "seek_whitespace_down", 20,  "Seeks the cursor down to the next blank line.", 45, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1099 }, | ||||
| { PROC_LINKS(seek_whitespace_down_end_line, 0), "seek_whitespace_down_end_line", 29,  "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1158 }, | ||||
| { PROC_LINKS(seek_whitespace_left, 0), "seek_whitespace_left", 20,  "Seek left for the next boundary between whitespace and non-whitespace.", 70, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1191 }, | ||||
| { PROC_LINKS(seek_whitespace_right, 0), "seek_whitespace_right", 21,  "Seek right for the next boundary between whitespace and non-whitespace.", 71, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1185 }, | ||||
| { PROC_LINKS(seek_whitespace_up, 0), "seek_whitespace_up", 18,  "Seeks the cursor up to the next blank line.", 43, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1090 }, | ||||
| { PROC_LINKS(seek_whitespace_up_end_line, 0), "seek_whitespace_up_end_line", 27,  "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1148 }, | ||||
| { PROC_LINKS(select_all, 0), "select_all", 10,  "Puts the cursor at the top of the file, and the mark at the bottom of the file.", 79, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 323 }, | ||||
| { PROC_LINKS(set_bindings_choose, 0), "set_bindings_choose", 19,  "Remap keybindings using the 'choose' mapping rule.", 50, "w:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 47 }, | ||||
| { PROC_LINKS(set_bindings_default, 0), "set_bindings_default", 20,  "Remap keybindings using the 'default' mapping rule.", 51, "w:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 61 }, | ||||
| { PROC_LINKS(set_bindings_mac_default, 0), "set_bindings_mac_default", 24,  "Remap keybindings using the 'mac-default' mapping rule.", 55, "w:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 75 }, | ||||
| { PROC_LINKS(set_mark, 0), "set_mark", 8,  "Sets the mark to the current position of the cursor.", 52, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 92 }, | ||||
| { PROC_LINKS(setup_build_bat, 0), "setup_build_bat", 15,  "Queries the user for several configuration options and initializes a new build batch script.", 92, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1488 }, | ||||
| { PROC_LINKS(setup_build_bat_and_sh, 0), "setup_build_bat_and_sh", 22,  "Queries the user for several configuration options and initializes a new build batch script.", 92, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1500 }, | ||||
| { PROC_LINKS(setup_build_sh, 0), "setup_build_sh", 14,  "Queries the user for several configuration options and initializes a new build shell script.", 92, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1494 }, | ||||
| { PROC_LINKS(setup_new_project, 0), "setup_new_project", 17,  "Queries the user for several configuration options and initializes a new 4coder project with build scripts for every OS.", 120, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1481 }, | ||||
| { PROC_LINKS(show_filebar, 0), "show_filebar", 12,  "Sets the current view to show it's filebar.", 43, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 470 }, | ||||
| { PROC_LINKS(show_scrollbar, 0), "show_scrollbar", 14,  "Sets the current view to show it's scrollbar.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 456 }, | ||||
| { PROC_LINKS(snipe_token_or_word, 0), "snipe_token_or_word", 19,  "Delete a single, whole token on or to the left of the cursor and post it to the clipboard.", 90, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1259 }, | ||||
| { PROC_LINKS(snipe_token_or_word_right, 0), "snipe_token_or_word_right", 25,  "Delete a single, whole token on or to the right of the cursor and post it to the clipboard.", 91, "w:\\4ed\\code\\4coder_seek.cpp", 27, 1265 }, | ||||
| { PROC_LINKS(suppress_mouse, 0), "suppress_mouse", 14,  "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 187 }, | ||||
| { PROC_LINKS(swap_buffers_between_panels, 0), "swap_buffers_between_panels", 27,  "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1417 }, | ||||
| { PROC_LINKS(to_lowercase, 0), "to_lowercase", 12,  "Converts all ascii text in the range between the cursor and the mark to lowercase.", 82, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 354 }, | ||||
| { PROC_LINKS(to_uppercase, 0), "to_uppercase", 12,  "Converts all ascii text in the range between the cursor and the mark to uppercase.", 82, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 334 }, | ||||
| { PROC_LINKS(toggle_filebar, 0), "toggle_filebar", 14,  "Toggles the visibility status of the current view's filebar.", 60, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 484 }, | ||||
| { PROC_LINKS(toggle_fullscreen, 0), "toggle_fullscreen", 17,  "Toggle fullscreen mode on or off.  The change(s) do not take effect until the next frame.", 89, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 205 }, | ||||
| { PROC_LINKS(toggle_line_wrap, 0), "toggle_line_wrap", 16,  "Toggles the current buffer's line wrapping status.", 50, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 493 }, | ||||
| { PROC_LINKS(toggle_mouse, 0), "toggle_mouse", 12,  "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 199 }, | ||||
| { PROC_LINKS(toggle_show_whitespace, 0), "toggle_show_whitespace", 22,  "Toggles the current buffer's whitespace visibility status.", 58, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 560 }, | ||||
| { PROC_LINKS(toggle_virtual_whitespace, 0), "toggle_virtual_whitespace", 25,  "Toggles the current buffer's virtual whitespace status.", 55, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 549 }, | ||||
| { PROC_LINKS(undo, 0), "undo", 4,  "Advances backwards through the undo history.", 44, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1459 }, | ||||
| { PROC_LINKS(view_buffer_other_panel, 0), "view_buffer_other_panel", 23,  "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1407 }, | ||||
| { PROC_LINKS(word_complete, 0), "word_complete", 13,  "Iteratively tries completing the word to the left of the cursor with other words in open buffers that have the same prefix string.", 130, "w:\\4ed\\code\\4coder_search.cpp", 29, 851 }, | ||||
| { PROC_LINKS(write_and_auto_tab, 0), "write_and_auto_tab", 18,  "Inserts a character and auto-indents the line on which the cursor sits.", 71, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 745 }, | ||||
| { PROC_LINKS(write_block, 0), "write_block", 11,  "At the cursor, insert a block comment.", 38, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 106 }, | ||||
| { PROC_LINKS(write_character, 0), "write_character", 15,  "Inserts whatever character was used to trigger this command.", 60, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 39 }, | ||||
| { PROC_LINKS(write_hack, 0), "write_hack", 10,  "At the cursor, insert a '// HACK' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 94 }, | ||||
| { PROC_LINKS(write_note, 0), "write_note", 10,  "At the cursor, insert a '// NOTE' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 100 }, | ||||
| { PROC_LINKS(write_todo, 0), "write_todo", 10,  "At the cursor, insert a '// TODO' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 88 }, | ||||
| { PROC_LINKS(write_underscore, 0), "write_underscore", 16,  "Inserts an underscore.", 22, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 48 }, | ||||
| { PROC_LINKS(write_zero_struct, 0), "write_zero_struct", 17,  "At the cursor, insert a ' = {0};'.", 34, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 112 }, | ||||
| }; | ||||
| static int32_t fcoder_metacmd_ID_allow_mouse = 0; | ||||
| static int32_t fcoder_metacmd_ID_auto_tab_line_at_cursor = 1; | ||||
|  | @ -519,149 +495,137 @@ static int32_t fcoder_metacmd_ID_interactive_open = 65; | |||
| static int32_t fcoder_metacmd_ID_interactive_open_or_new = 66; | ||||
| static int32_t fcoder_metacmd_ID_interactive_switch_buffer = 67; | ||||
| static int32_t fcoder_metacmd_ID_kill_buffer = 68; | ||||
| static int32_t fcoder_metacmd_ID_kill_rect = 69; | ||||
| static int32_t fcoder_metacmd_ID_left_adjust_view = 70; | ||||
| static int32_t fcoder_metacmd_ID_list_all_functions_current_buffer = 71; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations = 72; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_case_insensitive = 73; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_identifier = 74; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_identifier_case_insensitive = 75; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_selection = 76; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_selection_case_insensitive = 77; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_type_definition = 78; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_type_definition_of_identifier = 79; | ||||
| static int32_t fcoder_metacmd_ID_list_all_substring_locations = 80; | ||||
| static int32_t fcoder_metacmd_ID_list_all_substring_locations_case_insensitive = 81; | ||||
| static int32_t fcoder_metacmd_ID_lister__activate = 82; | ||||
| static int32_t fcoder_metacmd_ID_lister__backspace_text_field = 83; | ||||
| static int32_t fcoder_metacmd_ID_lister__backspace_text_field__default = 84; | ||||
| static int32_t fcoder_metacmd_ID_lister__backspace_text_field__file_path = 85; | ||||
| static int32_t fcoder_metacmd_ID_lister__mouse_press = 86; | ||||
| static int32_t fcoder_metacmd_ID_lister__mouse_release = 87; | ||||
| static int32_t fcoder_metacmd_ID_lister__move_down = 88; | ||||
| static int32_t fcoder_metacmd_ID_lister__move_down__default = 89; | ||||
| static int32_t fcoder_metacmd_ID_lister__move_up = 90; | ||||
| static int32_t fcoder_metacmd_ID_lister__move_up__default = 91; | ||||
| static int32_t fcoder_metacmd_ID_lister__quit = 92; | ||||
| static int32_t fcoder_metacmd_ID_lister__repaint = 93; | ||||
| static int32_t fcoder_metacmd_ID_lister__wheel_scroll = 94; | ||||
| static int32_t fcoder_metacmd_ID_lister__write_character = 95; | ||||
| static int32_t fcoder_metacmd_ID_lister__write_character__default = 96; | ||||
| static int32_t fcoder_metacmd_ID_lister__write_character__file_path = 97; | ||||
| static int32_t fcoder_metacmd_ID_lister__write_character__fixed_list = 98; | ||||
| static int32_t fcoder_metacmd_ID_load_project = 99; | ||||
| static int32_t fcoder_metacmd_ID_make_directory_query = 100; | ||||
| static int32_t fcoder_metacmd_ID_miblo_decrement_basic = 101; | ||||
| static int32_t fcoder_metacmd_ID_miblo_decrement_time_stamp = 102; | ||||
| static int32_t fcoder_metacmd_ID_miblo_decrement_time_stamp_minute = 103; | ||||
| static int32_t fcoder_metacmd_ID_miblo_increment_basic = 104; | ||||
| static int32_t fcoder_metacmd_ID_miblo_increment_time_stamp = 105; | ||||
| static int32_t fcoder_metacmd_ID_miblo_increment_time_stamp_minute = 106; | ||||
| static int32_t fcoder_metacmd_ID_move_down = 107; | ||||
| static int32_t fcoder_metacmd_ID_move_down_10 = 108; | ||||
| static int32_t fcoder_metacmd_ID_move_down_textual = 109; | ||||
| static int32_t fcoder_metacmd_ID_move_left = 110; | ||||
| static int32_t fcoder_metacmd_ID_move_line_down = 111; | ||||
| static int32_t fcoder_metacmd_ID_move_line_up = 112; | ||||
| static int32_t fcoder_metacmd_ID_move_right = 113; | ||||
| static int32_t fcoder_metacmd_ID_move_up = 114; | ||||
| static int32_t fcoder_metacmd_ID_move_up_10 = 115; | ||||
| static int32_t fcoder_metacmd_ID_multi_line_edit = 116; | ||||
| static int32_t fcoder_metacmd_ID_newline_or_goto_position_direct = 117; | ||||
| static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_direct = 118; | ||||
| static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_sticky = 119; | ||||
| static int32_t fcoder_metacmd_ID_newline_or_goto_position_sticky = 120; | ||||
| static int32_t fcoder_metacmd_ID_open_all_code = 121; | ||||
| static int32_t fcoder_metacmd_ID_open_all_code_recursive = 122; | ||||
| static int32_t fcoder_metacmd_ID_open_color_tweaker = 123; | ||||
| static int32_t fcoder_metacmd_ID_open_file_in_quotes = 124; | ||||
| static int32_t fcoder_metacmd_ID_open_in_other = 125; | ||||
| static int32_t fcoder_metacmd_ID_open_long_braces = 126; | ||||
| static int32_t fcoder_metacmd_ID_open_long_braces_break = 127; | ||||
| static int32_t fcoder_metacmd_ID_open_long_braces_semicolon = 128; | ||||
| static int32_t fcoder_metacmd_ID_open_matching_file_cpp = 129; | ||||
| static int32_t fcoder_metacmd_ID_open_panel_hsplit = 130; | ||||
| static int32_t fcoder_metacmd_ID_open_panel_vsplit = 131; | ||||
| static int32_t fcoder_metacmd_ID_page_down = 132; | ||||
| static int32_t fcoder_metacmd_ID_page_up = 133; | ||||
| static int32_t fcoder_metacmd_ID_paste = 134; | ||||
| static int32_t fcoder_metacmd_ID_paste_and_indent = 135; | ||||
| static int32_t fcoder_metacmd_ID_paste_next = 136; | ||||
| static int32_t fcoder_metacmd_ID_paste_next_and_indent = 137; | ||||
| static int32_t fcoder_metacmd_ID_place_in_scope = 138; | ||||
| static int32_t fcoder_metacmd_ID_project_fkey_command = 139; | ||||
| static int32_t fcoder_metacmd_ID_project_go_to_root_directory = 140; | ||||
| static int32_t fcoder_metacmd_ID_query_replace = 141; | ||||
| static int32_t fcoder_metacmd_ID_query_replace_identifier = 142; | ||||
| static int32_t fcoder_metacmd_ID_query_replace_selection = 143; | ||||
| static int32_t fcoder_metacmd_ID_redo = 144; | ||||
| static int32_t fcoder_metacmd_ID_reload_themes = 145; | ||||
| static int32_t fcoder_metacmd_ID_remap_interactive = 146; | ||||
| static int32_t fcoder_metacmd_ID_rename_file_query = 147; | ||||
| static int32_t fcoder_metacmd_ID_rename_parameter = 148; | ||||
| static int32_t fcoder_metacmd_ID_reopen = 149; | ||||
| static int32_t fcoder_metacmd_ID_replace_all_occurrences = 150; | ||||
| static int32_t fcoder_metacmd_ID_replace_in_range = 151; | ||||
| static int32_t fcoder_metacmd_ID_reverse_search = 152; | ||||
| static int32_t fcoder_metacmd_ID_reverse_search_identifier = 153; | ||||
| static int32_t fcoder_metacmd_ID_save = 154; | ||||
| static int32_t fcoder_metacmd_ID_save_all_dirty_buffers = 155; | ||||
| static int32_t fcoder_metacmd_ID_save_to_query = 156; | ||||
| static int32_t fcoder_metacmd_ID_scope_absorb_down = 157; | ||||
| static int32_t fcoder_metacmd_ID_search = 158; | ||||
| static int32_t fcoder_metacmd_ID_search_identifier = 159; | ||||
| static int32_t fcoder_metacmd_ID_seek_alphanumeric_left = 160; | ||||
| static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_left = 161; | ||||
| static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_right = 162; | ||||
| static int32_t fcoder_metacmd_ID_seek_alphanumeric_right = 163; | ||||
| static int32_t fcoder_metacmd_ID_seek_beginning_of_line = 164; | ||||
| static int32_t fcoder_metacmd_ID_seek_beginning_of_textual_line = 165; | ||||
| static int32_t fcoder_metacmd_ID_seek_end_of_line = 166; | ||||
| static int32_t fcoder_metacmd_ID_seek_end_of_textual_line = 167; | ||||
| static int32_t fcoder_metacmd_ID_seek_token_left = 168; | ||||
| static int32_t fcoder_metacmd_ID_seek_token_right = 169; | ||||
| static int32_t fcoder_metacmd_ID_seek_white_or_token_left = 170; | ||||
| static int32_t fcoder_metacmd_ID_seek_white_or_token_right = 171; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_down = 172; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_down_end_line = 173; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_left = 174; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_right = 175; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_up = 176; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_up_end_line = 177; | ||||
| static int32_t fcoder_metacmd_ID_select_all = 178; | ||||
| static int32_t fcoder_metacmd_ID_set_bindings_choose = 179; | ||||
| static int32_t fcoder_metacmd_ID_set_bindings_default = 180; | ||||
| static int32_t fcoder_metacmd_ID_set_bindings_mac_default = 181; | ||||
| static int32_t fcoder_metacmd_ID_set_mark = 182; | ||||
| static int32_t fcoder_metacmd_ID_setup_build_bat = 183; | ||||
| static int32_t fcoder_metacmd_ID_setup_build_bat_and_sh = 184; | ||||
| static int32_t fcoder_metacmd_ID_setup_build_sh = 185; | ||||
| static int32_t fcoder_metacmd_ID_setup_new_project = 186; | ||||
| static int32_t fcoder_metacmd_ID_show_filebar = 187; | ||||
| static int32_t fcoder_metacmd_ID_show_scrollbar = 188; | ||||
| static int32_t fcoder_metacmd_ID_snipe_token_or_word = 189; | ||||
| static int32_t fcoder_metacmd_ID_snipe_token_or_word_right = 190; | ||||
| static int32_t fcoder_metacmd_ID_suppress_mouse = 191; | ||||
| static int32_t fcoder_metacmd_ID_swap_buffers_between_panels = 192; | ||||
| static int32_t fcoder_metacmd_ID_to_lowercase = 193; | ||||
| static int32_t fcoder_metacmd_ID_to_uppercase = 194; | ||||
| static int32_t fcoder_metacmd_ID_toggle_filebar = 195; | ||||
| static int32_t fcoder_metacmd_ID_toggle_fullscreen = 196; | ||||
| static int32_t fcoder_metacmd_ID_toggle_line_wrap = 197; | ||||
| static int32_t fcoder_metacmd_ID_toggle_mouse = 198; | ||||
| static int32_t fcoder_metacmd_ID_toggle_show_whitespace = 199; | ||||
| static int32_t fcoder_metacmd_ID_toggle_virtual_whitespace = 200; | ||||
| static int32_t fcoder_metacmd_ID_undo = 201; | ||||
| static int32_t fcoder_metacmd_ID_view_buffer_other_panel = 202; | ||||
| static int32_t fcoder_metacmd_ID_word_complete = 203; | ||||
| static int32_t fcoder_metacmd_ID_write_and_auto_tab = 204; | ||||
| static int32_t fcoder_metacmd_ID_write_block = 205; | ||||
| static int32_t fcoder_metacmd_ID_write_character = 206; | ||||
| static int32_t fcoder_metacmd_ID_write_explicit_enum_flags = 207; | ||||
| static int32_t fcoder_metacmd_ID_write_explicit_enum_values = 208; | ||||
| static int32_t fcoder_metacmd_ID_write_hack = 209; | ||||
| static int32_t fcoder_metacmd_ID_write_note = 210; | ||||
| static int32_t fcoder_metacmd_ID_write_todo = 211; | ||||
| static int32_t fcoder_metacmd_ID_write_underscore = 212; | ||||
| static int32_t fcoder_metacmd_ID_write_zero_struct = 213; | ||||
| static int32_t fcoder_metacmd_ID_left_adjust_view = 69; | ||||
| static int32_t fcoder_metacmd_ID_list_all_functions_current_buffer = 70; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations = 71; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_case_insensitive = 72; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_identifier = 73; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_identifier_case_insensitive = 74; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_selection = 75; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_selection_case_insensitive = 76; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_type_definition = 77; | ||||
| static int32_t fcoder_metacmd_ID_list_all_locations_of_type_definition_of_identifier = 78; | ||||
| static int32_t fcoder_metacmd_ID_list_all_substring_locations = 79; | ||||
| static int32_t fcoder_metacmd_ID_list_all_substring_locations_case_insensitive = 80; | ||||
| static int32_t fcoder_metacmd_ID_lister__activate = 81; | ||||
| static int32_t fcoder_metacmd_ID_lister__backspace_text_field = 82; | ||||
| static int32_t fcoder_metacmd_ID_lister__backspace_text_field__default = 83; | ||||
| static int32_t fcoder_metacmd_ID_lister__backspace_text_field__file_path = 84; | ||||
| static int32_t fcoder_metacmd_ID_lister__mouse_press = 85; | ||||
| static int32_t fcoder_metacmd_ID_lister__mouse_release = 86; | ||||
| static int32_t fcoder_metacmd_ID_lister__move_down = 87; | ||||
| static int32_t fcoder_metacmd_ID_lister__move_down__default = 88; | ||||
| static int32_t fcoder_metacmd_ID_lister__move_up = 89; | ||||
| static int32_t fcoder_metacmd_ID_lister__move_up__default = 90; | ||||
| static int32_t fcoder_metacmd_ID_lister__quit = 91; | ||||
| static int32_t fcoder_metacmd_ID_lister__repaint = 92; | ||||
| static int32_t fcoder_metacmd_ID_lister__wheel_scroll = 93; | ||||
| static int32_t fcoder_metacmd_ID_lister__write_character = 94; | ||||
| static int32_t fcoder_metacmd_ID_lister__write_character__default = 95; | ||||
| static int32_t fcoder_metacmd_ID_lister__write_character__file_path = 96; | ||||
| static int32_t fcoder_metacmd_ID_lister__write_character__fixed_list = 97; | ||||
| static int32_t fcoder_metacmd_ID_load_project = 98; | ||||
| static int32_t fcoder_metacmd_ID_make_directory_query = 99; | ||||
| static int32_t fcoder_metacmd_ID_move_down = 100; | ||||
| static int32_t fcoder_metacmd_ID_move_down_10 = 101; | ||||
| static int32_t fcoder_metacmd_ID_move_down_textual = 102; | ||||
| static int32_t fcoder_metacmd_ID_move_left = 103; | ||||
| static int32_t fcoder_metacmd_ID_move_line_down = 104; | ||||
| static int32_t fcoder_metacmd_ID_move_line_up = 105; | ||||
| static int32_t fcoder_metacmd_ID_move_right = 106; | ||||
| static int32_t fcoder_metacmd_ID_move_up = 107; | ||||
| static int32_t fcoder_metacmd_ID_move_up_10 = 108; | ||||
| static int32_t fcoder_metacmd_ID_newline_or_goto_position_direct = 109; | ||||
| static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_direct = 110; | ||||
| static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel_sticky = 111; | ||||
| static int32_t fcoder_metacmd_ID_newline_or_goto_position_sticky = 112; | ||||
| static int32_t fcoder_metacmd_ID_open_all_code = 113; | ||||
| static int32_t fcoder_metacmd_ID_open_all_code_recursive = 114; | ||||
| static int32_t fcoder_metacmd_ID_open_color_tweaker = 115; | ||||
| static int32_t fcoder_metacmd_ID_open_file_in_quotes = 116; | ||||
| static int32_t fcoder_metacmd_ID_open_in_other = 117; | ||||
| static int32_t fcoder_metacmd_ID_open_long_braces = 118; | ||||
| static int32_t fcoder_metacmd_ID_open_long_braces_break = 119; | ||||
| static int32_t fcoder_metacmd_ID_open_long_braces_semicolon = 120; | ||||
| static int32_t fcoder_metacmd_ID_open_matching_file_cpp = 121; | ||||
| static int32_t fcoder_metacmd_ID_open_panel_hsplit = 122; | ||||
| static int32_t fcoder_metacmd_ID_open_panel_vsplit = 123; | ||||
| static int32_t fcoder_metacmd_ID_page_down = 124; | ||||
| static int32_t fcoder_metacmd_ID_page_up = 125; | ||||
| static int32_t fcoder_metacmd_ID_paste = 126; | ||||
| static int32_t fcoder_metacmd_ID_paste_and_indent = 127; | ||||
| static int32_t fcoder_metacmd_ID_paste_next = 128; | ||||
| static int32_t fcoder_metacmd_ID_paste_next_and_indent = 129; | ||||
| static int32_t fcoder_metacmd_ID_place_in_scope = 130; | ||||
| static int32_t fcoder_metacmd_ID_project_fkey_command = 131; | ||||
| static int32_t fcoder_metacmd_ID_project_go_to_root_directory = 132; | ||||
| static int32_t fcoder_metacmd_ID_query_replace = 133; | ||||
| static int32_t fcoder_metacmd_ID_query_replace_identifier = 134; | ||||
| static int32_t fcoder_metacmd_ID_query_replace_selection = 135; | ||||
| static int32_t fcoder_metacmd_ID_redo = 136; | ||||
| static int32_t fcoder_metacmd_ID_reload_themes = 137; | ||||
| static int32_t fcoder_metacmd_ID_remap_interactive = 138; | ||||
| static int32_t fcoder_metacmd_ID_rename_file_query = 139; | ||||
| static int32_t fcoder_metacmd_ID_reopen = 140; | ||||
| static int32_t fcoder_metacmd_ID_replace_in_range = 141; | ||||
| static int32_t fcoder_metacmd_ID_reverse_search = 142; | ||||
| static int32_t fcoder_metacmd_ID_reverse_search_identifier = 143; | ||||
| static int32_t fcoder_metacmd_ID_save = 144; | ||||
| static int32_t fcoder_metacmd_ID_save_all_dirty_buffers = 145; | ||||
| static int32_t fcoder_metacmd_ID_save_to_query = 146; | ||||
| static int32_t fcoder_metacmd_ID_scope_absorb_down = 147; | ||||
| static int32_t fcoder_metacmd_ID_search = 148; | ||||
| static int32_t fcoder_metacmd_ID_search_identifier = 149; | ||||
| static int32_t fcoder_metacmd_ID_seek_alphanumeric_left = 150; | ||||
| static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_left = 151; | ||||
| static int32_t fcoder_metacmd_ID_seek_alphanumeric_or_camel_right = 152; | ||||
| static int32_t fcoder_metacmd_ID_seek_alphanumeric_right = 153; | ||||
| static int32_t fcoder_metacmd_ID_seek_beginning_of_line = 154; | ||||
| static int32_t fcoder_metacmd_ID_seek_beginning_of_textual_line = 155; | ||||
| static int32_t fcoder_metacmd_ID_seek_end_of_line = 156; | ||||
| static int32_t fcoder_metacmd_ID_seek_end_of_textual_line = 157; | ||||
| static int32_t fcoder_metacmd_ID_seek_token_left = 158; | ||||
| static int32_t fcoder_metacmd_ID_seek_token_right = 159; | ||||
| static int32_t fcoder_metacmd_ID_seek_white_or_token_left = 160; | ||||
| static int32_t fcoder_metacmd_ID_seek_white_or_token_right = 161; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_down = 162; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_down_end_line = 163; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_left = 164; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_right = 165; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_up = 166; | ||||
| static int32_t fcoder_metacmd_ID_seek_whitespace_up_end_line = 167; | ||||
| static int32_t fcoder_metacmd_ID_select_all = 168; | ||||
| static int32_t fcoder_metacmd_ID_set_bindings_choose = 169; | ||||
| static int32_t fcoder_metacmd_ID_set_bindings_default = 170; | ||||
| static int32_t fcoder_metacmd_ID_set_bindings_mac_default = 171; | ||||
| static int32_t fcoder_metacmd_ID_set_mark = 172; | ||||
| static int32_t fcoder_metacmd_ID_setup_build_bat = 173; | ||||
| static int32_t fcoder_metacmd_ID_setup_build_bat_and_sh = 174; | ||||
| static int32_t fcoder_metacmd_ID_setup_build_sh = 175; | ||||
| static int32_t fcoder_metacmd_ID_setup_new_project = 176; | ||||
| static int32_t fcoder_metacmd_ID_show_filebar = 177; | ||||
| static int32_t fcoder_metacmd_ID_show_scrollbar = 178; | ||||
| static int32_t fcoder_metacmd_ID_snipe_token_or_word = 179; | ||||
| static int32_t fcoder_metacmd_ID_snipe_token_or_word_right = 180; | ||||
| static int32_t fcoder_metacmd_ID_suppress_mouse = 181; | ||||
| static int32_t fcoder_metacmd_ID_swap_buffers_between_panels = 182; | ||||
| static int32_t fcoder_metacmd_ID_to_lowercase = 183; | ||||
| static int32_t fcoder_metacmd_ID_to_uppercase = 184; | ||||
| static int32_t fcoder_metacmd_ID_toggle_filebar = 185; | ||||
| static int32_t fcoder_metacmd_ID_toggle_fullscreen = 186; | ||||
| static int32_t fcoder_metacmd_ID_toggle_line_wrap = 187; | ||||
| static int32_t fcoder_metacmd_ID_toggle_mouse = 188; | ||||
| static int32_t fcoder_metacmd_ID_toggle_show_whitespace = 189; | ||||
| static int32_t fcoder_metacmd_ID_toggle_virtual_whitespace = 190; | ||||
| static int32_t fcoder_metacmd_ID_undo = 191; | ||||
| static int32_t fcoder_metacmd_ID_view_buffer_other_panel = 192; | ||||
| static int32_t fcoder_metacmd_ID_word_complete = 193; | ||||
| static int32_t fcoder_metacmd_ID_write_and_auto_tab = 194; | ||||
| static int32_t fcoder_metacmd_ID_write_block = 195; | ||||
| static int32_t fcoder_metacmd_ID_write_character = 196; | ||||
| static int32_t fcoder_metacmd_ID_write_hack = 197; | ||||
| static int32_t fcoder_metacmd_ID_write_note = 198; | ||||
| static int32_t fcoder_metacmd_ID_write_todo = 199; | ||||
| static int32_t fcoder_metacmd_ID_write_underscore = 200; | ||||
| static int32_t fcoder_metacmd_ID_write_zero_struct = 201; | ||||
| #endif | ||||
|  |  | |||
|  | @ -109,22 +109,22 @@ init_marker_list(Application_Links *app, Partition *scratch, Heap *heap, Buffer_ | |||
|         range_index_buffer_id_pairs[i].key = jumps.jumps[buffer_ranges.ranges[i].first].jump_buffer_id; | ||||
|     } | ||||
|     sort_pairs_by_key(range_index_buffer_id_pairs, buffer_ranges.count); | ||||
|     Range_Array grouped_buffer_ranges = get_ranges_of_duplicate_keys(scratch, | ||||
|                                                                      &range_index_buffer_id_pairs->key, | ||||
|                                                                      sizeof(*range_index_buffer_id_pairs), | ||||
|                                                                      buffer_ranges.count); | ||||
|     Range_Array scoped_buffer_ranges = get_ranges_of_duplicate_keys(scratch, | ||||
|                                                                     &range_index_buffer_id_pairs->key, | ||||
|                                                                     sizeof(*range_index_buffer_id_pairs), | ||||
|                                                                     buffer_ranges.count); | ||||
|      | ||||
|     Sticky_Jump_Stored *stored = push_array(scratch, Sticky_Jump_Stored, jumps.count); | ||||
|      | ||||
|     Managed_Group group_array[2] = {0}; | ||||
|     group_array[0] = buffer_get_managed_group(app, buffer_id); | ||||
|     Managed_Scope scope_array[2] = {0}; | ||||
|     scope_array[0] = buffer_get_managed_scope(app, buffer_id); | ||||
|      | ||||
|     for (int32_t i = 0; i < grouped_buffer_ranges.count; i += 1){ | ||||
|         Range buffer_range_indices = grouped_buffer_ranges.ranges[i]; | ||||
|     for (int32_t i = 0; i < scoped_buffer_ranges.count; i += 1){ | ||||
|         Range buffer_range_indices = scoped_buffer_ranges.ranges[i]; | ||||
|          | ||||
|         Temp_Memory marker_temp = begin_temp_memory(scratch); | ||||
|         Marker *markers = push_array(scratch, Marker, 0); | ||||
|         int32_t total_jump_count = 0; | ||||
|         uint32_t total_jump_count = 0; | ||||
|         Buffer_ID target_buffer_id = 0; | ||||
|         for (int32_t j = buffer_range_indices.first; | ||||
|              j < buffer_range_indices.one_past_last; | ||||
|  | @ -147,18 +147,22 @@ init_marker_list(Application_Links *app, Partition *scratch, Heap *heap, Buffer_ | |||
|             } | ||||
|         } | ||||
|          | ||||
|         group_array[1] = buffer_get_managed_group(app, target_buffer_id); | ||||
|         Managed_Group group = get_intersected_managed_group(app, group_array, ArrayCount(group_array)); | ||||
|         Managed_Object marker_handle = buffer_markers_alloc(app, target_buffer_id, total_jump_count, &group); | ||||
|         managed_object_write(app, marker_handle, 0, total_jump_count*sizeof(Marker), markers); | ||||
|         scope_array[1] = buffer_get_managed_scope(app, target_buffer_id); | ||||
|         Managed_Scope scope = get_managed_scope_with_multiple_dependencies(app, scope_array, ArrayCount(scope_array)); | ||||
|         Managed_Object marker_handle = alloc_buffer_markers_on_buffer(app, target_buffer_id, total_jump_count, &scope); | ||||
|         managed_object_store_data(app, marker_handle, 0, total_jump_count, markers); | ||||
|         end_temp_memory(marker_temp); | ||||
|          | ||||
|         Assert(managed_object_get_item_size(app, marker_handle) == sizeof(Marker)); | ||||
|         Assert(managed_object_get_item_count(app, marker_handle) == total_jump_count); | ||||
|         Assert(managed_object_get_type(app, marker_handle) == ManagedObjectType_Markers); | ||||
|          | ||||
|         sticky_jump_marker_handle_loc = managed_variable_create_or_get_id(app, sticky_jump_marker_handle_var, 0); | ||||
|         managed_variable_set(app, group, sticky_jump_marker_handle_loc, marker_handle); | ||||
|         managed_variable_set(app, scope, sticky_jump_marker_handle_loc, marker_handle); | ||||
|     } | ||||
|      | ||||
|     Managed_Object stored_jump_array = managed_memory_alloc(app, group_array[0], sizeof(Sticky_Jump_Stored)*jumps.count); | ||||
|     managed_object_write(app, stored_jump_array, 0, sizeof(Sticky_Jump_Stored)*jumps.count, stored); | ||||
|     Managed_Object stored_jump_array = alloc_managed_memory_in_scope(app, scope_array[0], sizeof(Sticky_Jump_Stored), jumps.count); | ||||
|     managed_object_store_data(app, stored_jump_array, 0, jumps.count, stored); | ||||
|      | ||||
|     end_temp_memory(temp); | ||||
|      | ||||
|  | @ -222,7 +226,7 @@ static bool32 | |||
| get_stored_jump_from_list(Application_Links *app, Marker_List *list, int32_t index, | ||||
|                           Sticky_Jump_Stored *stored_out){ | ||||
|     Sticky_Jump_Stored stored = {0}; | ||||
|     if (managed_object_read(app, list->jump_array, index*sizeof(stored), sizeof(stored), &stored)){ | ||||
|     if (managed_object_load_data(app, list->jump_array, index, 1, &stored)){ | ||||
|         *stored_out = stored; | ||||
|         return(true); | ||||
|     } | ||||
|  | @ -234,7 +238,7 @@ get_all_stored_jumps_from_list(Application_Links *app, Partition *arena, Marker_ | |||
|     Temp_Memory restore_point = begin_temp_memory(arena); | ||||
|     Sticky_Jump_Stored *stored = push_array(arena, Sticky_Jump_Stored, list->jump_count); | ||||
|     if (stored != 0){ | ||||
|         if (!managed_object_read(app, list->jump_array, 0, sizeof(*stored)*list->jump_count, stored)){ | ||||
|         if (!managed_object_load_data(app, list->jump_array, 0, list->jump_count, stored)){ | ||||
|             stored = 0; | ||||
|             end_temp_memory(restore_point); | ||||
|         } | ||||
|  | @ -248,16 +252,16 @@ get_jump_from_list(Application_Links *app, Marker_List *list, int32_t index, ID_ | |||
|     if (get_stored_jump_from_list(app, list, index, &stored)){ | ||||
|         Buffer_ID target_buffer_id = stored.jump_buffer_id; | ||||
|          | ||||
|         Managed_Group group_array[2] = {0}; | ||||
|         group_array[0] = buffer_get_managed_group(app, list->buffer_id); | ||||
|         group_array[1] = buffer_get_managed_group(app, target_buffer_id); | ||||
|         Managed_Group group = get_intersected_managed_group(app, group_array, ArrayCount(group_array)); | ||||
|         Managed_Scope scope_array[2] = {0}; | ||||
|         scope_array[0] = buffer_get_managed_scope(app, list->buffer_id); | ||||
|         scope_array[1] = buffer_get_managed_scope(app, target_buffer_id); | ||||
|         Managed_Scope scope = get_managed_scope_with_multiple_dependencies(app, scope_array, ArrayCount(scope_array)); | ||||
|          | ||||
|         sticky_jump_marker_handle_loc = managed_variable_create_or_get_id(app, sticky_jump_marker_handle_var, 0); | ||||
|         Managed_Object marker_array = 0; | ||||
|         if (managed_variable_get(app, group, sticky_jump_marker_handle_loc, &marker_array)){ | ||||
|         if (managed_variable_get(app, scope, sticky_jump_marker_handle_loc, &marker_array)){ | ||||
|             Marker marker = {0}; | ||||
|             managed_object_read(app, marker_array, stored.index_into_marker_array*sizeof(Marker), 1*sizeof(Marker), &marker); | ||||
|             managed_object_load_data(app, marker_array, stored.index_into_marker_array, 1, &marker); | ||||
|             location->buffer_id = target_buffer_id; | ||||
|             location->pos = marker.pos; | ||||
|             return(true); | ||||
|  |  | |||
|  | @ -841,6 +841,7 @@ main(int argc, char **argv){ | |||
|             char *fixed_name = push_array(part, char, source_name_len*2 + 1); | ||||
|             String s = make_string_cap(fixed_name, 0, source_name_len*2 + 1); | ||||
|             copy(&s, entry->source_name); | ||||
|             int32_t unescaped_size = s.size; | ||||
|             replace_str(&s, "\\", "\\\\"); | ||||
|             terminate_with_null(&s); | ||||
|              | ||||
|  | @ -849,7 +850,7 @@ main(int argc, char **argv){ | |||
|                     str_to_l_c(entry->name), | ||||
|                     str_to_l_c(entry->name), entry->name.size, | ||||
|                     str_to_l_c(entry->docstring.doc), entry->docstring.doc.size, | ||||
|                     s.str, s.size, entry->line_number); | ||||
|                     s.str, unescaped_size, entry->line_number); | ||||
|             end_temp_memory(temp); | ||||
|         } | ||||
|         fprintf(out, "};\n"); | ||||
|  |  | |||
|  | @ -576,6 +576,19 @@ buffered_print_flush(Application_Links *app, Partition *part, Temp_Memory temp, | |||
|     buffer_replace_range(app, output_buffer, size, size, str, write_size); | ||||
| } | ||||
| 
 | ||||
| static char* | ||||
| buffered_memory_reserve(Application_Links *app, Partition *part, Temp_Memory temp, Buffer_Summary *output_buffer, | ||||
|                         int32_t length){ | ||||
|     char *mem = push_array(part, char, length); | ||||
|     if (mem == 0){ | ||||
|         buffered_print_flush(app, part, temp, output_buffer); | ||||
|         end_temp_memory(temp); | ||||
|         mem = push_array(part, char, length); | ||||
|     } | ||||
|     Assert(mem != 0); | ||||
|     return(mem); | ||||
| } | ||||
| 
 | ||||
| static void | ||||
| buffered_print_match_jump_line(Application_Links *app, Partition *part, Temp_Memory temp, Partition *line_part, Buffer_Summary *output_buffer, Buffer_Summary *match_buffer, Partial_Cursor word_pos){ | ||||
|     char *file_name = match_buffer->buffer_name; | ||||
|  | @ -591,16 +604,7 @@ buffered_print_match_jump_line(Application_Links *app, Partition *part, Temp_Mem | |||
|          | ||||
|         int32_t str_len = file_len + 1 + line_num_len + 1 + column_num_len + 1 + 1 + line_str.size + 1; | ||||
|          | ||||
|         char *spare = push_array(part, char, str_len); | ||||
|          | ||||
|         if (spare == 0){ | ||||
|             buffered_print_flush(app, part, temp, output_buffer); | ||||
|              | ||||
|             end_temp_memory(temp); | ||||
|             temp = begin_temp_memory(part); | ||||
|              | ||||
|             spare = push_array(part, char, str_len); | ||||
|         } | ||||
|         char *spare = buffered_memory_reserve(app, part, temp, output_buffer, str_len); | ||||
|          | ||||
|         String out_line = make_string_cap(spare, 0, str_len); | ||||
|         append_ss(&out_line, make_string(file_name, file_len)); | ||||
|  | @ -644,15 +648,32 @@ list__parameters(Application_Links *app, Heap *heap, Partition *scratch, | |||
|     Temp_Memory all_temp = begin_temp_memory(scratch); | ||||
|     Partition line_part = partition_sub_part(scratch, (4 << 10)); | ||||
|     Temp_Memory temp = begin_temp_memory(scratch); | ||||
|     Buffer_ID prev_match_id = 0; | ||||
|     bool32 no_matches = true; | ||||
|     for (Search_Match match = search_next_match(app, &set, &iter); | ||||
|          match.found_match; | ||||
|          match = search_next_match(app, &set, &iter)){ | ||||
|         Partial_Cursor word_pos = {0}; | ||||
|         if (buffer_compute_cursor(app, &match.buffer, seek_pos(match.start), &word_pos)){ | ||||
|             if (prev_match_id != match.buffer.buffer_id){ | ||||
|                 if (prev_match_id != 0){ | ||||
|                     char *newline = buffered_memory_reserve(app, scratch, temp, &search_buffer, 1); | ||||
|                     *newline = '\n'; | ||||
|                 } | ||||
|                 prev_match_id = match.buffer.buffer_id; | ||||
|             } | ||||
|             buffered_print_match_jump_line(app, scratch, temp, &line_part, &search_buffer, &match.buffer, word_pos); | ||||
|             no_matches = false; | ||||
|         } | ||||
|     } | ||||
|      | ||||
|     if (no_matches){ | ||||
|         char no_matches_message[] = "no matches\n"; | ||||
|         int32_t no_matches_message_length = sizeof(no_matches_message) - 1; | ||||
|         char *no_matches_message_out = buffered_memory_reserve(app, scratch, temp, &search_buffer, no_matches_message_length); | ||||
|         memcpy(no_matches_message_out, no_matches_message, no_matches_message_length); | ||||
|     } | ||||
|      | ||||
|     buffered_print_flush(app, scratch, temp, &search_buffer); | ||||
|     end_temp_memory(all_temp); | ||||
|      | ||||
|  | @ -683,7 +704,7 @@ list_query__parameters(Application_Links *app, Heap *heap, Partition *scratch, | |||
|                        bool32 substrings, bool32 case_insensitive){ | ||||
|     char space[1024]; | ||||
|     String str = get_query_string(app, "List Locations For: ", space, sizeof(space)); | ||||
|     if (str.str != 0){ | ||||
|     if (str.size > 0){ | ||||
|         change_active_panel(app); | ||||
|         list_single__parameters(app, heap, scratch, str, substrings, case_insensitive); | ||||
|     } | ||||
|  | @ -697,7 +718,7 @@ list_identifier__parameters(Application_Links *app, Heap *heap, Partition *scrat | |||
|     if (!buffer.exists) return; | ||||
|     char space[512]; | ||||
|     String str = get_token_or_word_under_pos(app, &buffer, view.cursor.pos, space, sizeof(space)); | ||||
|     if (str.str != 0){ | ||||
|     if (str.size > 0){ | ||||
|         change_active_panel(app); | ||||
|         list_single__parameters(app, heap, scratch, str, substrings, case_insensitive); | ||||
|     } | ||||
|  | @ -709,7 +730,7 @@ list_selected_range__parameters(Application_Links *app, Heap *heap, Partition *s | |||
|     View_Summary view = get_active_view(app, AccessProtected); | ||||
|     Temp_Memory temp = begin_temp_memory(scratch); | ||||
|     String str = get_string_in_view_range(app, scratch, &view); | ||||
|     if (str.str != 0){ | ||||
|     if (str.size > 0){ | ||||
|         change_active_panel(app); | ||||
|         list_single__parameters(app, heap, scratch, str, substrings, case_insensitive); | ||||
|     } | ||||
|  | @ -721,13 +742,17 @@ list_type_definition__parameters(Application_Links *app, Heap *heap, Partition * | |||
|                                  String str){ | ||||
|     Temp_Memory temp = begin_temp_memory(scratch); | ||||
|      | ||||
|     String match_strings[6]; | ||||
|     match_strings[0] = build_string(scratch, "struct ", str, "{"); | ||||
|     match_strings[1] = build_string(scratch, "struct ", str, "\n{"); | ||||
|     match_strings[2] = build_string(scratch, "union " , str, "{"); | ||||
|     match_strings[3] = build_string(scratch, "union " , str, "\n{"); | ||||
|     match_strings[4] = build_string(scratch, "enum "  , str, "{"); | ||||
|     match_strings[5] = build_string(scratch, "enum "  , str, "\n{"); | ||||
|     String match_strings[9]; | ||||
|     int32_t i = 0; | ||||
|     match_strings[i++] = build_string(scratch, "struct ", str, "{"); | ||||
|     match_strings[i++] = build_string(scratch, "struct ", str, "\n{"); | ||||
|     match_strings[i++] = build_string(scratch, "struct ", str, " {"); | ||||
|     match_strings[i++] = build_string(scratch, "union " , str, "{"); | ||||
|     match_strings[i++] = build_string(scratch, "union " , str, "\n{"); | ||||
|     match_strings[i++] = build_string(scratch, "union " , str, " {"); | ||||
|     match_strings[i++] = build_string(scratch, "enum "  , str, "{"); | ||||
|     match_strings[i++] = build_string(scratch, "enum "  , str, "\n{"); | ||||
|     match_strings[i++] = build_string(scratch, "enum "  , str, " {"); | ||||
|      | ||||
|     list__parameters(app, heap, scratch, | ||||
|                      match_strings, ArrayCount(match_strings), 0); | ||||
|  | @ -797,7 +822,7 @@ CUSTOM_DOC("Queries user for string, lists all locations of strings that appear | |||
| { | ||||
|     char space[1024]; | ||||
|     String str = get_query_string(app, "List Definitions For: ", space, sizeof(space)); | ||||
|     if (str.str != 0){ | ||||
|     if (str.size > 0){ | ||||
|         change_active_panel(app); | ||||
|         list_type_definition__parameters(app, &global_heap, &global_part, str); | ||||
|     } | ||||
|  | @ -810,7 +835,7 @@ CUSTOM_DOC("Reads a token or word under the cursor and lists all locations of st | |||
|     Buffer_Summary buffer = get_buffer(app, view.buffer_id, AccessProtected); | ||||
|     char space[512]; | ||||
|     String str = get_token_or_word_under_pos(app, &buffer, view.cursor.pos, space, sizeof(space) - 1); | ||||
|     if (str.str != 0){ | ||||
|     if (str.size > 0){ | ||||
|         change_active_panel(app); | ||||
|         list_type_definition__parameters(app, &global_heap, &global_part, str); | ||||
|     } | ||||
|  | @ -834,14 +859,14 @@ CUSTOM_DOC("Iteratively tries completing the word to the left of the cursor with | |||
|     if (buffer.exists){ | ||||
|         int32_t do_init = false; | ||||
|          | ||||
|         Managed_Group group = view_get_managed_group(app, view.view_id); | ||||
|         Managed_Scope scope = view_get_managed_scope(app, view.view_id); | ||||
|          | ||||
|         uint64_t rewrite = 0; | ||||
|         managed_variable_get(app, group, view_rewrite_loc, &rewrite); | ||||
|         managed_variable_get(app, scope, view_rewrite_loc, &rewrite); | ||||
|         if (rewrite != RewriteWordComplete){ | ||||
|             do_init = true; | ||||
|         } | ||||
|         managed_variable_set(app, group, view_next_rewrite_loc, RewriteWordComplete); | ||||
|         managed_variable_set(app, scope, view_next_rewrite_loc, RewriteWordComplete); | ||||
|         if (!complete_state.initialized){ | ||||
|             do_init = true; | ||||
|         } | ||||
|  |  | |||
|  | @ -1062,22 +1062,22 @@ DOC_SEE(Buffer_Setting_ID) | |||
|     return(result); | ||||
| } | ||||
| 
 | ||||
| internal Managed_Group | ||||
| buffer_get_managed_group__inner(Editing_File *file){ | ||||
|     Managed_Group lifetime = 0; | ||||
| internal Managed_Scope | ||||
| buffer_get_managed_scope__inner(Editing_File *file){ | ||||
|     Managed_Scope lifetime = 0; | ||||
|     if (file != 0){ | ||||
|         Assert(file->lifetime_object != 0); | ||||
|         lifetime = (Managed_Group)file->lifetime_object->workspace.group_id; | ||||
|         lifetime = (Managed_Scope)file->lifetime_object->workspace.scope_id; | ||||
|     } | ||||
|     return(lifetime); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT Managed_Group | ||||
| Buffer_Get_Managed_Group(Application_Links *app, Buffer_ID buffer_id) | ||||
| API_EXPORT Managed_Scope | ||||
| Buffer_Get_Managed_Scope(Application_Links *app, Buffer_ID buffer_id) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     Editing_File *file = imp_get_file(cmd, buffer_id); | ||||
|     return(buffer_get_managed_group__inner(file)); | ||||
|     return(buffer_get_managed_scope__inner(file)); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT int32_t | ||||
|  | @ -1811,15 +1811,15 @@ DOC_SEE(View_Setting_ID) | |||
|     return(result); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT Managed_Group | ||||
| View_Get_Managed_Group(Application_Links *app, View_ID view_id) | ||||
| API_EXPORT Managed_Scope | ||||
| View_Get_Managed_Scope(Application_Links *app, View_ID view_id) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     View *view = imp_get_view(cmd, view_id); | ||||
|     Managed_Group lifetime = 0; | ||||
|     Managed_Scope lifetime = 0; | ||||
|     if (view != 0){ | ||||
|         Assert(view->transient.lifetime_object != 0); | ||||
|         lifetime = (Managed_Group)(view->transient.lifetime_object->workspace.group_id); | ||||
|         lifetime = (Managed_Scope)(view->transient.lifetime_object->workspace.scope_id); | ||||
|     } | ||||
|     return(lifetime); | ||||
| } | ||||
|  | @ -2228,25 +2228,25 @@ View_Get_UI_Copy(Application_Links *app, View_Summary *view, struct Partition *p | |||
|     return(result); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT Managed_Group | ||||
| Get_Global_Managed_Group(Application_Links *app) | ||||
| API_EXPORT Managed_Scope | ||||
| Get_Global_Managed_Scope(Application_Links *app) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     Models *models = cmd->models; | ||||
|     return((Managed_Group)models->dynamic_workspace.group_id); | ||||
|     return((Managed_Scope)models->dynamic_workspace.scope_id); | ||||
| } | ||||
| 
 | ||||
| internal Dynamic_Workspace* | ||||
| get_dynamic_workspace(Models *models, Managed_Group handle){ | ||||
|     u32_Ptr_Lookup_Result lookup_result = lookup_u32_Ptr_table(&models->lifetime_allocator.group_id_to_group_ptr_table, (u32)handle); | ||||
| get_dynamic_workspace(Models *models, Managed_Scope handle){ | ||||
|     u32_Ptr_Lookup_Result lookup_result = lookup_u32_Ptr_table(&models->lifetime_allocator.scope_id_to_scope_ptr_table, (u32)handle); | ||||
|     if (!lookup_result.success){ | ||||
|         return(0); | ||||
|     } | ||||
|     return((Dynamic_Workspace*)*lookup_result.val); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT Managed_Group | ||||
| Get_Intersected_Managed_Group(Application_Links *app, Managed_Group *intersected_groups, int32_t count) | ||||
| API_EXPORT Managed_Scope | ||||
| Get_Managed_Scope_With_Multiple_Dependencies(Application_Links *app, Managed_Scope *intersected_scopes, int32_t count) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     Models *models = cmd->models; | ||||
|  | @ -2258,7 +2258,7 @@ Get_Intersected_Managed_Group(Application_Links *app, Managed_Group *intersected | |||
|     b32 filled_array = true; | ||||
|     Lifetime_Object **object_ptr_array = push_array(scratch, Lifetime_Object*, 0); | ||||
|     for (i32 i = 0; i < count; i += 1){ | ||||
|         Dynamic_Workspace *workspace = get_dynamic_workspace(models, intersected_groups[i]); | ||||
|         Dynamic_Workspace *workspace = get_dynamic_workspace(models, intersected_scopes[i]); | ||||
|         if (workspace == 0){ | ||||
|             filled_array = false; | ||||
|             break; | ||||
|  | @ -2267,7 +2267,7 @@ Get_Intersected_Managed_Group(Application_Links *app, Managed_Group *intersected | |||
|         switch (workspace->user_type){ | ||||
|             case DynamicWorkspace_Global: | ||||
|             { | ||||
|                 // NOTE(allen): (global_group INTERSECT X) == X for all X, therefore we emit nothing when a global group is in the key list.
 | ||||
|                 // NOTE(allen): (global_scope INTERSECT X) == X for all X, therefore we emit nothing when a global group is in the key list.
 | ||||
|             }break; | ||||
|              | ||||
|             case DynamicWorkspace_Buffer: | ||||
|  | @ -2299,13 +2299,13 @@ Get_Intersected_Managed_Group(Application_Links *app, Managed_Group *intersected | |||
|         } | ||||
|     } | ||||
|      | ||||
|     Managed_Group result = 0; | ||||
|     Managed_Scope result = 0; | ||||
|     if (filled_array){ | ||||
|         i32 member_count = (i32)(push_array(scratch, Lifetime_Object*, 0) - object_ptr_array); | ||||
|         member_count = lifetime_sort_and_dedup_object_set(object_ptr_array, member_count); | ||||
|         Heap *heap = &models->mem.heap; | ||||
|         Lifetime_Key *key = lifetime_get_or_create_intersection_key(heap, lifetime_allocator, object_ptr_array, member_count); | ||||
|         result = (Managed_Group)key->dynamic_workspace.group_id; | ||||
|         result = (Managed_Scope)key->dynamic_workspace.scope_id; | ||||
|     } | ||||
|      | ||||
|     end_temp_memory(temp); | ||||
|  | @ -2346,7 +2346,7 @@ Managed_Variable_Create_Or_Get_ID(Application_Links *app, char *null_terminated_ | |||
| } | ||||
| 
 | ||||
| internal bool32 | ||||
| get_dynamic_variable(Command_Data *cmd, Managed_Group handle, int32_t location, uint64_t **ptr_out){ | ||||
| get_dynamic_variable(Command_Data *cmd, Managed_Scope handle, int32_t location, uint64_t **ptr_out){ | ||||
|     Models *models = cmd->models; | ||||
|     Heap *heap = &models->mem.heap; | ||||
|     Dynamic_Variable_Layout *layout = &models->variable_layout; | ||||
|  | @ -2361,11 +2361,11 @@ get_dynamic_variable(Command_Data *cmd, Managed_Group handle, int32_t location, | |||
| } | ||||
| 
 | ||||
| API_EXPORT bool32 | ||||
| Managed_Variable_Set(Application_Links *app, Managed_Group group, Managed_Variable_ID location, uint64_t value) | ||||
| Managed_Variable_Set(Application_Links *app, Managed_Scope scope, Managed_Variable_ID location, uint64_t value) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     u64 *ptr = 0; | ||||
|     if (get_dynamic_variable(cmd, group, location, &ptr)){ | ||||
|     if (get_dynamic_variable(cmd, scope, location, &ptr)){ | ||||
|         *ptr = value; | ||||
|         return(true); | ||||
|     } | ||||
|  | @ -2373,11 +2373,11 @@ Managed_Variable_Set(Application_Links *app, Managed_Group group, Managed_Variab | |||
| } | ||||
| 
 | ||||
| API_EXPORT bool32 | ||||
| Managed_Variable_Get(Application_Links *app, Managed_Group group, Managed_Variable_ID location, uint64_t *value_out) | ||||
| Managed_Variable_Get(Application_Links *app, Managed_Scope scope, Managed_Variable_ID location, uint64_t *value_out) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     u64 *ptr = 0; | ||||
|     if (get_dynamic_variable(cmd, group, location, &ptr)){ | ||||
|     if (get_dynamic_variable(cmd, scope, location, &ptr)){ | ||||
|         *value_out = *ptr; | ||||
|         return(true); | ||||
|     } | ||||
|  | @ -2385,56 +2385,139 @@ Managed_Variable_Get(Application_Links *app, Managed_Group group, Managed_Variab | |||
| } | ||||
| 
 | ||||
| API_EXPORT Managed_Object | ||||
| Managed_Memory_Alloc(Application_Links *app, Managed_Group group, int32_t size) | ||||
| Alloc_Managed_Memory_In_Scope(Application_Links *app, Managed_Scope scope, int32_t item_size, int32_t count) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     Models *models = cmd->models; | ||||
|     Heap *heap = &models->mem.heap; | ||||
|     Dynamic_Workspace *workspace = get_dynamic_workspace(models, group); | ||||
|     Dynamic_Workspace *workspace = get_dynamic_workspace(models, scope); | ||||
|     Managed_Object result = 0; | ||||
|     if (workspace != 0){ | ||||
|         int32_t size = count*item_size; | ||||
|         void *ptr = dynamic_memory_bank_allocate(heap, &workspace->mem_bank, size + sizeof(Managed_Memory_Header)); | ||||
|         Managed_Memory_Header *header = (Managed_Memory_Header*)ptr; | ||||
|         header->type = ManagedObjectType_Memory; | ||||
|         header->size = size; | ||||
|         header->std_header.type = ManagedObjectType_Memory; | ||||
|         header->std_header.item_size = item_size; | ||||
|         header->std_header.count = count; | ||||
|         u32 id = dynamic_workspace_store_pointer(heap, workspace, ptr); | ||||
|         result = ((u64)group << 32) | (u64)id; | ||||
|         result = ((u64)scope << 32) | (u64)id; | ||||
|     } | ||||
|     return(result); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT Managed_Object | ||||
| Buffer_Markers_Alloc(Application_Links *app, Buffer_ID buffer_id, int32_t count, Managed_Group *group) | ||||
| Alloc_Buffer_Markers_On_Buffer(Application_Links *app, Buffer_ID buffer_id, int32_t count, Managed_Scope *optional_extra_scope) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     Editing_File *file = imp_get_file(cmd, buffer_id); | ||||
|     Managed_Group markers_group = buffer_get_managed_group__inner(file); | ||||
|     if (group != 0){ | ||||
|         Managed_Object group_array[2]; | ||||
|         group_array[0] = markers_group; | ||||
|         group_array[1] = *group; | ||||
|         markers_group = Get_Intersected_Managed_Group(app, group_array, 2); | ||||
|     Managed_Scope markers_scope = buffer_get_managed_scope__inner(file); | ||||
|     if (optional_extra_scope != 0){ | ||||
|         Managed_Object scope_array[2]; | ||||
|         scope_array[0] = markers_scope; | ||||
|         scope_array[1] = *optional_extra_scope; | ||||
|         markers_scope = Get_Managed_Scope_With_Multiple_Dependencies(app, scope_array, 2); | ||||
|     } | ||||
|     Models *models = cmd->models; | ||||
|     Heap *heap = &models->mem.heap; | ||||
|     Dynamic_Workspace *workspace = get_dynamic_workspace(models, markers_group); | ||||
|     Dynamic_Workspace *workspace = get_dynamic_workspace(models, markers_scope); | ||||
|     Managed_Object result = 0; | ||||
|     if (workspace != 0){ | ||||
|         i32 size = count*sizeof(Marker); | ||||
|         void *ptr = dynamic_memory_bank_allocate(heap, &workspace->mem_bank, size + sizeof(Managed_Buffer_Markers_Header)); | ||||
|         Managed_Buffer_Markers_Header *header = (Managed_Buffer_Markers_Header*)ptr; | ||||
|         header->std_header.type = ManagedObjectType_Markers; | ||||
|         header->std_header.item_size = sizeof(Marker); | ||||
|         header->std_header.count = count; | ||||
|         zdll_push_back(workspace->buffer_markers_list.first, workspace->buffer_markers_list.last, header); | ||||
|         workspace->buffer_markers_list.count += 1; | ||||
|         header->type = ManagedObjectType_Markers; | ||||
|         header->size = size; | ||||
|         header->buffer_id = buffer_id; | ||||
|         file->state.total_marker_count += count; | ||||
|         u32 id = dynamic_workspace_store_pointer(heap, workspace, ptr); | ||||
|         result = ((u64)markers_group << 32) | (u64)id; | ||||
|         result = ((u64)markers_scope << 32) | (u64)id; | ||||
|     } | ||||
|     return(result); | ||||
| } | ||||
| 
 | ||||
| internal Managed_Object_Ptr_And_Workspace | ||||
| get_dynamic_object_ptrs(Models *models, Managed_Object object){ | ||||
|     Managed_Object_Ptr_And_Workspace result = {0}; | ||||
|     u32 hi_id = (object >> 32)&max_u32; | ||||
|     Dynamic_Workspace *workspace = get_dynamic_workspace(models, hi_id); | ||||
|     if (workspace != 0){ | ||||
|         u32 lo_id = object&max_u32; | ||||
|         Managed_Object_Standard_Header *header = (Managed_Object_Standard_Header*)dynamic_workspace_get_pointer(workspace, lo_id); | ||||
|         if (header != 0){ | ||||
|             result.workspace = workspace; | ||||
|             result.header = header; | ||||
|             return(result); | ||||
|         } | ||||
|     } | ||||
|     return(result); | ||||
| } | ||||
| 
 | ||||
| internal u8* | ||||
| get_dynamic_object_memory_ptr(Managed_Object_Standard_Header *header){ | ||||
|     if (header != 0){ | ||||
|         if (0 < header->type && header->type < ManagedObjectType_COUNT){ | ||||
|             return(((u8*)header) + managed_header_type_sizes[header->type]); | ||||
|         } | ||||
|     } | ||||
|     return(0); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT uint32_t | ||||
| Managed_Object_Get_Item_Size(Application_Links *app, Managed_Object object) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     Models *models = cmd->models; | ||||
|     Managed_Object_Ptr_And_Workspace object_ptrs = get_dynamic_object_ptrs(models, object); | ||||
|     if (object_ptrs.header != 0){ | ||||
|         return(object_ptrs.header->item_size); | ||||
|     } | ||||
|     return(0); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT uint32_t | ||||
| Managed_Object_Get_Item_Count(Application_Links *app, Managed_Object object) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     Models *models = cmd->models; | ||||
|     Managed_Object_Ptr_And_Workspace object_ptrs = get_dynamic_object_ptrs(models, object); | ||||
|     if (object_ptrs.header != 0){ | ||||
|         return(object_ptrs.header->count); | ||||
|     } | ||||
|     return(0); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT Managed_Object_Type | ||||
| Managed_Object_Get_Type(Application_Links *app, Managed_Object object) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     Models *models = cmd->models; | ||||
|     Managed_Object_Ptr_And_Workspace object_ptrs = get_dynamic_object_ptrs(models, object); | ||||
|     if (object_ptrs.header != 0){ | ||||
|         Managed_Object_Type type = object_ptrs.header->type; | ||||
|         if (type < 0 || ManagedObjectType_COUNT <= type){ | ||||
|             type = ManagedObjectType_Error; | ||||
|         } | ||||
|         return(type); | ||||
|     } | ||||
|     return(ManagedObjectType_Error); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT Managed_Scope | ||||
| Managed_Object_Get_Containing_Scope(Application_Links *app, Managed_Object object) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     Models *models = cmd->models; | ||||
|     u32 hi_id = (object >> 32)&max_u32; | ||||
|     Dynamic_Workspace *workspace = get_dynamic_workspace(models, hi_id); | ||||
|     if (workspace != 0){ | ||||
|         return((Managed_Scope)hi_id); | ||||
|     } | ||||
|     return(0); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT bool32 | ||||
| Managed_Object_Free(Application_Links *app, Managed_Object object) | ||||
| { | ||||
|  | @ -2460,50 +2543,40 @@ Managed_Object_Free(Application_Links *app, Managed_Object object) | |||
|     return(false); | ||||
| } | ||||
| 
 | ||||
| internal u8* | ||||
| get_dynamic_object_header_ptr(Models *models, Managed_Object object){ | ||||
|     u32 hi_id = (object >> 32)&max_u32; | ||||
|     Dynamic_Workspace *workspace = get_dynamic_workspace(models, hi_id); | ||||
|     if (workspace != 0){ | ||||
|         u32 lo_id = object&max_u32; | ||||
|         return((u8*)dynamic_workspace_get_pointer(workspace, lo_id)); | ||||
|     } | ||||
|     return(0); | ||||
| } | ||||
| 
 | ||||
| internal u8* | ||||
| get_dynamic_object_memory_ptr(u8 *header_ptr){ | ||||
|     if (header_ptr != 0){ | ||||
|         Managed_Object_Type *type = (Managed_Object_Type*)header_ptr; | ||||
|         if (0 < *type && *type < ManagedObjectType_COUNT){ | ||||
|             return(header_ptr + managed_header_type_sizes[*type]); | ||||
|         } | ||||
|     } | ||||
|     return(0); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT bool32 | ||||
| Managed_Object_Write(Application_Links *app, Managed_Object object, uint32_t start, uint32_t size, void *mem) | ||||
| Managed_Object_Store_Data(Application_Links *app, Managed_Object object, uint32_t first_index, uint32_t count, void *mem) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     Models *models = cmd->models; | ||||
|     u8 *ptr = get_dynamic_object_memory_ptr(get_dynamic_object_header_ptr(models, object)); | ||||
|     Managed_Object_Ptr_And_Workspace object_ptrs = get_dynamic_object_ptrs(models, object); | ||||
|     u8 *ptr = get_dynamic_object_memory_ptr(object_ptrs.header); | ||||
|     if (ptr != 0){ | ||||
|         memcpy(ptr + start, mem, size); | ||||
|         return(true); | ||||
|         u32 item_count = object_ptrs.header->count; | ||||
|         if (0 <= first_index && first_index + count <= item_count){ | ||||
|             u32 item_size = object_ptrs.header->item_size; | ||||
|             memcpy(ptr + first_index*item_size, mem, count*item_size); | ||||
|             heap_assert_good(&object_ptrs.workspace->mem_bank.heap); | ||||
|             return(true); | ||||
|         } | ||||
|     } | ||||
|     return(false); | ||||
| } | ||||
| 
 | ||||
| API_EXPORT bool32 | ||||
| Managed_Object_Read(Application_Links *app, Managed_Object object, uint32_t start, uint32_t size, void *mem_out) | ||||
| Managed_Object_Load_Data(Application_Links *app, Managed_Object object, uint32_t first_index, uint32_t count, void *mem_out) | ||||
| { | ||||
|     Command_Data *cmd = (Command_Data*)app->cmd_context; | ||||
|     Models *models = cmd->models; | ||||
|     u8 *ptr = get_dynamic_object_memory_ptr(get_dynamic_object_header_ptr(models, object)); | ||||
|     Managed_Object_Ptr_And_Workspace object_ptrs = get_dynamic_object_ptrs(models, object); | ||||
|     u8 *ptr = get_dynamic_object_memory_ptr(object_ptrs.header); | ||||
|     if (ptr != 0){ | ||||
|         memcpy(mem_out, ptr + start, size); | ||||
|         return(true); | ||||
|         u32 item_count = object_ptrs.header->count; | ||||
|         if (0 <= first_index && first_index + count <= item_count){ | ||||
|             u32 item_size = object_ptrs.header->item_size; | ||||
|             memcpy(mem_out, ptr + first_index*item_size, count*item_size); | ||||
|             heap_assert_good(&object_ptrs.workspace->mem_bank.heap); | ||||
|             return(true); | ||||
|         } | ||||
|     } | ||||
|     return(false); | ||||
| } | ||||
|  |  | |||
|  | @ -171,15 +171,15 @@ dynamic_workspace_init(Heap *heap, Lifetime_Allocator *lifetime_allocator, | |||
|     if (lifetime_allocator->scope_id_counter == 0){ | ||||
|         lifetime_allocator->scope_id_counter = 1; | ||||
|     } | ||||
|     workspace->group_id = lifetime_allocator->scope_id_counter++; | ||||
|     insert_u32_Ptr_table(heap, &lifetime_allocator->group_id_to_group_ptr_table, workspace->group_id, workspace); | ||||
|     workspace->scope_id = lifetime_allocator->scope_id_counter++; | ||||
|     insert_u32_Ptr_table(heap, &lifetime_allocator->scope_id_to_scope_ptr_table, workspace->scope_id, workspace); | ||||
|     workspace->user_type = user_type; | ||||
|     workspace->user_back_ptr = user_back_ptr; | ||||
| } | ||||
| 
 | ||||
| internal void | ||||
| dynamic_workspace_free(Heap *heap, Lifetime_Allocator *lifetime_allocator, Dynamic_Workspace *workspace){ | ||||
|     erase_u32_Ptr_table(&lifetime_allocator->group_id_to_group_ptr_table, workspace->group_id); | ||||
|     erase_u32_Ptr_table(&lifetime_allocator->scope_id_to_scope_ptr_table, workspace->scope_id); | ||||
|     dynamic_variables_block_free(heap, &workspace->var_block); | ||||
|     dynamic_memory_bank_free_all(heap, &workspace->mem_bank); | ||||
| } | ||||
|  |  | |||
|  | @ -12,34 +12,24 @@ | |||
| #if !defined(FRED_DYNAMIC_VARIABLES_H) | ||||
| #define FRED_DYNAMIC_VARIABLES_H | ||||
| 
 | ||||
| typedef i32 Managed_Object_Type; | ||||
| enum{ | ||||
|     ManagedObjectType_None = 0, | ||||
|     ManagedObjectType_Memory = 1, | ||||
|     ManagedObjectType_Markers = 2, | ||||
|      | ||||
|     ManagedObjectType_COUNT = 3, | ||||
| }; | ||||
| 
 | ||||
| union Managed_Memory_Header{ | ||||
|     Managed_Object_Type type; | ||||
| union Managed_Object_Standard_Header{ | ||||
|     u64 eight_byte_alignment__; | ||||
|     struct{ | ||||
|         Managed_Object_Type type__; | ||||
|         i32 size; | ||||
|         Managed_Object_Type type; | ||||
|         u32 item_size; | ||||
|         u32 count; | ||||
|     }; | ||||
| }; | ||||
| 
 | ||||
| union Managed_Buffer_Markers_Header{ | ||||
|     Managed_Object_Type type; | ||||
|     u64 eight_byte_alignment__; | ||||
|     struct{ | ||||
|         Managed_Object_Type type__; | ||||
|         Managed_Buffer_Markers_Header *next; | ||||
|         Managed_Buffer_Markers_Header *prev; | ||||
|         i32 size; | ||||
|         Buffer_ID buffer_id; | ||||
|     }; | ||||
| struct Managed_Memory_Header{ | ||||
|     Managed_Object_Standard_Header std_header; | ||||
| }; | ||||
| 
 | ||||
| struct Managed_Buffer_Markers_Header{ | ||||
|     Managed_Object_Standard_Header std_header; | ||||
|     Managed_Buffer_Markers_Header *next; | ||||
|     Managed_Buffer_Markers_Header *prev; | ||||
|     Buffer_ID buffer_id; | ||||
| }; | ||||
| 
 | ||||
| global_const i32 managed_header_type_sizes[ManagedObjectType_COUNT] = { | ||||
|  | @ -94,7 +84,7 @@ struct Dynamic_Workspace{ | |||
|     Dynamic_Memory_Bank mem_bank; | ||||
|     u32_Ptr_Table object_id_to_object_ptr; | ||||
|     u32 object_id_counter; | ||||
|     u32 group_id; | ||||
|     u32 scope_id; | ||||
|     i32 user_type; | ||||
|     void *user_back_ptr; | ||||
|     Managed_Buffer_Markers_Header_List buffer_markers_list; | ||||
|  | @ -174,7 +164,7 @@ struct Lifetime_Allocator{ | |||
|     Lifetime_Key_List free_keys; | ||||
|     Lifetime_Key_Table key_table; | ||||
|     Ptr_Table key_check_table; | ||||
|     u32_Ptr_Table group_id_to_group_ptr_table; | ||||
|     u32_Ptr_Table scope_id_to_scope_ptr_table; | ||||
|     u32 scope_id_counter; | ||||
| }; | ||||
| 
 | ||||
|  | @ -183,6 +173,13 @@ struct Lifetime_Key_With_Opaque_ID{ | |||
|     u64 opaque_id; | ||||
| }; | ||||
| 
 | ||||
| ////////////////////////////////
 | ||||
| 
 | ||||
| struct Managed_Object_Ptr_And_Workspace{ | ||||
|     Dynamic_Workspace *workspace; | ||||
|     Managed_Object_Standard_Header *header; | ||||
| }; | ||||
| 
 | ||||
| #endif | ||||
| 
 | ||||
| // BOTTOM
 | ||||
|  |  | |||
|  | @ -32,7 +32,8 @@ edit_fix_marks__write_workspace_marks(Dynamic_Workspace *workspace, Buffer_ID bu | |||
|          node = node->next){ | ||||
|         if (node->buffer_id == buffer_id){ | ||||
|             Marker *markers = (Marker*)(node + 1); | ||||
|             i32 count = node->size/sizeof(Marker); | ||||
|             Assert(sizeof(Marker) == node->std_header.item_size); | ||||
|             i32 count = node->std_header.count; | ||||
|             for (i32 i = 0; i < count; i += 1){ | ||||
|                 if (markers[i].lean_right){ | ||||
|                     write_cursor_with_index(r_cursors, r_cursor_count, markers[i].pos); | ||||
|  | @ -53,7 +54,8 @@ edit_fix_marks__read_workspace_marks(Dynamic_Workspace *workspace, Buffer_ID buf | |||
|          node = node->next){ | ||||
|         if (node->buffer_id == buffer_id){ | ||||
|             Marker *markers = (Marker*)(node + 1); | ||||
|             i32 count = node->size/sizeof(Marker); | ||||
|             Assert(sizeof(Marker) == node->std_header.item_size); | ||||
|             i32 count = node->std_header.count; | ||||
|             for (i32 i = 0; i < count; i += 1){ | ||||
|                 if (markers[i].lean_right){ | ||||
|                     markers[i].pos = r_cursors[(*r_cursor_count)++].pos; | ||||
|  |  | |||
|  | @ -41,7 +41,7 @@ cd ../build > /dev/null | |||
| preproc_file=4coder_command_metadata.i | ||||
| meta_macros="-DMETA_PASS" | ||||
| g++ -I"$code_home" $meta_macros $opts -std=gnu++0x "$SOURCE" -E -o $preproc_file | ||||
| g++ -I"$code_home" $opts -std=gnu++0x "$code_home/4coder_metadata_generator.cpp" -o metadata_generator | ||||
| g++ -I"$code_home" $opts -std=gnu++0x "$SOURCE" -o metadata_generator | ||||
| ./metadata_generator -R "$code_home" "$PWD/$preproc_file" | ||||
| cd $code_home > /dev/null | ||||
| 
 | ||||
|  |  | |||
|  | @ -423,8 +423,7 @@ build(u32 flags, u32 arch, char *code_path, char *code_file, char *out_path, cha | |||
| 
 | ||||
| internal void | ||||
| build_metadata(void){ | ||||
|     systemf("./%s \"..%scode%s4coder_default_bindings.cpp\"", | ||||
|             "build_metadata" BAT, SLASH, SLASH); | ||||
|     systemf(".%s%s ..%scode%s4coder_default_bindings.cpp", SLASH, "build_metadata" BAT, SLASH, SLASH); | ||||
| } | ||||
| 
 | ||||
| internal void | ||||
|  | @ -586,8 +585,8 @@ internal void | |||
| standard_build(char *cdir, u32 flags, u32 arch){ | ||||
|     fsm_generator(cdir); | ||||
|     metagen(cdir); | ||||
|     //do_buildsuper(cdir, fm_str(custom_files[Custom_Default]), arch);
 | ||||
|     do_buildsuper(cdir, fm_str(custom_files[Custom_Experiments]), arch); | ||||
|     do_buildsuper(cdir, fm_str(custom_files[Custom_Default]), arch); | ||||
|     //do_buildsuper(cdir, fm_str(custom_files[Custom_Experiments]), arch);
 | ||||
|     //do_buildsuper(cdir, fm_str(custom_files[Custom_Casey]), arch);
 | ||||
|     //do_buildsuper(cdir, fm_str(custom_files[Custom_ChronalVim]), arch);
 | ||||
|     build_main(cdir, true, flags, arch); | ||||
|  |  | |||
|  | @ -11,6 +11,7 @@ use_scroll_bars = false; | |||
| use_file_bars = true; | ||||
| 
 | ||||
| // Code Wrapping | ||||
| treat_as_code = ".cpp.c.hpp.h.cc.cs.java.rs.glsl.m"; | ||||
| enable_virtual_whitespace = true; | ||||
| enable_code_wrapping = true; | ||||
| automatically_adjust_wrapping = true; | ||||
|  | @ -42,9 +43,6 @@ default_font_hinting = false; | |||
| // User | ||||
| user_name = "NAME"; | ||||
| 
 | ||||
| // Extensions | ||||
| treat_as_code = ".cpp.c.hpp.h.cc.cs.java.rs.glsl.m"; | ||||
| 
 | ||||
| // Keyboard AltGr setting | ||||
| lalt_lctrl_is_altgr = false; | ||||
| 
 | ||||
|  |  | |||
|  | @ -0,0 +1,60 @@ | |||
| 
 | ||||
| [] Build 4.0.29 | ||||
| { | ||||
|     Features | ||||
|     { | ||||
|         [x] Lister API | ||||
|         [x] Managed Cooperative Memory API | ||||
|         [x] Separate distinct buffer groups by newline | ||||
|         [x] If no results put message explaining that fact (search buffer) | ||||
|         [] Fixup File Lister Sorting | ||||
|         [] File System Lister Missing Status | ||||
|         [] Command Lister | ||||
|         [] Color Pallette Expansion For Keywords | ||||
|         [] Color Pallette Expansion For Paren/Brace Matching | ||||
|         [] Visible Markers | ||||
|         { | ||||
|             [] Line Highlight | ||||
|             [] Cursor Block | ||||
|             [] Wire Cursor Block | ||||
|             [] Cursor Line | ||||
|             [] Highlight Range | ||||
|         } | ||||
|         [] Reload all out of sync files | ||||
|     } | ||||
|      | ||||
|     Bugs | ||||
|     { | ||||
|         [x] Code Wrapping Problem | ||||
|         [x] Cancel Search Shouldn't Bring Up The Search Window | ||||
|         [x] Heap Corruption 1 | ||||
|         [x] Heap Corruption 2 | ||||
|         [x] New type matching pattern struct Name { /} | ||||
|         [] Reload "Big File" <ctrl O> | ||||
|         [] crash after disabling virtual whitespace and reloading | ||||
|         [] If indent bug (get accompanying repro file) "mgl_base.h" | ||||
|         [] list_all_locations end UI mode | ||||
|         [] Lexing Scientific Notation " 3.402823466e+38F " | ||||
|     } | ||||
|      | ||||
|     [] Documentation | ||||
| } | ||||
| 
 | ||||
| Long Term | ||||
| { | ||||
|     Features | ||||
|     { | ||||
|         [] Renderer Modularity | ||||
|         [] Software Renderer | ||||
|         [] Undo Upgrade | ||||
|         [] Meta Buffer | ||||
|         [] Multi Cursor | ||||
|         [] Commands in Input Bar | ||||
|     } | ||||
|      | ||||
|     Bugs | ||||
|     { | ||||
|         [] Remote Desktop Doesn't Work -> Need Renderer Modularity & Software Renderer | ||||
|         [] Jim's file is blank even though it tries to load a real file (wtf) | ||||
|     } | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	 Allen Webster
						Allen Webster