示例#1
0
 def open(self):
     self.matcher.clear()
     self.bmatcher.clear()
     self.file_iter_cache.clear()
     self.bmatcher.extend(self.get_buffer_paths())
     self.last_window = vfunc.winnr()
     self.roots = get_projects()
     self.list_view.clear()
     self.show(u'')
     self.loop.enter()
示例#2
0
 def open(self):
     self.matcher.clear()
     self.bmatcher.clear()
     self.file_iter_cache.clear()
     self.bmatcher.extend(self.get_buffer_paths())
     self.last_window = vfunc.winnr()
     self.roots = get_projects()
     self.list_view.clear()
     self.show(u'')
     self.loop.enter()
示例#3
0
def escape():
    if len(vim.windows) < 2:
        return

    cur = vfunc.winnr()

    for n, w in reversed(list(enumerate(vim.windows, 1))):
        if not buffer_with_file(w.buffer):
            if not '[Command Line]' in w.buffer.name:
                focus_window(n)
            vim.command('q')
            if n != cur:
                if cur > n:
                    cur -= 1

                focus_window(cur)

            return
示例#4
0
文件: plugin.py 项目: baverman/vial
def escape():
    if len(vim.windows) < 2:
        return

    cur = vfunc.winnr()

    for n, w in reversed(list(enumerate(vim.windows, 1))):
        if not buffer_with_file(w.buffer):
            if not '[Command Line]'in w.buffer.name:
                focus_window(n)
            vim.command('q')
            if n != cur:
                if cur > n:
                    cur -= 1

                focus_window(cur)

            return
示例#5
0
文件: outline.py 项目: solarnz/vial
 def open(self, items):
     self.last_window = vfunc.winnr()
     self.outline = get_outline(items)
     self.show('')
     self.fill()
     self.loop.enter()
示例#6
0
文件: outline.py 项目: baverman/vial
 def open(self, items):
     self.last_window = vfunc.winnr()
     self.outline = get_outline(items)
     self.show('')
     self.fill()
     self.loop.enter()
示例#7
0
 def open(self):
     self.last_window = vfunc.winnr()
     self.sbuf = vim.current.buffer
     self.list_view.clear()
     self.show(u'')
     self.loop.enter()
示例#8
0
文件: plugin.py 项目: baverman/vial
 def open(self):
     self.last_window = vfunc.winnr()
     self.sbuf = vim.current.buffer
     self.list_view.clear()
     self.show(u'')
     self.loop.enter()