summaryrefslogtreecommitdiffstats
path: root/powerline/matchers/vim/plugin/commandt.py
blob: 7eefe9b70bf2e476fb8c24ccf757773ec8b67549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# vim:fileencoding=utf-8:noet
from __future__ import (unicode_literals, division, absolute_import, print_function)

import os

from powerline.bindings.vim import vim_getbufoption, buffer_name


def commandt(matcher_info):
	name = buffer_name(matcher_info)
	return (
		vim_getbufoption(matcher_info, 'filetype') == 'command-t'
		or (name and os.path.basename(name) == b'GoToFile')
	)