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()
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
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
def open(self, items): self.last_window = vfunc.winnr() self.outline = get_outline(items) self.show('') self.fill() self.loop.enter()
def open(self): self.last_window = vfunc.winnr() self.sbuf = vim.current.buffer self.list_view.clear() self.show(u'') self.loop.enter()