Lutonet.FileBrowser 1.0.0

.NET Standard 2.0
dotnet add package Lutonet.FileBrowser --version 1.0.0
NuGet\Install-Package Lutonet.FileBrowser -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lutonet.FileBrowser" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Lutonet.FileBrowser --version 1.0.0
#r "nuget: Lutonet.FileBrowser, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Lutonet.FileBrowser as a Cake Addin
#addin nuget:?package=Lutonet.FileBrowser&version=1.0.0

// Install Lutonet.FileBrowser as a Cake Tool
#tool nuget:?package=Lutonet.FileBrowser&version=1.0.0

File and Folder selector for Spectre.Console

Spectre.Console is the best - this is my huble try to make it even more usefull.

preview

folder selector

Thank you for your kind interest in this little helper.

This library provides the functionality of the folder/file selector component for Spectre.Console packate which provides amazing tools for creating modern UI on the terminal

Browser.cs

Constructor

The class consturctor Browser() doesn't take any paramaters.

Properties

DisplayIcons boolean default true Decides if the icons are displayed in the browser.

PageSize integer default 15 Decides how many items is displayed in the selector

CanCreateFolder boolean default is true Decides if creation of the new folder option is included for user

ActualFolder string default is Documents Can be setup to any path which will be used as Browser starting path

SelectedFile boolean decides if we are selecting File or the Directory

LevelUpText string default is Go to upper level sets string used in the navigation for selection to go at the parent level

ActualFolderText string default is Selected Folder sets string used in the navigator to name actual directory

MoreChoicesText string default is Use arrows Up and Down to select sets up hint text below the selector

CreateNewText string default is Create new folder

SelectFileText string default is Select File

SelectFolderText string default is Select Folder

SelectDriveText string default is Select Drive

SelectActualText string Select Actual Folder

Methods Async

string GetPath(string ActualFolder, bool SelectFile) displays the selector and returns file or folder path depending on bool SelectFile value

string GetFilePath() displays the selector for a File selection in User's document folder. retuns string path value

string GetFilePath(string ActualFolder) displays the selector for a File selection in the folder given as the parameter

string GetFolderPath() displays the selector for a Folder selection in User's document folder

string GetFolderPath(string ActualFolder) displays the selector for a Folder selection in the folder given as the parameter

I tried to add many properties with texts and settings to make this tool customizable and possible to translate.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 149 3/20/2022

First package release - hope someone will find it helpful