From a7b6f79ee1da35dc3e791b26ee4071e5249b0b9e Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Mon, 13 May 2019 02:48:46 +0200 Subject: [PATCH] - --- README.md | 3 ++- mpv.net/Windows/EverythingWindow.xaml.cs | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f573736..a7d2210 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ Table of contents - Support of the same [CLI options](https://mpv.io/manual/master/#options) as mpv - DXVA2 video decoding acceleration - OpenGL based video output capable of features loved by videophiles, such as video scaling with popular high quality algorithms, color management, frame timing, interpolation, HDR, and more +- Search feature powered by [Everything](https://www.voidtools.com) to find and play media ### Screenshots @@ -196,7 +197,7 @@ mpv.net bugs and requests: - there was a bug that caused underscores beeing removed from input like MBTN_LEFT_DBL - the search clear button in the input editor had a render issue in dark mode - new search feature added to search and play media files, requires - [Everything](https://www.voidtools.com) to be installed. [Default Binding]() + [Everything](https://www.voidtools.com) to be installed. [Default Binding](https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/inputConf.txt#L29) ### 3.5 (2019-05-09) diff --git a/mpv.net/Windows/EverythingWindow.xaml.cs b/mpv.net/Windows/EverythingWindow.xaml.cs index a0789de..f92035e 100644 --- a/mpv.net/Windows/EverythingWindow.xaml.cs +++ b/mpv.net/Windows/EverythingWindow.xaml.cs @@ -107,12 +107,14 @@ namespace mpvnet private void ListView_PreviewKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Escape) Close(); + if (e.Key == Key.Enter) Execute(); } void Execute() { if (ListView.SelectedItem != null) mp.LoadFiles(ListView.SelectedItem as string); + Keyboard.Focus(FilterTextBox); } private void ListView_MouseUp(object sender, MouseButtonEventArgs e) @@ -148,13 +150,12 @@ namespace mpvnet string ext = Path.GetExtension(buf.ToString()).TrimStart('.').ToLower(); if (App.AudioTypes.Contains(ext) || App.VideoTypes.Contains(ext)) items.Add(buf.ToString()); - if (items.Count > 20) break; + if (items.Count > 100) break; } Application.Current.Dispatcher.Invoke(() => { ListView.ItemsSource = items; SelectFirst(); }); - throw null; } catch (Exception) {