Ejemplo n.º 1
0
 def run(self, inclusive=False):
     state = VintageState(self.view)
     if inclusive:
         state.motion = 'vi_inclusive_text_object'
     else:
         state.motion = 'vi_exclusive_text_object'
     state.expecting_user_input = True
Ejemplo n.º 2
0
 def run(self, inclusive=False):
     state = VintageState(self.view)
     if inclusive:
         state.motion = 'vi_inclusive_text_object'
     else:
         state.motion = 'vi_exclusive_text_object'
     state.expecting_user_input = True
Ejemplo n.º 3
0
 def on_done(self, s):
     # FIXME: Sublime Text seems to reset settings between the .run() call above and this
     # .on_done() method. An issue has been filed about this. Awaiting response.
     state = VintageState(self.view)
     state.motion = 'vi_forward_slash'
     state.user_input = s
     state.last_buffer_search = s
     state.run()
Ejemplo n.º 4
0
 def run(self, character=None):
     state = VintageState(self.view)
     if character is None:
         state.motion = 'vi_t'
         state.expecting_user_input = True
     else:
         state.user_input = character
         state.expecting_user_input= False
         state.run()
Ejemplo n.º 5
0
 def run(self, character=None):
     state = VintageState(self.view)
     if character is None:
         state.motion = 'vi_big_t'
         state.expecting_user_input = True
     else:
         state.user_input = character
         state.expecting_user_input = False
         state.eval()
Ejemplo n.º 6
0
 def run(self, edit, character=None):
     state = VintageState(self.view)
     if character is None:
         state.motion = 'vi_f'
         state.expecting_user_input = True
     else:
         # FIXME: Dead code?
         state.user_input = character
         state.expecting_user_input = False
         state.eval()
Ejemplo n.º 7
0
 def run(self, edit, character=None):
     state = VintageState(self.view)
     if character is None:
         state.motion = 'vi_f'
         state.expecting_user_input = True
     else:
         # FIXME: Dead code?
         state.user_input = character
         state.expecting_user_input= False
         state.run()
Ejemplo n.º 8
0
 def run(self, character=None):
     state = VintageState(self.view)
     if character is None:
         state.motion = 'vi_big_t'
         # XXX: Maybe we should simply use ["t", "<character>"] in the key map and be done
         # with this.
         state.expecting_user_input = True
     else:
         state.user_input = character
         state.expecting_user_input= False
         state.run()
Ejemplo n.º 9
0
    def on_done(self, s):
        state = VintageState(self.view)
        state.motion = 'vi_question_mark'

        state.user_input = s
        # Equivalent to ?<CR>, which must repeat the last search.
        if s == '':
            state.user_input = state.last_buffer_search

        if s != '':
            state.last_buffer_search = s
        state.eval()
Ejemplo n.º 10
0
    def on_done(self, s):
        self.view.erase_regions('vi_inc_search')
        state = VintageState(self.view)
        state.motion = 'vi_question_mark'

        state.user_input = s
        # Equivalent to ?<CR>, which must repeat the last search.
        if s == '':
            state.user_input = state.last_buffer_search

        if s != '':
            state.last_buffer_search = s
        state.eval()
Ejemplo n.º 11
0
    def on_done(self, s):
        self.view.erase_regions("vi_inc_search")
        state = VintageState(self.view)
        state.motion = "vi_question_mark"

        state.user_input = s
        # Equivalent to ?<CR>, which must repeat the last search.
        if s == "":
            state.user_input = state.last_buffer_search

        if s != "":
            state.last_buffer_search = s
        state.eval()
Ejemplo n.º 12
0
    def on_done(self, s):
        self.view.erase_regions('vi_inc_search')
        state = VintageState(self.view)
        state.motion = 'vi_forward_slash'

        state.user_input = s
        # Equivalent to /<CR>, which must repeat the last search.
        if s == '':
            state.user_input = state.last_buffer_search

        if s != '':
            state.last_buffer_search = s
        state.eval()
Ejemplo n.º 13
0
 def run(self, edit, motion, action):
     state = VintageState(self.view)
     state.motion = motion
     state.action = action
     state.run()
Ejemplo n.º 14
0
 def run(self):
     state = VintageState(self.view)
     state.motion = 'vi_big_f'
     state.expecting_user_input = True
Ejemplo n.º 15
0
 def run(self, edit, character=None):
     state = VintageState(self.view)
     state.motion = 'vi_quote'
     state.expecting_user_input = True
Ejemplo n.º 16
0
 def run(self):
     state = VintageState(self.view)
     state.motion = 'vi_big_f'
     state.expecting_user_input = True
Ejemplo n.º 17
0
 def run(self, motion):
     state = VintageState(self.view)
     state.motion = motion
     state.eval()
Ejemplo n.º 18
0
 def run(self, inclusive=False):
     state = VintageState(self.view)
     if inclusive:
         state.motion = 'vi_inclusive_text_object'
     else:
         state.motion = 'vi_exclusive_text_object'
Ejemplo n.º 19
0
 def run(self, motion):
     state = VintageState(self.view)
     state.motion = motion
     state.eval()
Ejemplo n.º 20
0
 def run(self, inclusive=False):
     state = VintageState(self.view)
     if inclusive:
         state.motion = 'vi_inclusive_text_object'
     else:
         state.motion = 'vi_exclusive_text_object'
Ejemplo n.º 21
0
 def run(self, edit, character=None):
     state = VintageState(self.view)
     state.motion = 'vi_quote'
     state.expecting_user_input = True