diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml
index 29ab40076..c42e55558 100644
--- a/Flow.Launcher/Languages/en.xaml
+++ b/Flow.Launcher/Languages/en.xaml
@@ -557,5 +557,7 @@
Last Modified
- dcdc
+ Rename a file/directory
+ Are you trying to rename a file?
+ "The explorer plugin needs to be enabled for the hotkey to rename files to work."
diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs
index 9b89f4865..491914ff1 100644
--- a/Flow.Launcher/ViewModel/MainViewModel.cs
+++ b/Flow.Launcher/ViewModel/MainViewModel.cs
@@ -946,7 +946,7 @@ namespace Flow.Launcher.ViewModel
}
else if ((!explorerPluginMatches.Any() || explorerPluginMatches == null) && timesTriedToRenameFileWithExplorerDisabled > 3)
{
- App.API.ShowMsg("Are you trying to rename a file?", "The explorer plugin needs to be enabled for the hotkey to rename files to work.");
+ App.API.ShowMsg(App.API.GetTranslation("AreTryingToRenameFile"), App.API.GetTranslation("ExplorerNeedsEnabledForRenameFile"));
timesTriedToRenameFileWithExplorerDisabled = 0;
return;
}
@@ -964,15 +964,9 @@ namespace Flow.Launcher.ViewModel
}
if (Directory.Exists(path))
{
- File.AppendAllText("YEE.idi", "YYEEE");
explorerPlugin.Plugin.RenameDialog(new DirectoryInfo(path), App.API); // this feels kinda hacky
return;
}
- else if (new DirectoryInfo(path).Parent == null) // check if isn't a root directory like C:\
- {
- App.API.ShowMsgError("Cannot rename this.");
- return;
- }
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
index 291d28eba..87d50ef77 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
@@ -55,7 +55,6 @@
File Content Search:
Index Search:
Quick Access:
- Rename:
Current Action Keyword
Done
Enabled
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs
index 1225711fb..04caecc8e 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Main.cs
@@ -10,8 +10,6 @@ using System.Threading;
using System.Threading.Tasks;
using System.Windows.Controls;
using Flow.Launcher.Plugin.Explorer.Exceptions;
-using System.Xml;
-using System.CodeDom;
namespace Flow.Launcher.Plugin.Explorer
{
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/RenameFile.xaml.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Views/RenameFile.xaml.cs
index 9fcc8f502..3e12fd4cd 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/RenameFile.xaml.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/RenameFile.xaml.cs
@@ -1,4 +1,3 @@
-using System;
using System.IO;
using System.Linq;
using System.Windows;
@@ -7,7 +6,6 @@ using System.Windows.Input;
using System.Windows.Threading;
using CommunityToolkit.Mvvm.ComponentModel;
using Flow.Launcher.Plugin.Explorer.Helper;
-using Microsoft.VisualBasic.Logging;
namespace Flow.Launcher.Plugin.Explorer.Views