lib/bang.js
//    output: cycle form the most previously to the most recent command direction
cycle form the most previously to the most recent command direction
cycle form the most previously to the most recent command direction
next (direction) {
    let range = this.miniEditor.getSelectedBufferRange()
    this.miniEditor.setTextInBufferRange(range, '')
    const word = this.miniEditor.getText().trim()
    const suggestion = this.bangCommands.getNextCMD(word, direction)
    if (suggestion) {
      range = this.miniEditor.setTextInBufferRange(range, suggestion)
      this.miniEditor.addSelectionForBufferRange(range)
    }
  }
next ( direction ) { let range = this . miniEditor . getSelectedBufferRange ( ) this . miniEditor . setTextInBufferRange ( range , '' ) const word = this . miniEditor . getText ( ) . trim ( ) const suggestion = this . bangCommands . getNextCMD ( word , direction ) if ( suggestion ) { range = this . miniEditor . setTextInBufferRange ( range , suggestion ) this . miniEditor . addSelectionForBufferRange ( range ) } }
output: cycle form the most previously to the most recent command direction
output : cycle form the most previously to the most recent command direction