From 437d47ed052bab491cdbebff42021d8a673eb4d0 Mon Sep 17 00:00:00 2001 From: Samuel Carreira <96358868+samuel-pipelaunch@users.noreply.github.com> Date: Tue, 8 Nov 2022 18:58:20 +0000 Subject: [PATCH] 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. --- QuickLook.Plugin/QuickLook.Plugin.CsvViewer/Plugin.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/Plugin.cs b/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/Plugin.cs index bc61016..85d0e6b 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/Plugin.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/Plugin.cs @@ -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; } } -} \ No newline at end of file +}