From 93eeda1ccc8a14048c5df2f1cbd6fa430bcc0798 Mon Sep 17 00:00:00 2001 From: Thomas Johansen Date: Fri, 22 May 2015 23:29:40 +0200 Subject: [PATCH] :memo: Document command name standard Resolves #6893 --- src/command-registry.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/command-registry.coffee b/src/command-registry.coffee index 3969dc283..9764af027 100644 --- a/src/command-registry.coffee +++ b/src/command-registry.coffee @@ -18,6 +18,11 @@ SequenceCount = 0 # command event listeners globally on `atom.commands` and constrain them to # specific kinds of elements with CSS selectors. # +# Command names must follow the `namespace:event` pattern, where both parts can +# be further split into words by hyphens. Typically `namespace` will be the +# name of your package, and `event` the name of your command. +# E.g. `awesome-package:toggle`. +# # As the event bubbles upward through the DOM, all registered event listeners # with matching selectors are invoked in order of specificity. In the event of a # specificity tie, the most recently registered listener is invoked first. This