Skip to content

Commit

Permalink
fix - reg - Fixed folder selection not working
Browse files Browse the repository at this point in the history
---

We've fixed the folder selection functionality not working since we've
migrated to Terminaux 6.0.

---

Type: fix
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 6, 2025
1 parent 37d57f2 commit fb1645c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/Nitrocid/Files/Operations/Selection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public static string SelectFolder(string path)
FilesystemTools.NeutralizePath(path),
};
selector.Bindings.Add(new InteractiveTuiBinding<FileSystemEntry>(Translate.DoTranslation("Open"), ConsoleKey.Enter, (entry1, _, _, _) => selector.Open(entry1)));
selector.Bindings.Add(new InteractiveTuiBinding<FileSystemEntry>(Translate.DoTranslation("Select"), ConsoleKey.Spacebar, (entry1, _, _, _) => selector.Select(entry1)));
selector.Bindings.Add(new InteractiveTuiBinding<FileSystemEntry>(Translate.DoTranslation("Copy"), ConsoleKey.F1, (entry1, _, _, _) => selector.CopyTo(entry1)));
selector.Bindings.Add(new InteractiveTuiBinding<FileSystemEntry>(Translate.DoTranslation("Move"), ConsoleKey.F2, (entry1, _, _, _) => selector.MoveTo(entry1)));
selector.Bindings.Add(new InteractiveTuiBinding<FileSystemEntry>(Translate.DoTranslation("Delete"), ConsoleKey.F3, (entry1, _, _, _) => selector.RemoveFileOrDir(entry1)));
Expand Down Expand Up @@ -168,6 +169,7 @@ public static string[] SelectFolders(string path)
FilesystemTools.NeutralizePath(path),
};
selector.Bindings.Add(new InteractiveTuiBinding<FileSystemEntry>(Translate.DoTranslation("Open"), ConsoleKey.Enter, (entry1, _, _, _) => selector.Open(entry1)));
selector.Bindings.Add(new InteractiveTuiBinding<FileSystemEntry>(Translate.DoTranslation("Select"), ConsoleKey.Spacebar, (entry1, _, _, _) => selector.Select(entry1)));
selector.Bindings.Add(new InteractiveTuiBinding<FileSystemEntry>(Translate.DoTranslation("Copy"), ConsoleKey.F1, (entry1, _, _, _) => selector.CopyTo(entry1)));
selector.Bindings.Add(new InteractiveTuiBinding<FileSystemEntry>(Translate.DoTranslation("Move"), ConsoleKey.F2, (entry1, _, _, _) => selector.MoveTo(entry1)));
selector.Bindings.Add(new InteractiveTuiBinding<FileSystemEntry>(Translate.DoTranslation("Delete"), ConsoleKey.F3, (entry1, _, _, _) => selector.RemoveFileOrDir(entry1)));
Expand Down

0 comments on commit fb1645c

Please sign in to comment.