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:
29 Surround, Delete, Change
32 @configLoop = atom.config.observe 'vim-surround', (config) =>
33 @disposables.dispose() if @disposables?
34 @disposables = new CompositeDisposable
38 for cls in @commandClasses
39 command = new cls config
40 @commands.push command
41 @disposables.add command.disposables
43 consumeVimMode: (vimMode) -> @vimMode = vimMode
45 deactivate: () -> @disposables.dispose()