mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 09:49:07 +00:00
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:
@@ -34,7 +34,7 @@ namespace QuickLook.Plugin.CsvViewer
|
||||
|
||||
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)
|
||||
@@ -60,4 +60,4 @@ namespace QuickLook.Plugin.CsvViewer
|
||||
_panel = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user