proteome-0.9.10: Neovim Project Manager
Safe HaskellSafe-Inferred
LanguageHaskell2010

Proteome.Files

Synopsis

Documentation

data FileAction Source #

Instances

Instances details
Show FileAction Source # 
Instance details

Defined in Proteome.Files

Eq FileAction Source # 
Instance details

Defined in Proteome.Files

matchingPaths :: Member (Embed IO) r => [Path Abs Dir] -> Text -> Sem r (Text, [Path Rel Dir]) Source #

Search all dirs in bases for relative paths starting with text. First, split the last path segment (after /) off and collect the subdirectories of bases that start with the remainder. If there is no / in the text, parsing the remainder fails with Nothing and the bases themselves are used. Then, search the resulting dirs for subdirs starting with the last segment. Return the remainder and the relative subdir paths.