コード例 #1
0
        public bool LoadFileIntoExistingWindow(string filePath, ITextView textView)
        {
            // filePath can be a wildcard representing multiple files
            // e.g. :e ~/src/**/*.cs
            var files = ShellWildcardExpansion.ExpandWildcard(filePath, _vim.VimData.CurrentDirectory);

            try
            {
                foreach (var file in files)
                {
                    OpenTab(file);
                }
                return(true);
            }
            catch
            {
                return(false);
            }
        }
コード例 #2
0
 public ShellWildcardSearchScope(string workingDirectory, string wildcard)
 {
     files = ShellWildcardExpansion.ExpandWildcard(wildcard, workingDirectory, enumerateDirectories: true)
             .Select(f => new Provider(f))
             .ToImmutableArray();
 }