Step 185: contextual feature hints

This commit is contained in:
Bill
2026-02-09 22:53:00 -07:00
parent d391d2feeb
commit db2c5d9b07
11 changed files with 156 additions and 1 deletions

View File

@@ -100,6 +100,9 @@ static void renderBottomPanel(EditorState& state) {
if (ImGui::BeginTabItem("Agents")) {
ImGui::PushFont(state.monoFont);
queueFeatureHint(state.featureHints,
"hint.agents",
"Tip: Agents can query and modify your AST via the JSON-RPC API.");
bool running = state.agent.server && state.agent.server->isRunning();
ImGui::Text("Server: %s", running ? "Running" : "Stopped");
ImGui::SameLine(0, 20);

View File

@@ -8,6 +8,11 @@
#include <map>
static void renderEditorPanel(EditorState& state) {
if (state.ui.showAnnotations) {
queueFeatureHint(state.featureHints,
"hint.annotations",
"Tip: Right-click a function to add memory annotations.");
}
// ---------------------------------------------------------------
// Editor (center) -- editable text area
// ---------------------------------------------------------------

View File

@@ -5,6 +5,9 @@
static void renderOutlinePanel(EditorState& state) {
if (!state.ui.showOutline) return;
ImGui::Begin("Outline", &state.ui.showOutline);
queueFeatureHint(state.featureHints,
"hint.outline",
"Tip: Use the Outline to jump between symbols quickly.");
ImGui::PushFont(state.uiFont);
ImGui::SetNextItemWidth(-1.0f);
ImGui::InputText("Filter", state.outlineFilter, sizeof(state.outlineFilter));