mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
* Use Flow.Launcher.Localization to improve code quality * Code cleanup * Improve code quality * Improve code quality * Use internal static Context & Improve code quality * Use Flow.Launcher.Localization to improve code quality * Code cleanup * Use Flow.Launcher.Localization to improve code quality * Improve code quality * Improve code quality * Use Flow.Launcher.Localization to improve code quality * Fix logic issue * Fix the variable name typo * Fix redundant boolean cast and ensure consistent default value handling * Use Flow.Launcher.Localization to improve code quality * Revert namespace styles * Fix indent format * Revert namespace style * Fix indent format * Fix namespace style * Fix indent format * Fix indent format
41 lines
974 B
C#
41 lines
974 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Flow.Launcher.Plugin.Shell
|
|
{
|
|
public class Settings
|
|
{
|
|
public Shell Shell { get; set; } = Shell.Cmd;
|
|
|
|
public bool ReplaceWinR { get; set; } = false;
|
|
|
|
public bool CloseShellAfterPress { get; set; } = false;
|
|
|
|
public bool LeaveShellOpen { get; set; }
|
|
|
|
public bool RunAsAdministrator { get; set; } = true;
|
|
|
|
public bool UseWindowsTerminal { get; set; } = false;
|
|
|
|
public bool ShowOnlyMostUsedCMDs { get; set; }
|
|
|
|
public int ShowOnlyMostUsedCMDsNumber { get; set; }
|
|
|
|
public Dictionary<string, int> CommandHistory { get; set; } = [];
|
|
|
|
public void AddCmdHistory(string cmdName)
|
|
{
|
|
if (!CommandHistory.TryAdd(cmdName, 1))
|
|
{
|
|
CommandHistory[cmdName] += 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
public enum Shell
|
|
{
|
|
Cmd = 0,
|
|
Powershell = 1,
|
|
RunCommand = 2,
|
|
Pwsh = 3,
|
|
}
|
|
}
|