예제 #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()