diff --git a/Flow.Launcher/Languages/sk.xaml b/Flow.Launcher/Languages/sk.xaml
index 85fc1462c..64230a93a 100644
--- a/Flow.Launcher/Languages/sk.xaml
+++ b/Flow.Launcher/Languages/sk.xaml
@@ -17,6 +17,7 @@
Nastavenia Flow Launchera
Všeobecné
+ Prenosný režim
Spustiť Flow Launcher po štarte systému
Schovať Flow Launcher po strate fokusu
Nezobrazovať upozornenia na novú verziu
@@ -39,10 +40,13 @@
Plugin
Nájsť ďalšie pluginy
+ Povoliť
Zakázať
Skratka akcie
Aktuálna akcia skratky:
Nová akcia skratky:
+ Aktuálna priorita:
+ Nová priorita:
Priečinok s pluginmi
Autor
Príprava:
@@ -104,6 +108,10 @@
Poznámky k vydaniu
+
+ Vyššie číslo znamená, že výsledok bude vyššie. Skúste nastaviť napr. 5. Ak chcete, aby boli výsledky nižšie ako ktorékoľvek iné doplnky, zadajte záporné číslo
+ Prosím, zadajte platné číslo pre prioritu!
+
Stará skratka akcie
Nová skratka akcie
@@ -116,6 +124,7 @@
Použite * ak nechcete určiť skratku pre akciu
+ Vlastná klávesová skratka pre plugin
Náhľad
Klávesová skratka je nedostupná, prosím, zadajte novú
Neplatná klávesová skratka pluginu
@@ -140,11 +149,23 @@
Odoslanie hlásenia zlyhalo
Flow Launcher zaznamenal chybu
+
+ Čakajte, prosím…
+
- Je dostupná nová verzia Flow Launcher {0}
+ Kontrolujú sa akutalizácie
+ Už máte najnovšiu verizu Flow Launchera
+ Bola nájdená aktualizácia
+ Aktualizuje sa…
+ Flow Launcher nedokázal presunúť používateľské údaje do aktualizovanej verzie.
+ Prosím, presuňte profilový priečinok „data“ z {0} do {1}
+ Nová aktualizácia
+ Je dostupná nová verzia Flow Launchera {0}
Počas inštalácie aktualizácií došlo k chybe
Aktualizovať
Zrušiť
+ Aktualizácia zlyhala
+ Skontrolujte pripojenie a skúste aktualizovať nastavenia servera proxy na github-cloud.s3.amazonaws.com.
Tento upgrade reštartuje Flow Launcher
Nasledujúce súbory budú aktualizované
Aktualizovať súbory
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs
index c9a0b7303..21eb844b4 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs
@@ -7,12 +7,13 @@ using System.Windows;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Plugin.SharedCommands;
using Flow.Launcher.Plugin.Explorer.Search;
-using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
+using Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks;
using System.Linq;
using MessageBox = System.Windows.Forms.MessageBox;
using MessageBoxIcon = System.Windows.Forms.MessageBoxIcon;
using MessageBoxButton = System.Windows.Forms.MessageBoxButtons;
using DialogResult = System.Windows.Forms.DialogResult;
+using Flow.Launcher.Plugin.Explorer.ViewModels;
namespace Flow.Launcher.Plugin.Explorer
{
@@ -22,10 +23,13 @@ namespace Flow.Launcher.Plugin.Explorer
private Settings Settings { get; set; }
- public ContextMenu(PluginInitContext context, Settings settings)
+ private SettingsViewModel ViewModel { get; set; }
+
+ public ContextMenu(PluginInitContext context, Settings settings, SettingsViewModel vm)
{
Context = context;
Settings = settings;
+ ViewModel = vm;
}
public List LoadContextMenus(Result selectedResult)
@@ -50,6 +54,58 @@ namespace Flow.Launcher.Plugin.Explorer
var icoPath = (record.Type == ResultType.File) ? Constants.FileImagePath : Constants.FolderImagePath;
var fileOrFolder = (record.Type == ResultType.File) ? "file" : "folder";
+
+ if (!Settings.QuickAccessLinks.Any(x => x.Path == record.FullPath))
+ {
+ contextMenus.Add(new Result
+ {
+ Title = Context.API.GetTranslation("plugin_explorer_add_to_quickaccess_title"),
+ SubTitle = string.Format(Context.API.GetTranslation("plugin_explorer_add_to_quickaccess_subtitle"), fileOrFolder),
+ Action = (context) =>
+ {
+ Settings.QuickAccessLinks.Add(new AccessLink { Path = record.FullPath, Type = record.Type });
+
+ Context.API.ShowMsg(Context.API.GetTranslation("plugin_explorer_addfilefoldersuccess"),
+ string.Format(
+ Context.API.GetTranslation("plugin_explorer_addfilefoldersuccess_detail"),
+ fileOrFolder),
+ Constants.ExplorerIconImageFullPath);
+
+ ViewModel.Save();
+
+ return true;
+ },
+ SubTitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_titletooltip"),
+ TitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_titletooltip"),
+ IcoPath = Constants.QuickAccessImagePath
+ });
+ }
+ else
+ {
+ contextMenus.Add(new Result
+ {
+ Title = Context.API.GetTranslation("plugin_explorer_remove_from_quickaccess_title"),
+ SubTitle = string.Format(Context.API.GetTranslation("plugin_explorer_remove_from_quickaccess_subtitle"), fileOrFolder),
+ Action = (context) =>
+ {
+ Settings.QuickAccessLinks.Remove(Settings.QuickAccessLinks.FirstOrDefault(x => x.Path == record.FullPath));
+
+ Context.API.ShowMsg(Context.API.GetTranslation("plugin_explorer_removefilefoldersuccess"),
+ string.Format(
+ Context.API.GetTranslation("plugin_explorer_removefilefoldersuccess_detail"),
+ fileOrFolder),
+ Constants.ExplorerIconImageFullPath);
+
+ ViewModel.Save();
+
+ return true;
+ },
+ SubTitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_remove_titletooltip"),
+ TitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_remove_titletooltip"),
+ IcoPath = Constants.RemoveQuickAccessImagePath
+ });
+ }
+
contextMenus.Add(new Result
{
Title = Context.API.GetTranslation("plugin_explorer_copypath"),
@@ -228,7 +284,7 @@ namespace Flow.Launcher.Plugin.Explorer
Action = _ =>
{
if(!Settings.IndexSearchExcludedSubdirectoryPaths.Any(x => x.Path == record.FullPath))
- Settings.IndexSearchExcludedSubdirectoryPaths.Add(new FolderLink { Path = record.FullPath });
+ Settings.IndexSearchExcludedSubdirectoryPaths.Add(new AccessLink { Path = record.FullPath });
Task.Run(() =>
{
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Images/quickaccess.png b/Plugins/Flow.Launcher.Plugin.Explorer/Images/quickaccess.png
new file mode 100644
index 000000000..470a6782f
Binary files /dev/null and b/Plugins/Flow.Launcher.Plugin.Explorer/Images/quickaccess.png differ
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Images/removequickaccess.png b/Plugins/Flow.Launcher.Plugin.Explorer/Images/removequickaccess.png
new file mode 100644
index 000000000..fbfb0b960
Binary files /dev/null and b/Plugins/Flow.Launcher.Plugin.Explorer/Images/removequickaccess.png differ
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
index 2fb16e0e1..9ba0da3f6 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
@@ -16,7 +16,7 @@
Edit
Add
Customise Action Keywords
- Quick Folder Access Paths
+ Quick Access Links
Index Search Excluded Paths
Indexing Options
Search Activation:
@@ -42,5 +42,15 @@
Open Windows Indexing Options
Manage indexed files and folders
Failed to open Windows Indexing Options
+ Add to Quick Access
+ Add the current {0} to Quick Access
+ Successfully Added
+ Successfully added to Quick Access
+ Successfully Removed
+ Successfully removed from Quick Access
+ Add to Quick Access so it can be opened with Explorer's Search Activation action keyword
+ Remove from Quick Access
+ Remove from Quick Access
+ Remove the current {0} from Quick Access
\ No newline at end of file
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs
index 7b56df691..8002369a4 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs
@@ -1,8 +1,10 @@
using Flow.Launcher.Infrastructure.Storage;
using Flow.Launcher.Plugin.Explorer.Search;
+using Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks;
using Flow.Launcher.Plugin.Explorer.ViewModels;
using Flow.Launcher.Plugin.Explorer.Views;
using System.Collections.Generic;
+using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Controls;
@@ -32,7 +34,15 @@ namespace Flow.Launcher.Plugin.Explorer
viewModel = new SettingsViewModel(context);
await viewModel.LoadStorage();
Settings = viewModel.Settings;
- contextMenu = new ContextMenu(Context, Settings);
+
+ // as at v1.7.0 this is to maintain backwards compatibility, need to be removed afterwards.
+ if (Settings.QuickFolderAccessLinks.Any())
+ {
+ Settings.QuickAccessLinks = Settings.QuickFolderAccessLinks;
+ Settings.QuickFolderAccessLinks = new List();
+ }
+
+ contextMenu = new ContextMenu(Context, Settings, viewModel);
searchManager = new SearchManager(Settings, Context);
}
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs
index 38939e244..78c7c98a5 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs
@@ -15,6 +15,8 @@ namespace Flow.Launcher.Plugin.Explorer.Search
internal const string ExplorerIconImagePath = "Images\\explorer.png";
internal const string DifferentUserIconImagePath = "Images\\user.png";
internal const string IndexingOptionsIconImagePath = "Images\\windowsindexingoptions.png";
+ internal const string QuickAccessImagePath = "Images\\quickaccess.png";
+ internal const string RemoveQuickAccessImagePath = "Images\\removequickaccess.png";
internal const string ToolTipOpenDirectory = "Ctrl + Enter to open the directory";
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/FolderLinks/QuickFolderAccess.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/FolderLinks/QuickFolderAccess.cs
deleted file mode 100644
index 6f0020ac9..000000000
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/FolderLinks/QuickFolderAccess.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-
-namespace Flow.Launcher.Plugin.Explorer.Search.FolderLinks
-{
- public class QuickFolderAccess
- {
- private readonly ResultManager resultManager;
-
- public QuickFolderAccess(PluginInitContext context)
- {
- resultManager = new ResultManager(context);
- }
-
- internal List FolderListMatched(Query query, List folderLinks)
- {
- if (string.IsNullOrEmpty(query.Search))
- return new List();
-
- string search = query.Search.ToLower();
-
- var queriedFolderLinks =
- folderLinks.Where(x => x.Nickname.StartsWith(search, StringComparison.OrdinalIgnoreCase));
-
- return queriedFolderLinks.Select(item =>
- resultManager.CreateFolderResult(item.Nickname, item.Path, item.Path, query))
- .ToList();
- }
-
- internal List FolderListAll(Query query, List folderLinks)
- => folderLinks
- .Select(item => resultManager.CreateFolderResult(item.Nickname, item.Path, item.Path, query))
- .ToList();
- }
-}
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/FolderLinks/FolderLink.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/QuickAccessLinks/AccessLink.cs
similarity index 80%
rename from Plugins/Flow.Launcher.Plugin.Explorer/Search/FolderLinks/FolderLink.cs
rename to Plugins/Flow.Launcher.Plugin.Explorer/Search/QuickAccessLinks/AccessLink.cs
index 43ecdad97..f623cc2ca 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/FolderLinks/FolderLink.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/QuickAccessLinks/AccessLink.cs
@@ -1,14 +1,15 @@
using System;
using System.Linq;
-using System.Text.Json;
using System.Text.Json.Serialization;
-namespace Flow.Launcher.Plugin.Explorer.Search.FolderLinks
+namespace Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks
{
- public class FolderLink
+ public class AccessLink
{
public string Path { get; set; }
+ public ResultType Type { get; set; } = ResultType.Folder;
+
[JsonIgnore]
public string Nickname
{
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/QuickAccessLinks/QuickAccess.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/QuickAccessLinks/QuickAccess.cs
new file mode 100644
index 000000000..270e8825a
--- /dev/null
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/QuickAccessLinks/QuickAccess.cs
@@ -0,0 +1,50 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks
+{
+ public class QuickAccess
+ {
+ private readonly ResultManager resultManager;
+
+ public QuickAccess(PluginInitContext context)
+ {
+ resultManager = new ResultManager(context);
+ }
+
+ internal List AccessLinkListMatched(Query query, List accessLinks)
+ {
+ if (string.IsNullOrEmpty(query.Search))
+ return new List();
+
+ string search = query.Search.ToLower();
+
+ var queriedAccessLinks =
+ accessLinks
+ .Where(x => x.Nickname.StartsWith(search, StringComparison.OrdinalIgnoreCase))
+ .OrderBy(x => x.Type)
+ .ThenBy(x => x.Nickname);
+
+ return queriedAccessLinks.Select(l => l.Type switch
+ {
+ ResultType.Folder => resultManager.CreateFolderResult(l.Nickname, l.Path, l.Path, query),
+ ResultType.File => resultManager.CreateFileResult(l.Path, query),
+ _ => throw new ArgumentOutOfRangeException()
+
+ }).ToList();
+ }
+
+ internal List AccessLinkListAll(Query query, List accessLinks)
+ => accessLinks
+ .OrderBy(x => x.Type)
+ .ThenBy(x => x.Nickname)
+ .Select(l => l.Type switch
+ {
+ ResultType.Folder => resultManager.CreateFolderResult(l.Nickname, l.Path, l.Path, query),
+ ResultType.File => resultManager.CreateFileResult(l.Path, query),
+ _ => throw new ArgumentOutOfRangeException()
+
+ }).ToList();
+ }
+}
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs
index 6a336c59a..24eb99724 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/ResultManager.cs
@@ -140,7 +140,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
public bool ShowIndexState { get; set; }
}
- internal enum ResultType
+ public enum ResultType
{
Volume,
Folder,
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs
index 14aefeb19..f8ba3a56f 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs
@@ -1,5 +1,5 @@
using Flow.Launcher.Plugin.Explorer.Search.DirectoryInfo;
-using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
+using Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks;
using Flow.Launcher.Plugin.Explorer.Search.WindowsIndex;
using Flow.Launcher.Plugin.SharedCommands;
using System;
@@ -16,7 +16,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
private readonly IndexSearch indexSearch;
- private readonly QuickFolderAccess quickFolderAccess;
+ private readonly QuickAccess quickAccess;
private readonly ResultManager resultManager;
@@ -28,7 +28,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
indexSearch = new IndexSearch(context);
resultManager = new ResultManager(context);
this.settings = settings;
- quickFolderAccess = new QuickFolderAccess(context);
+ quickAccess = new QuickAccess(context);
}
internal async Task> SearchAsync(Query query, CancellationToken token)
@@ -42,12 +42,12 @@ namespace Flow.Launcher.Plugin.Explorer.Search
// This allows the user to type the assigned action keyword and only see the list of quick folder links
if (string.IsNullOrEmpty(query.Search))
- return quickFolderAccess.FolderListAll(query, settings.QuickFolderAccessLinks);
+ return quickAccess.AccessLinkListAll(query, settings.QuickAccessLinks);
- var quickFolderLinks = quickFolderAccess.FolderListMatched(query, settings.QuickFolderAccessLinks);
+ var quickaccessLinks = quickAccess.AccessLinkListMatched(query, settings.QuickAccessLinks);
- if (quickFolderLinks.Count > 0)
- results.AddRange(quickFolderLinks);
+ if (quickaccessLinks.Count > 0)
+ results.AddRange(quickaccessLinks);
var isEnvironmentVariable = EnvironmentVariables.IsEnvironmentVariableSearch(querySearch);
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs
index e62637896..a8eac986d 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs
@@ -1,5 +1,5 @@
using Flow.Launcher.Plugin.Explorer.Search;
-using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
+using Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks;
using System.Collections.Generic;
namespace Flow.Launcher.Plugin.Explorer
@@ -8,11 +8,14 @@ namespace Flow.Launcher.Plugin.Explorer
{
public int MaxResult { get; set; } = 100;
- public List QuickFolderAccessLinks { get; set; } = new List();
+ public List QuickAccessLinks { get; set; } = new List();
+
+ // as at v1.7.0 this is to maintain backwards compatibility, need to be removed afterwards.
+ public List QuickFolderAccessLinks { get; set; } = new List();
public bool UseWindowsIndexForDirectorySearch { get; set; } = true;
- public List IndexSearchExcludedSubdirectoryPaths { get; set; } = new List();
+ public List IndexSearchExcludedSubdirectoryPaths { get; set; } = new List();
public string SearchActionKeyword { get; set; } = Query.GlobalPluginWildcardSign;
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs
index 21bc49741..791c06b66 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs
@@ -1,7 +1,7 @@
using Flow.Launcher.Core.Plugin;
using Flow.Launcher.Infrastructure.Storage;
using Flow.Launcher.Plugin.Explorer.Search;
-using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
+using Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks;
using System.Diagnostics;
using System.Threading.Tasks;
@@ -32,9 +32,9 @@ namespace Flow.Launcher.Plugin.Explorer.ViewModels
storage.Save();
}
- internal void RemoveFolderLinkFromQuickFolders(FolderLink selectedRow) => Settings.QuickFolderAccessLinks.Remove(selectedRow);
+ internal void RemoveLinkFromQuickAccess(AccessLink selectedRow) => Settings.QuickAccessLinks.Remove(selectedRow);
- internal void RemoveFolderLinkFromExcludedIndexPaths(FolderLink selectedRow) => Settings.IndexSearchExcludedSubdirectoryPaths.Remove(selectedRow);
+ internal void RemoveAccessLinkFromExcludedIndexPaths(AccessLink selectedRow) => Settings.IndexSearchExcludedSubdirectoryPaths.Remove(selectedRow);
internal void OpenWindowsIndexingOptions()
{
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml
index 9d6f4976e..13d46394c 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml
@@ -7,7 +7,7 @@
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
-
+
@@ -40,22 +40,22 @@
-
+ x:Name="lbxAccessLinks" AllowDrop="True"
+ Drop="lbxAccessLinks_Drop"
+ DragEnter="lbxAccessLinks_DragEnter"
+ ItemTemplate="{StaticResource ListViewTemplateAccessLinks}"/>
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs
index 3b67b408d..5d2980c55 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs
@@ -1,4 +1,4 @@
-using Flow.Launcher.Plugin.Explorer.Search.FolderLinks;
+using Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks;
using Flow.Launcher.Plugin.Explorer.ViewModels;
using System;
using System.Collections.Generic;
@@ -29,7 +29,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
this.viewModel = viewModel;
- lbxFolderLinks.ItemsSource = this.viewModel.Settings.QuickFolderAccessLinks;
+ lbxAccessLinks.ItemsSource = this.viewModel.Settings.QuickAccessLinks;
lbxExcludedPaths.ItemsSource = this.viewModel.Settings.IndexSearchExcludedSubdirectoryPaths;
@@ -54,7 +54,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
public void RefreshView()
{
- lbxFolderLinks.Items.SortDescriptions.Add(new SortDescription("Path", ListSortDirection.Ascending));
+ lbxAccessLinks.Items.SortDescriptions.Add(new SortDescription("Path", ListSortDirection.Ascending));
lbxExcludedPaths.Items.SortDescriptions.Add(new SortDescription("Path", ListSortDirection.Ascending));
@@ -62,7 +62,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
btnEdit.Visibility = Visibility.Hidden;
btnAdd.Visibility = Visibility.Hidden;
- if (expFolderLinks.IsExpanded || expExcludedPaths.IsExpanded || expActionKeywords.IsExpanded)
+ if (expAccessLinks.IsExpanded || expExcludedPaths.IsExpanded || expActionKeywords.IsExpanded)
{
if (!expActionKeywords.IsExpanded)
btnAdd.Visibility = Visibility.Visible;
@@ -71,7 +71,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
&& btnEdit.Visibility == Visibility.Hidden)
btnEdit.Visibility = Visibility.Visible;
- if ((lbxFolderLinks.Items.Count == 0 && lbxExcludedPaths.Items.Count == 0)
+ if ((lbxAccessLinks.Items.Count == 0 && lbxExcludedPaths.Items.Count == 0)
&& btnDelete.Visibility == Visibility.Visible
&& btnEdit.Visibility == Visibility.Visible)
{
@@ -79,8 +79,8 @@ namespace Flow.Launcher.Plugin.Explorer.Views
btnEdit.Visibility = Visibility.Hidden;
}
- if (expFolderLinks.IsExpanded
- && lbxFolderLinks.Items.Count > 0
+ if (expAccessLinks.IsExpanded
+ && lbxAccessLinks.Items.Count > 0
&& btnDelete.Visibility == Visibility.Hidden
&& btnEdit.Visibility == Visibility.Hidden)
{
@@ -98,7 +98,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
}
}
- lbxFolderLinks.Items.Refresh();
+ lbxAccessLinks.Items.Refresh();
lbxExcludedPaths.Items.Refresh();
@@ -113,8 +113,8 @@ namespace Flow.Launcher.Plugin.Explorer.Views
if (expExcludedPaths.IsExpanded)
expExcludedPaths.IsExpanded = false;
- if (expFolderLinks.IsExpanded)
- expFolderLinks.IsExpanded = false;
+ if (expAccessLinks.IsExpanded)
+ expAccessLinks.IsExpanded = false;
RefreshView();
}
@@ -125,10 +125,10 @@ namespace Flow.Launcher.Plugin.Explorer.Views
expActionKeywords.Height = Double.NaN;
}
- private void expFolderLinks_Click(object sender, RoutedEventArgs e)
+ private void expAccessLinks_Click(object sender, RoutedEventArgs e)
{
- if (expFolderLinks.IsExpanded)
- expFolderLinks.Height = 215;
+ if (expAccessLinks.IsExpanded)
+ expAccessLinks.Height = 215;
if (expExcludedPaths.IsExpanded)
expExcludedPaths.IsExpanded = false;
@@ -139,19 +139,19 @@ namespace Flow.Launcher.Plugin.Explorer.Views
RefreshView();
}
- private void expFolderLinks_Collapsed(object sender, RoutedEventArgs e)
+ private void expAccessLinks_Collapsed(object sender, RoutedEventArgs e)
{
- if (!expFolderLinks.IsExpanded)
- expFolderLinks.Height = Double.NaN;
+ if (!expAccessLinks.IsExpanded)
+ expAccessLinks.Height = Double.NaN;
}
private void expExcludedPaths_Click(object sender, RoutedEventArgs e)
{
if (expExcludedPaths.IsExpanded)
- expFolderLinks.Height = Double.NaN;
+ expAccessLinks.Height = Double.NaN;
- if (expFolderLinks.IsExpanded)
- expFolderLinks.IsExpanded = false;
+ if (expAccessLinks.IsExpanded)
+ expAccessLinks.IsExpanded = false;
if (expActionKeywords.IsExpanded)
expActionKeywords.IsExpanded = false;
@@ -161,7 +161,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
private void btnDelete_Click(object sender, RoutedEventArgs e)
{
- var selectedRow = lbxFolderLinks.SelectedItem as FolderLink?? lbxExcludedPaths.SelectedItem as FolderLink;
+ var selectedRow = lbxAccessLinks.SelectedItem as AccessLink?? lbxExcludedPaths.SelectedItem as AccessLink;
if (selectedRow != null)
{
@@ -169,11 +169,11 @@ namespace Flow.Launcher.Plugin.Explorer.Views
if (MessageBox.Show(msg, string.Empty, MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
- if (expFolderLinks.IsExpanded)
- viewModel.RemoveFolderLinkFromQuickFolders(selectedRow);
+ if (expAccessLinks.IsExpanded)
+ viewModel.RemoveLinkFromQuickAccess(selectedRow);
if (expExcludedPaths.IsExpanded)
- viewModel.RemoveFolderLinkFromExcludedIndexPaths(selectedRow);
+ viewModel.RemoveAccessLinkFromExcludedIndexPaths(selectedRow);
RefreshView();
}
@@ -199,7 +199,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
}
else
{
- var selectedRow = lbxFolderLinks.SelectedItem as FolderLink ?? lbxExcludedPaths.SelectedItem as FolderLink;
+ var selectedRow = lbxAccessLinks.SelectedItem as AccessLink ?? lbxExcludedPaths.SelectedItem as AccessLink;
if (selectedRow != null)
{
@@ -207,9 +207,9 @@ namespace Flow.Launcher.Plugin.Explorer.Views
folderBrowserDialog.SelectedPath = selectedRow.Path;
if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
- if (expFolderLinks.IsExpanded)
+ if (expAccessLinks.IsExpanded)
{
- var link = viewModel.Settings.QuickFolderAccessLinks.First(x => x.Path == selectedRow.Path);
+ var link = viewModel.Settings.QuickAccessLinks.First(x => x.Path == selectedRow.Path);
link.Path = folderBrowserDialog.SelectedPath;
}
@@ -235,36 +235,36 @@ namespace Flow.Launcher.Plugin.Explorer.Views
var folderBrowserDialog = new FolderBrowserDialog();
if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
- var newFolderLink = new FolderLink
+ var newAccessLink = new AccessLink
{
Path = folderBrowserDialog.SelectedPath
};
- AddFolderLink(newFolderLink);
+ AddAccessLink(newAccessLink);
}
RefreshView();
}
- private void lbxFolders_Drop(object sender, DragEventArgs e)
+ private void lbxAccessLinks_Drop(object sender, DragEventArgs e)
{
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
if (files != null && files.Count() > 0)
{
- if (expFolderLinks.IsExpanded && viewModel.Settings.QuickFolderAccessLinks == null)
- viewModel.Settings.QuickFolderAccessLinks = new List();
+ if (expAccessLinks.IsExpanded && viewModel.Settings.QuickAccessLinks == null)
+ viewModel.Settings.QuickAccessLinks = new List();
foreach (string s in files)
{
if (Directory.Exists(s))
{
- var newFolderLink = new FolderLink
+ var newFolderLink = new AccessLink
{
Path = s
};
- AddFolderLink(newFolderLink);
+ AddAccessLink(newFolderLink);
}
RefreshView();
@@ -272,28 +272,28 @@ namespace Flow.Launcher.Plugin.Explorer.Views
}
}
- private void AddFolderLink(FolderLink newFolderLink)
+ private void AddAccessLink(AccessLink newAccessLink)
{
- if (expFolderLinks.IsExpanded
- && !viewModel.Settings.QuickFolderAccessLinks.Any(x => x.Path == newFolderLink.Path))
+ if (expAccessLinks.IsExpanded
+ && !viewModel.Settings.QuickAccessLinks.Any(x => x.Path == newAccessLink.Path))
{
- if (viewModel.Settings.QuickFolderAccessLinks == null)
- viewModel.Settings.QuickFolderAccessLinks = new List();
+ if (viewModel.Settings.QuickAccessLinks == null)
+ viewModel.Settings.QuickAccessLinks = new List();
- viewModel.Settings.QuickFolderAccessLinks.Add(newFolderLink);
+ viewModel.Settings.QuickAccessLinks.Add(newAccessLink);
}
if (expExcludedPaths.IsExpanded
- && !viewModel.Settings.IndexSearchExcludedSubdirectoryPaths.Any(x => x.Path == newFolderLink.Path))
+ && !viewModel.Settings.IndexSearchExcludedSubdirectoryPaths.Any(x => x.Path == newAccessLink.Path))
{
if (viewModel.Settings.IndexSearchExcludedSubdirectoryPaths == null)
- viewModel.Settings.IndexSearchExcludedSubdirectoryPaths = new List();
+ viewModel.Settings.IndexSearchExcludedSubdirectoryPaths = new List();
- viewModel.Settings.IndexSearchExcludedSubdirectoryPaths.Add(newFolderLink);
+ viewModel.Settings.IndexSearchExcludedSubdirectoryPaths.Add(newAccessLink);
}
}
- private void lbxFolders_DragEnter(object sender, DragEventArgs e)
+ private void lbxAccessLinks_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/plugin.json b/Plugins/Flow.Launcher.Plugin.Explorer/plugin.json
index 1e92d2254..e9c8ef873 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/plugin.json
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/plugin.json
@@ -7,7 +7,7 @@
"Name": "Explorer",
"Description": "Search and manage files and folders. Explorer utilises Windows Index Search",
"Author": "Jeremy Wu",
- "Version": "1.5.0",
+ "Version": "1.6.0",
"Language": "csharp",
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
"ExecuteFileName": "Flow.Launcher.Plugin.Explorer.dll",
diff --git a/Plugins/Flow.Launcher.Plugin.Url/Languages/sk.xaml b/Plugins/Flow.Launcher.Plugin.Url/Languages/sk.xaml
index 69640735e..97568be5a 100644
--- a/Plugins/Flow.Launcher.Plugin.Url/Languages/sk.xaml
+++ b/Plugins/Flow.Launcher.Plugin.Url/Languages/sk.xaml
@@ -2,6 +2,10 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib">
+ Otvoriť vyhľadávanie v:
+ Nové okno
+ Nová karta
+
Otvoriť url:{0}
Adresa URL sa nedá otvoriť: {0}
diff --git a/Plugins/Flow.Launcher.Plugin.Url/plugin.json b/Plugins/Flow.Launcher.Plugin.Url/plugin.json
index 6f0614262..c24a239f4 100644
--- a/Plugins/Flow.Launcher.Plugin.Url/plugin.json
+++ b/Plugins/Flow.Launcher.Plugin.Url/plugin.json
@@ -4,7 +4,7 @@
"Name": "URL",
"Description": "Open the typed URL from Flow Launcher",
"Author": "qianlifeng",
- "Version": "1.1.3",
+ "Version": "1.1.4",
"Language": "csharp",
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
"ExecuteFileName": "Flow.Launcher.Plugin.Url.dll",
diff --git a/Plugins/Flow.Launcher.Plugin.WebSearch/Languages/sk.xaml b/Plugins/Flow.Launcher.Plugin.WebSearch/Languages/sk.xaml
index d29b3f35a..47644fbe9 100644
--- a/Plugins/Flow.Launcher.Plugin.WebSearch/Languages/sk.xaml
+++ b/Plugins/Flow.Launcher.Plugin.WebSearch/Languages/sk.xaml
@@ -1,7 +1,11 @@
-
+ Otvoriť vyhľadávanie v:
+ Nové okno
+ Nová karta
+ Zadajte cestu k prehliadaču:
+ Vybrať
Odstrániť
Upraviť
Pridať
diff --git a/Plugins/Flow.Launcher.Plugin.WebSearch/plugin.json b/Plugins/Flow.Launcher.Plugin.WebSearch/plugin.json
index aba7989be..6e9986749 100644
--- a/Plugins/Flow.Launcher.Plugin.WebSearch/plugin.json
+++ b/Plugins/Flow.Launcher.Plugin.WebSearch/plugin.json
@@ -25,7 +25,7 @@
"Name": "Web Searches",
"Description": "Provide the web search ability",
"Author": "qianlifeng",
- "Version": "1.3.1",
+ "Version": "1.3.2",
"Language": "csharp",
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
"ExecuteFileName": "Flow.Launcher.Plugin.WebSearch.dll",