mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 22:05:43 +02:00
Improve documentation of Command-T support code
This commit is contained in:
parent
8cf2a86672
commit
a4fddff1fa
@ -21,6 +21,12 @@ Ctrl-P segments
|
|||||||
.. automodule:: powerline.segments.vim.plugin.ctrlp
|
.. automodule:: powerline.segments.vim.plugin.ctrlp
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
Command-T segments
|
||||||
|
------------------
|
||||||
|
|
||||||
|
.. automodule:: powerline.segments.vim.plugin.commandt
|
||||||
|
:members:
|
||||||
|
|
||||||
Tagbar segments
|
Tagbar segments
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
@ -46,8 +46,10 @@ initialized = False
|
|||||||
def finder(pl):
|
def finder(pl):
|
||||||
'''Display Command-T finder name
|
'''Display Command-T finder name
|
||||||
|
|
||||||
Requires $command_t.active_finder and .path methods (code above may
|
Requires $command_t.active_finder and methods (code above may monkey-patch
|
||||||
monkey-patch $command_t to add them).
|
$command_t to add them). All Command-T finders have ``CommandT::`` module
|
||||||
|
prefix, but it is stripped out (actually, any ``CommandT::`` substring will
|
||||||
|
be stripped out).
|
||||||
'''
|
'''
|
||||||
initialize()
|
initialize()
|
||||||
vim.command('ruby $powerline.commandt_set_active_finder')
|
vim.command('ruby $powerline.commandt_set_active_finder')
|
||||||
@ -66,6 +68,15 @@ FINDERS_WITHOUT_PATH = set((
|
|||||||
|
|
||||||
|
|
||||||
def path(pl):
|
def path(pl):
|
||||||
|
'''Display path used by Command-T
|
||||||
|
|
||||||
|
Requires $command_t.active_finder and .path methods (code above may
|
||||||
|
monkey-patch $command_t to add them).
|
||||||
|
|
||||||
|
$command_t.active_finder is required in order to omit displaying path for
|
||||||
|
finders ``MRUBufferFinder``, ``BufferFinder``, ``TagFinder`` and
|
||||||
|
``JumpFinder`` (pretty much any finder, except ``FileFinder``).
|
||||||
|
'''
|
||||||
initialize()
|
initialize()
|
||||||
vim.command('ruby $powerline.commandt_set_active_finder')
|
vim.command('ruby $powerline.commandt_set_active_finder')
|
||||||
finder = vim.eval('g:powerline_commandt_reply')
|
finder = vim.eval('g:powerline_commandt_reply')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user