mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[PT Run] [Folder Plugin] Environment Variables With Autocomplete (#13811)
* search environment variables folders with autocomplete * refactoring and tests * fix
This commit is contained in:
committed by
GitHub
parent
15f3c2ff66
commit
64cc6b7af7
@@ -26,11 +26,14 @@ namespace Microsoft.Plugin.Folder
|
||||
private static readonly FolderSettings _settings = _storage.Load();
|
||||
private static readonly IQueryInternalDirectory _internalDirectory = new QueryInternalDirectory(_settings, new QueryFileSystemInfo(_fileSystem.DirectoryInfo), _fileSystem.Directory);
|
||||
private static readonly FolderHelper _folderHelper = new FolderHelper(new DriveInformation(), new FolderLinksSettings(_settings));
|
||||
private static readonly IEnvironmentHelper _environmentHelper = new EnvironmentHelper();
|
||||
private static readonly IQueryEnvironmentVariable _queryEnvironmentVariable = new QueryEnvironmentVariable(_fileSystem.Directory, _environmentHelper);
|
||||
|
||||
private static readonly ICollection<IFolderProcessor> _processors = new IFolderProcessor[]
|
||||
{
|
||||
new UserFolderProcessor(_folderHelper),
|
||||
new InternalDirectoryProcessor(_folderHelper, _internalDirectory),
|
||||
new EnvironmentVariableProcessor(_environmentHelper, _queryEnvironmentVariable),
|
||||
};
|
||||
|
||||
private static PluginInitContext _context;
|
||||
|
||||
Reference in New Issue
Block a user