TSV file extension support (#1185)

if there are more file extensions to support maybe makes sense to readapt the code to iterate over a regex.
This commit is contained in:
Samuel Carreira
2022-11-08 18:58:20 +00:00
committed by GitHub
parent b80c264cdf
commit 437d47ed05

View File

@@ -34,7 +34,7 @@ namespace QuickLook.Plugin.CsvViewer
public bool CanHandle(string path) public bool CanHandle(string path)
{ {
return !Directory.Exists(path) && path.ToLower().EndsWith(".csv"); return !Directory.Exists(path) && (path.ToLower().EndsWith(".csv") || path.ToLower().EndsWith(".tsv"));
} }
public void Prepare(string path, ContextObject context) public void Prepare(string path, ContextObject context)