mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 09:40:06 +08:00
22 lines
644 B
Python
22 lines
644 B
Python
|
# ============================================================================
|
||
|
# FILE: directory_mru.py
|
||
|
# AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
|
||
|
# License: MIT license
|
||
|
# ============================================================================
|
||
|
|
||
|
from .base import Base
|
||
|
|
||
|
|
||
|
class Source(Base):
|
||
|
|
||
|
def __init__(self, vim):
|
||
|
Base.__init__(self, vim)
|
||
|
|
||
|
self.name = 'directory_mru'
|
||
|
self.kind = 'directory'
|
||
|
self.default_action = 'cd'
|
||
|
|
||
|
def gather_candidates(self, context):
|
||
|
return [{'word': x, 'action__path': x} for x
|
||
|
in self.vim.call('neomru#_gather_directory_candidates')]
|