Beispiel #1
0
 def run(self, initial_text=':', cmd_line=''):
     # non-interactive call
     if cmd_line:
         self.non_interactive = True
         self.on_done(cmd_line)
         return
     v = show_ipanel(self.window, initial_text=initial_text,
                     on_done=self.on_done, on_change=self.on_change)
     v.set_syntax_file('Packages/Vintageous/VintageousEx Cmdline.tmLanguage')
     v.settings().set('gutter', False)
     v.settings().set('rulers', [])
Beispiel #2
0
    def run(self, initial_text=':', cmd_line=''):
        # non-interactive call
        if cmd_line:
            self.non_interactive = True
            self.on_done(cmd_line)
            return

        FsCompletion.invalidate()

        v = show_ipanel(self.window, initial_text=initial_text,
                        on_done=self.on_done, on_change=self.on_change)
        v.set_syntax_file('Packages/Vintageous/VintageousEx Cmdline.tmLanguage')
        v.settings().set('gutter', False)
        v.settings().set('rulers', [])
Beispiel #3
0
    def run(self, initial_text=':', cmd_line=''):
        # non-interactive call
        if cmd_line:
            self.non_interactive = True
            self.on_done(cmd_line)
            return

        FsCompletion.invalidate()

        if VintageState(self.window.active_view()).mode in (modes.VISUAL, modes.VISUAL_LINE):
            initial_text = ":'<,'>" + initial_text[1:]
        v = mark_as_widget(show_ipanel(self.window,
                                       initial_text=initial_text,
                                       on_done=self.on_done,
                                       on_change=self.on_change))
        v.set_syntax_file('Packages/Vintageous/VintageousEx Cmdline.tmLanguage')
        v.settings().set('gutter', False)
        v.settings().set('rulers', [])
Beispiel #4
0
    def run(self, initial_text=":", cmd_line=""):
        # non-interactive call
        if cmd_line:
            self.non_interactive = True
            self.on_done(cmd_line)
            return

        FsCompletion.invalidate()

        state = VintageState(self.window.active_view())
        if state.mode in (modes.VISUAL, modes.VISUAL_LINE):
            initial_text = ":'<,'>" + initial_text[1:]

        v = mark_as_widget(
            show_ipanel(self.window, initial_text=initial_text, on_done=self.on_done, on_change=self.on_change)
        )
        v.set_syntax_file("Packages/Vintageous/VintageousEx Cmdline.tmLanguage")
        v.settings().set("gutter", False)
        v.settings().set("rulers", [])

        state.reset_during_init = False
Beispiel #5
0
    def run(self, initial_text=':', cmd_line=''):
        # non-interactive call
        if cmd_line:
            self.non_interactive = True
            self.on_done(cmd_line)
            return

        FsCompletion.invalidate()

        state = VintageState(self.window.active_view())
        if state.mode in (modes.VISUAL, modes.VISUAL_LINE):
            initial_text = ":'<,'>" + initial_text[1:]

        v = mark_as_widget(show_ipanel(self.window,
                                       initial_text=initial_text,
                                       on_done=self.on_done,
                                       on_change=self.on_change))
        v.set_syntax_file('Packages/Vintageous/VintageousEx Cmdline.tmLanguage')
        v.settings().set('gutter', False)
        v.settings().set('rulers', [])

        state.reset_during_init = False
Beispiel #6
0
    def run(self, initial_text=':', cmd_line=''):
        if cmd_line:
            # The caller has provided a command, to we're not in interactive
            # mode -- just run the command.
            ViColonInput.interactive_call = False
            self.on_done(cmd_line)
            return
        else:
            ViColonInput.interactive_call = True

        FsCompletion.invalidate()

        v = mark_as_widget(show_ipanel(self.window,
               initial_text=self.adjust_initial_text(initial_text),
               on_done=self.on_done,
               on_change=self.on_change))

        v.set_syntax_file('Packages/Vintageous/VintageousEx Cmdline.tmLanguage')
        v.settings().set('gutter', False)
        v.settings().set('rulers', [])

        state = State(self.window.active_view())
        state.reset_during_init = False
Beispiel #7
0
    def run(self, initial_text=':', cmd_line=''):
        if cmd_line:
            # The caller has provided a command, to we're not in interactive
            # mode -- just run the command.
            ViColonInput.interactive_call = False
            self.on_done(cmd_line)
            return
        else:
            ViColonInput.interactive_call = True

        FsCompletion.invalidate()

        v = mark_as_widget(show_ipanel(self.window,
               initial_text=self.adjust_initial_text(initial_text),
               on_done=self.on_done,
               on_change=self.on_change))

        v.set_syntax_file('Packages/Vintageous/VintageousEx Cmdline.tmLanguage')
        v.settings().set('gutter', False)
        v.settings().set('rulers', [])

        state = State(self.window.active_view())
        state.reset_during_init = False