Add /p as alias for /peer (both TUI and web), web /p @alias support

TUI: /p @manwe works same as /peer @manwe
Web: /p @manwe and /peer @manwe resolve alias and set peer input

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-03-27 15:38:35 +04:00
parent 9c70e02eba
commit c9f3e338a7
2 changed files with 18 additions and 1 deletions

View File

@@ -295,7 +295,8 @@ impl App {
}
return;
}
if text.starts_with("/peer ") {
if text.starts_with("/peer ") || text.starts_with("/p ") {
let text = if text.starts_with("/p ") { format!("/peer {}", &text[3..]) } else { text.clone() };
let raw = text[6..].trim().to_string();
let fp = if raw.starts_with('@') {
match self.resolve_alias(&raw[1..], client).await {