Step 185: contextual feature hints
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user