Skip to content

Commit 19773e4

Browse files
davsclausclaude
andcommitted
chore: Add F2 Run Example hint to TUI empty state
Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
1 parent 54307da commit 19773e4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui

dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/OverviewTab.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,14 @@ private void renderEmptyState(Frame frame, Rect area) {
952952
lines.add(Line.from(Span.raw(" Run a route or integration in another terminal window:")));
953953
lines.add(Line.from(Span.styled(" > camel run my-route.yaml", Theme.success())));
954954
lines.add(Line.from(Span.raw("")));
955+
lines.add(Line.from(Span.styled(" 🐪 Or run a bundled example:", Style.EMPTY.bold())));
956+
lines.add(Line.from(List.of(
957+
Span.raw(" Press "),
958+
Span.styled(" F2 ", Theme.hintKey()),
959+
Span.raw(" to open Actions and select "),
960+
Span.styled("Run Example", Style.EMPTY.bold()),
961+
Span.raw("."))));
962+
lines.add(Line.from(Span.raw("")));
955963
lines.add(Line.from(Span.styled(" 💻 Or use the embedded JLine shell panel:", Style.EMPTY.bold())));
956964
lines.add(Line.from(List.of(
957965
Span.raw(" Press "),

0 commit comments

Comments
 (0)