re-use command name instead of slashcommand as we removed at_command

This commit is contained in:
pap
2025-08-01 19:45:32 +01:00
parent 5ebbecb968
commit c9b80cd456
5 changed files with 26 additions and 28 deletions

View File

@@ -3,7 +3,7 @@ use codex_file_search::FileMatch;
use crossterm::event::KeyEvent;
use ratatui::text::Line;
use crate::slash_command::SlashCommand;
use crate::slash_command::Command;
#[derive(Debug)]
#[allow(clippy::large_enum_variant)]
@@ -33,7 +33,7 @@ pub(crate) enum AppEvent {
/// Dispatch a recognized slash command from the UI (composer) to the app
/// layer so it can be handled centrally.
DispatchSlashCommand(SlashCommand),
DispatchCommand(Command),
/// Kick off an asynchronous file search for the given query (text after
/// the `@`). Previous searches may be cancelled by the app layer so there