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