lib/bang.js
// Show the panel and get focus
Show the panel and get focus
Show the panel and get focus
open () {
    if (this.panel.isVisible()) return
    const editor = atom.workspace.getActiveTextEditor()
    this.storeFocusedElement()
    this.panel.show()
    this.message.textContent =
      this.dryCmd ?
        'Bang a command' :
        editor.getSelectedText().length ?
          'Filter the selected text with your command' :
          'Insert the output of the command in the text buffer'
    this.miniEditor.element.focus()
  }
open ( ) { if ( this . panel . isVisible ( ) ) return const editor = atom . workspace . getActiveTextEditor ( ) this . storeFocusedElement ( ) this . panel . show ( ) this . message . textContent = this . dryCmd ? 'Bang a command' : editor . getSelectedText ( ) . length ? 'Filter the selected text with your command' : 'Insert the output of the command in the text buffer' this . miniEditor . element . focus ( ) }
Show the panel and get focus
Show the panel and get focus