1 {CompositeDisposable} = require 'atom'
3 Surround = require './command/surround'
4 Delete = require './command/delete'
5 Change = require './command/change'
11 default: ['()', '{}', '[]', '""', "''"]
14 changeSurroundCommand:
17 deleteSurroundCommand:
26 Surround, Delete, Change
29 @configLoop = atom.config.observe 'vim-surround', (config) =>
30 @disposables.dispose() if @disposables?
31 @disposables = new CompositeDisposable
35 for cls in @commandClasses
36 command = new cls config
37 @commands.push command
38 @disposables.add command.disposables
41 @disposables.dispose()