move from fixed flags to list of tags (matching command list evaluation names) for context menu command filtering; pull out code for filling command regs from contextual expressions; add mechanism for contextualizing a whole query, so that we can spawn command listers within the context of some other evaluation, which we'd like to fill registers with (e.g. right-clicking a module -> spawn a module command list, contextualized by the module evaluation itself

This commit is contained in:
Ryan Fleury committed 2026-06-10 09:54:57 -07:00
1 parent 1577ea5693
commit f7ba4b2ebe
10 files changed
+614 -515

No files matched your search

+6 -3
View File
@@ -41,6 +41,7 @@ RD_RegSlot_UIKey,
RD_RegSlot_SrcUIKey,
RD_RegSlot_OffPx,
RD_RegSlot_RegSlot,
RD_RegSlot_CtxExpr,
RD_RegSlot_PID,
RD_RegSlot_ForceConfirm,
RD_RegSlot_ForceFocus,
@@ -492,6 +493,7 @@ UI_Key ui_key;
UI_Key src_ui_key;
Vec2F32 off_px;
RD_RegSlot reg_slot;
String8 ctx_expr;
U32 pid;
B32 force_confirm;
B32 force_focus;
@@ -528,7 +530,7 @@ struct RD_CmdKindInfo
String8 string;
String8 description;
String8 search_tags;
String8 ctx_filter;
String8 filter_tags;
RD_CmdKindFlags flags;
RD_Query query;
};
@@ -594,6 +596,7 @@ Z(getting_started)\
.src_ui_key = rd_regs()->src_ui_key,\
.off_px = rd_regs()->off_px,\
.reg_slot = rd_regs()->reg_slot,\
.ctx_expr = rd_regs()->ctx_expr,\
.pid = rd_regs()->pid,\
.force_confirm = rd_regs()->force_confirm,\
.force_focus = rd_regs()->force_focus,\
@@ -618,8 +621,8 @@ extern String8 rd_tab_fast_path_view_name_table[25];
extern String8 rd_tab_fast_path_query_name_table[25];
extern RD_VocabInfo rd_vocab_info_table[368];
extern RD_NameSchemaInfo rd_name_schema_info_table[39];
extern String8 rd_reg_slot_code_name_table[51];
extern Rng1U64 rd_reg_slot_range_table[51];
extern String8 rd_reg_slot_code_name_table[52];
extern Rng1U64 rd_reg_slot_range_table[52];
extern String8 rd_binding_version_remap_old_name_table[9];
extern String8 rd_binding_version_remap_new_name_table[9];
extern String8 rd_icon_kind_text_table[75];