1 vimModePath = atom.packages.resolvePackagePath('vim-mode')
2 {SelectInsideQuotes, SelectInsideBrackets} = require "#{vimModePath}/lib/text-objects"
4 module.exports = class Selector
5 constructor: (@editor, left, right) ->
11 new SelectInsideBrackets(@editor, @left, @right, false)
13 new SelectInsideQuotes(@editor, @left, false)
17 new SelectInsideBrackets(@editor, @left, @right, true)
19 new SelectInsideQuotes(@editor, @left, true)
22 ['[', ']', '{', '}', '<', '>', '(', ')'].indexOf?(@left.trim()) >= 0