def evernote_get_notebook_name(pl): if not bufvar_exists(None, 'EvernoteNotebook'): return None name = vim.eval('getbufvar("%", "EvernoteNotebook")') return [{ 'contents': name, 'highlight_group': ['file_name'], }]
def evernote_get_note_title(pl): if not bufvar_exists(None, 'EvernoteTitle'): return None title = vim.eval('getbufvar("%", "EvernoteTitle")') return [{ 'contents': title, 'highlight_group': ['file_name'], }]
def geeknote_get_notebook_name(pl): if not bufvar_exists(None, 'GeeknoteNotebook'): return None name = vim.eval('getbufvar("%", "GeeknoteNotebook")') return [{ 'contents': name, 'highlight_group': ['file_name'], }]
def geeknote_get_note_title(pl): if not bufvar_exists(None, 'GeeknoteTitle'): return None title = vim.eval('getbufvar("%", "GeeknoteTitle")') return [{ 'contents': title, 'highlight_group': ['file_name'], }]
def nerdtree(pl): '''Return directory that is shown by the current buffer. Highlight groups used: ``nerdtree.path`` or ``file_name``. ''' if not bufvar_exists(None, 'NERDTreeRoot'): return None path_str = vim.eval('getbufvar("%", "NERDTreeRoot").path.str()') return [{ 'contents': path_str, 'highlight_group': ['nerdtree.path', 'file_name'], }]
def nerdtree(pl): '''Return directory that is shown by the current buffer. Highlight groups used: ``nerdtree:path`` or ``file_name``. ''' if not bufvar_exists(None, 'NERDTreeRoot'): return None path_str = vim.eval('getbufvar("%", "NERDTreeRoot").path.str()') return [{ 'contents': path_str, 'highlight_groups': ['nerdtree:path', 'file_name'], }]