示例#1
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()
示例#2
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()
示例#3
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()
示例#4
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()
示例#5
0
 def run(self, character=None):
     state = VintageState(self.view)
     state.user_input = character
     state.expecting_user_input= False
     state.run()
示例#6
0
 def run(self, edit, motion, action):
     state = VintageState(self.view)
     state.motion = motion
     state.action = action
     state.run()
示例#7
0
 def run(self, motion):
     state = VintageState(self.view)
     state.motion = motion
     state.run()
示例#8
0
 def run(self, action):
     state = VintageState(self.view)
     state.action = action
     state.run()