Fix block command documentation and add to autocomplete

- Change @user to @name in all documentation
- Change 'blocked users' to 'blocked peers' for consistency
- Add /block and /unblock commands to autocomplete menu
This commit is contained in:
jack
2025-07-08 03:03:21 +02:00
parent e4d5f5b940
commit 9ec8008695
4 changed files with 25 additions and 23 deletions
+5 -3
View File
@@ -519,12 +519,14 @@ struct ContentView: View {
VStack(alignment: .leading, spacing: 0) {
// Define commands with aliases and syntax
let commandInfo: [(commands: [String], syntax: String?, description: String)] = [
(["/block"], "[nickname]", "block or list blocked peers"),
(["/clear"], nil, "clear chat messages"),
(["/hug"], "<nickname>", "send someone a warm hug"),
(["/j", "/join"], "<channel>", "join or create a channel"),
(["/m", "/msg"], "<nickname> [message]", "send private message"),
(["/channels"], nil, "show all discovered channels"),
(["/slap"], "<nickname>", "slap someone with a trout"),
(["/unblock"], "<nickname>", "unblock a peer"),
(["/w"], nil, "see who's online")
]
@@ -625,14 +627,14 @@ struct ContentView: View {
if newValue.hasPrefix("/") && newValue.count >= 1 {
// Build context-aware command list
var commandDescriptions = [
("/block", "block or list blocked users"),
("/block", "block or list blocked peers"),
("/channels", "show all discovered channels"),
("/clear", "clear chat messages"),
("/hug", "send someone a warm hug"),
("/j", "join or create a channel"),
("/m", "send private message"),
("/channels", "show all discovered channels"),
("/slap", "slap someone with a trout"),
("/unblock", "unblock a user"),
("/unblock", "unblock a peer"),
("/w", "see who's online")
]