feat: add a /mention slash command (#2114)
- To help people discover @mentions. - Command just places a @ in the composer. - #2115 then improves the behavior of @mentions with empty queries.
This commit is contained in:
@@ -366,6 +366,11 @@ impl App<'_> {
|
||||
widget.add_diff_output(text);
|
||||
}
|
||||
}
|
||||
SlashCommand::Mention => {
|
||||
if let AppState::Chat { widget } = &mut self.app_state {
|
||||
widget.insert_str("@");
|
||||
}
|
||||
}
|
||||
SlashCommand::Status => {
|
||||
if let AppState::Chat { widget } = &mut self.app_state {
|
||||
widget.add_status_output();
|
||||
|
||||
Reference in New Issue
Block a user