mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 05:48:40 +00:00
extend autocompletion lister parameter detection, based on cursor position; feed through view rule parameters; correctly support cursor position with multi-arguments, regardless of which argument the cursor is on
This commit is contained in:
+16
-7
@@ -445,10 +445,11 @@ enum
|
||||
DF_AutoCompListerFlag_Locals = (1<<0),
|
||||
DF_AutoCompListerFlag_Registers = (1<<1),
|
||||
DF_AutoCompListerFlag_ViewRules = (1<<2),
|
||||
DF_AutoCompListerFlag_Members = (1<<3),
|
||||
DF_AutoCompListerFlag_Languages = (1<<4),
|
||||
DF_AutoCompListerFlag_Architectures = (1<<5),
|
||||
DF_AutoCompListerFlag_Tex2DFormats = (1<<6),
|
||||
DF_AutoCompListerFlag_ViewRuleParams= (1<<3),
|
||||
DF_AutoCompListerFlag_Members = (1<<4),
|
||||
DF_AutoCompListerFlag_Languages = (1<<5),
|
||||
DF_AutoCompListerFlag_Architectures = (1<<6),
|
||||
DF_AutoCompListerFlag_Tex2DFormats = (1<<7),
|
||||
};
|
||||
|
||||
typedef struct DF_AutoCompListerItem DF_AutoCompListerItem;
|
||||
@@ -484,6 +485,13 @@ struct DF_AutoCompListerItemArray
|
||||
U64 count;
|
||||
};
|
||||
|
||||
typedef struct DF_AutoCompListerParams DF_AutoCompListerParams;
|
||||
struct DF_AutoCompListerParams
|
||||
{
|
||||
DF_AutoCompListerFlags flags;
|
||||
String8List strings;
|
||||
};
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Per-Window State
|
||||
|
||||
@@ -532,7 +540,8 @@ struct DF_Window
|
||||
B32 autocomp_query_dirty;
|
||||
UI_Key autocomp_root_key;
|
||||
DF_CtrlCtx autocomp_ctrl_ctx;
|
||||
DF_AutoCompListerFlags autocomp_lister_flags;
|
||||
Arena *autocomp_lister_params_arena;
|
||||
DF_AutoCompListerParams autocomp_lister_params;
|
||||
U64 autocomp_cursor_off;
|
||||
U8 autocomp_lister_query_buffer[1024];
|
||||
U64 autocomp_lister_query_size;
|
||||
@@ -936,8 +945,8 @@ internal int df_autocomp_lister_item_qsort_compare(DF_AutoCompListerItem *a, DF_
|
||||
internal void df_autocomp_lister_item_array_sort__in_place(DF_AutoCompListerItemArray *array);
|
||||
|
||||
internal String8 df_autocomp_query_word_from_input_string_off(String8 input, U64 cursor_off);
|
||||
internal DF_AutoCompListerFlags df_view_rule_autocomp_lister_flags_from_input_cursor(String8 string, U64 cursor_off);
|
||||
internal void df_set_autocomp_lister_query(DF_Window *ws, UI_Key root_key, DF_CtrlCtx ctrl_ctx, DF_AutoCompListerFlags flags, String8 input, U64 cursor_off);
|
||||
internal DF_AutoCompListerParams df_view_rule_autocomp_lister_params_from_input_cursor(Arena *arena, String8 string, U64 cursor_off);
|
||||
internal void df_set_autocomp_lister_query(DF_Window *ws, UI_Key root_key, DF_CtrlCtx ctrl_ctx, DF_AutoCompListerParams *params, String8 input, U64 cursor_off);
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Search Strings
|
||||
|
||||
Reference in New Issue
Block a user