FileSurfer 1.1.4
Modern Windows File Explorer
|
Static Public Member Functions | |
static void | LoadSettings () |
static void | ImportSettings (SettingsRecord settings) |
Loads and sanitizes settings from the SettingsRecord object and applies them to the current session. | |
static void | UpdateQuickAccess (IEnumerable< FileSystemEntryViewModel > quickAccess) |
Update Quick Access list with the specified FileSystemEntryViewModels. | |
static void | SaveSettings () |
Saves the current settings to the settings file if any changes have been made. |
Static Public Attributes | |
const long | ShowDialogLimitB = 250 * 1024 * 1024 |
static readonly string | SettingsFilePath = SettingsFileDir + "\\settings.json" |
The full path to settings.json. |
Properties | |
static SettingsRecord | DefaultSettings [get] |
Returns the default set of settings for the FileSurfer app. | |
static SettingsRecord | CurrentSettings [get] |
Returns the current settings in the form of SettingsRecord. | |
static string | NewImageName [get, set] |
Default name for the pasted image files. | |
static string | NewFileName [get, set] |
Default name for newly created files. | |
static string | NewDirectoryName [get, set] |
Default name for newly created directories. | |
static string | ThisPCLabel [get, set] |
What "This PC" 'directory' will be called. | |
static string | NotepadApp [get, set] |
The application, the 'Open in Notepad' context menu option will open. | |
static bool | OpenInLastLocation [get, set] |
Specifies if the app should reopen files or folders in their last accessed location. | |
static string | OpenIn [get, set] |
Specifies the default location where FileSurfer opens. | |
static bool | UseDarkMode [get, set] |
Indicates whether the application uses a dark theme. | |
static DisplayMode | DisplayMode [get, set] |
Defines the view mode for displaying files and folders. | |
static SortBy | DefaultSort [get, set] |
Specifies the default sorting method for files and folders. | |
static int | FileSizeUnitLimit [get, set] |
Numerical limit before FileSurfer uses the next byte unit. | |
static int | FileSizeUnitLimitLowerBound [get] |
static int | FileSizeUnitLimitUpperBound [get] |
static bool | SortReversed [get, set] |
Indicates whether file and folder sorting should be reversed. | |
static bool | ShowSpecialFolders [get, set] |
Determines if special folders (like "Documents" or "Downloads") should be displayed in the sidebar. | |
static bool | ShowProtectedFiles [get, set] |
Controls whether files with protection settings are shown in directory contents and searching. | |
static bool | ShowHiddenFiles [get, set] |
Specifies if hidden files are shown in directory contents and searching. | |
static bool | TreatDotFilesAsHidden [get, set] |
Decides if files starting with a dot '. | |
static bool | GitIntegration [get, set] |
Enables or disables Git integration features within the application. | |
static bool | ShowUndoRedoErrorDialogs [get, set] |
Determines if error dialogs should be shown for undo/redo operations. | |
static bool | AutomaticRefresh [get, set] |
Indicates whether the file explorer should automatically refresh at intervals. | |
static int | AutomaticRefreshInterval [get, set] |
Sets the interval (in milliseconds) for automatic refreshing of the file explorer. | |
static int | AutomaticRefreshIntervalLowerBound [get] |
static int | AutomaticRefreshIntervalUpperBound [get] |
static bool | AllowImagePastingFromClipboard [get, set] |
Specifies if images stored in the system clipboard can be pasted directly into directories. | |
static List< string > | QuickAccess [get, set] |
List of directories and files added by the user for quick access. |
Static Private Member Functions | |
static | FileSurferSettings () |
static TEnum | SafeParseEnum< TEnum > (string? enumValueName) |
static string | SanitizeName (string? fileName, char[] invalidChars, string defaultName) |
static T | ClampValue< T > (T value, T lowerBound, T upperBound) |
Static Private Attributes | |
static readonly char[] | InvalidFileNameChars = Path.GetInvalidFileNameChars() |
static readonly char[] | InvalidPathChars = Path.GetInvalidPathChars() |
static readonly JsonSerializerOptions | SerializerOptions |
static readonly string | SettingsFileDir |
static string | _previousSettingsJson = string.Empty |
Provides application-wide settings management for the FileSurfer application.
Handles the loading, saving, and updating of user preferences and settings.
|
staticprivate |
|
inlinestaticprivate |
T | : | IComparable<T> |
|
inlinestatic |
Loads and sanitizes settings from the SettingsRecord object and applies them to the current session.
|
inlinestatic |
Loads settings from the settings file and applies them to the current session.
If the settings file does not exist or is invalid, default settings are used and settings.json is rewritten.
|
staticprivate |
TEnum | : | struct | |
TEnum | : | Enum |
|
staticprivate |
|
inlinestatic |
Saves the current settings to the settings file if any changes have been made.
|
static |
Update Quick Access list with the specified FileSystemEntryViewModels.
quickAccess |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
The full path to settings.json.
|
static |
|
staticgetset |
Specifies if images stored in the system clipboard can be pasted directly into directories.
Defaults to true
.
|
staticgetset |
Indicates whether the file explorer should automatically refresh at intervals.
Defaults to true
.
|
staticgetset |
Sets the interval (in milliseconds) for automatic refreshing of the file explorer.
Defaults to 3000
ms (3 seconds).
|
staticgetpackage |
|
staticgetpackage |
|
staticget |
Returns the current settings in the form of SettingsRecord.
|
staticget |
Returns the default set of settings for the FileSurfer app.
|
staticgetset |
Specifies the default sorting method for files and folders.
Defaults to sorting by SortBy.Name.
|
staticgetset |
Defines the view mode for displaying files and folders.
Defaults to DisplayMode.ListView.
|
staticgetset |
Numerical limit before FileSurfer uses the next byte unit.
Defaults to 4096
.
|
staticgetpackage |
|
staticgetpackage |
|
staticgetset |
Enables or disables Git integration features within the application.
Defaults to true
.
|
staticgetset |
Default name for newly created directories.
Defaults to "New Folder"
.
|
staticgetset |
Default name for newly created files.
Defaults to "New File"
.
|
staticgetset |
Default name for the pasted image files.
Defaults to "New Image"
.
|
staticgetset |
The application, the 'Open in Notepad' context menu option will open.
Defaults to "notepad.exe"
.
|
staticgetset |
Specifies the default location where FileSurfer opens.
Defaults to the value of ThisPCLabel.
|
staticgetset |
Specifies if the app should reopen files or folders in their last accessed location.
Defaults to true
.
|
staticgetset |
List of directories and files added by the user for quick access.
Defaults to an empty list.
|
staticgetset |
Specifies if hidden files are shown in directory contents and searching.
Defaults to true
.
|
staticgetset |
Controls whether files with protection settings are shown in directory contents and searching.
Defaults to false
.
|
staticgetset |
Determines if special folders (like "Documents" or "Downloads") should be displayed in the sidebar.
Defaults to true
.
|
staticgetset |
Determines if error dialogs should be shown for undo/redo operations.
Defaults to true
.
|
staticgetset |
Indicates whether file and folder sorting should be reversed.
Defaults to false
.
|
staticgetset |
What "This PC" 'directory' will be called.
Defaults to "This PC"
.
|
staticgetset |
Decides if files starting with a dot '.
' are considered hidden. Defaults to true
.
|
staticgetset |
Indicates whether the application uses a dark theme.
Defaults to true
.