From bb83aab860f6551dd85a3397f1561f2c987d934d Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 4 Jun 2021 09:23:32 -0700 Subject: [PATCH] docs: Correct widgets doc discussion of slash commands. --- docs/subsystems/widgets.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/docs/subsystems/widgets.md b/docs/subsystems/widgets.md index c38d21c7a6..32499ea998 100644 --- a/docs/subsystems/widgets.md +++ b/docs/subsystems/widgets.md @@ -397,15 +397,9 @@ And then we are basically done! ## Slash commands -This document is more about "widget" behavior than -"slash command" interfaces, but there is indeed a -lot of overlap between the two concepts. +This document is more about "widget" behavior than "slash command" +interfaces, but there is indeed a lot of overlap between the two +concepts. -We will soon introduce typeahead capability for slash -syntax, including things that are somewhat outliers -such as the "/me" command. - -If certain widget features are behind feature flags, -this will slightly complicate the typeahead -implementation. Mostly we just need the server -to share any relevant settings with the client. +Typeahead for slash commands is implemented via the `slash_commands` +object in `static/js/composebox_typeahead.js`.