Okay. I have now created a package that demonstrates the problem. I have made minimal changes to the standard package created when using the package generator.
The github repo explains how to test it out.
If you don’t want to read the whole thing, here is a description of my changes. I changed
keymaps/focus.cson to add the following lines:
I made a few changes to
lib/focus-view.coffee. I changed the content as follows:
@div class: 'focus', =>
@div "The Focus package is Alive! It's ALIVE!"
@div outlet: 'focusBeep'
I added the “beep” command in the
initialize: (serializeState) ->
atom.workspaceView.command "focus:toggle", => @toggle()
atom.workspaceView.command 'focus:beep', => @beep()
I changed the method
toggle to use
appendToRight instead of
append, and to call
console.log "FocusView was toggled!"
I added the new method
The only other file I changed was the README – I’ll skip that one.