mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-12-01 10:03:20 -08:00
sketch out first pass of autocompletion list-expr/replace-range/filter based on cursor-offset -> expression-node path
This commit is contained in:
1 parent
3a46e66efa
commit
aa9a00f754
5 files changed
+123
-29
No files matched your search
@@ -162,6 +162,17 @@ enum
|
||||
RD_CmdKindFlag_ListInTextRng = (1<<4),
|
||||
};
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Autocompletion Cursor Info Type
|
||||
|
||||
typedef struct RD_AutocompCursorInfo RD_AutocompCursorInfo;
|
||||
struct RD_AutocompCursorInfo
|
||||
{
|
||||
String8 list_expr;
|
||||
String8 filter;
|
||||
Rng1U64 replaced_range;
|
||||
};
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Generated Code
|
||||
|
||||
@@ -951,7 +962,8 @@ internal void rd_set_hover_eval(Vec2F32 pos, String8 string);
|
||||
////////////////////////////////
|
||||
//~ rjf: Autocompletion Lister
|
||||
|
||||
internal String8 rd_lister_query_word_from_input_string_off(String8 input, U64 cursor_off);
|
||||
internal RD_AutocompCursorInfo rd_autocomp_cursor_info_from_input_string_off(Arena *arena, String8 input, U64 cursor_off);
|
||||
internal String8 rd_autocomp_query_word_from_input_string_off(String8 input, U64 cursor_off);
|
||||
internal void rd_set_autocomp_regs_(RD_Regs *regs);
|
||||
#define rd_set_autocomp_regs(...) rd_set_autocomp_regs_(&(RD_Regs){rd_regs_lit_init_top __VA_ARGS__})
|
||||
|
||||
|
||||
Reference in new issue
Block a user