I wish I could explain why in a one liner, but the answer unfortunately isn't that simple !
I've gone into some depth trying to explain the BOT model through code in Light Table in this blog post:
http://rundis.github.io/blog/2015/lt_react.htmlI'll try and give a simplified version:
The LT architecture is build on a Behavior Object Tag model as explained in
http://www.chris-granger.com/2013/01/24/the-ide-as-data/Commands is a user entry point into to the bot, typically commands are used for things that have keyboard shortcuts.
The keyboard shortcut vector contains: [:tag "someshortcut" :command-name]
- so in your example ":editor.clojure" is a tag. This tag is added by LT
to any editor object that it deems to be a clojure file. So when you
have an clj file open and focus that is backed by an object which has a
tag :editor.clojure (it also has several other tags btw).
- LT will not even try to invoke a command if it doesn't find an object with the tag you provide in the keyboard shortcut vector. ":evaler" I suspect is not a known tag for any relevant Light Table object. So it resulted in a no-op !
- The plot thickens though, because a command will typically trigger one or more behaviors. Behaviors are also scoped by tags... The model is very very flexible, but the flip-side is that it's somewhat hard to understand and even more difficult to explain sensibly to someone new to Light Table (:
Anyways, all editors have a ":editor" tag. So for this shortcut you could have written
[:editor "cmd-k" :clear-inline-results], then it would work for any editor type (regardless of language) that have implemented features for showing inline results.
App wide shortcuts (ie shortcuts not tied to a specific editor), can typically be scoped by :app. I think if you select "Settings: Default keymap" from the command menu in LT you will get an idea of a few
of the default tags (backed by objects) ships with. Plugins may have other objects and tags etc.
I fear I might have confused you more than helped you. Just ask if you need more assistance though.
cheers
Magnus