Make filename character replacement more xplat and allow replacing any char, not just illegal.
This commit is contained in:
parent
80bcf60b5b
commit
a0dd2ccad6
9 changed files with 1141 additions and 1133 deletions
|
|
@ -4,6 +4,7 @@ using System.ComponentModel;
|
|||
using System.Linq;
|
||||
using Dinah.Core;
|
||||
using Dinah.Core.Logging;
|
||||
using FileManager;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Serilog;
|
||||
using Serilog.Events;
|
||||
|
|
@ -21,6 +22,7 @@ namespace LibationFileManager
|
|||
.Build();
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.ReadFrom.Configuration(configuration)
|
||||
.Destructure.ByTransforming<LongPath>(lp => lp.Path)
|
||||
.CreateLogger();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ namespace LibationFileManager
|
|||
|
||||
#region templates: custom file naming
|
||||
|
||||
[Description("Edit how illegal filename characters are replaced")]
|
||||
[Description("Edit how filename characters are replaced")]
|
||||
public ReplacementCharacters ReplacementCharacters
|
||||
{
|
||||
get => persistentDictionary.GetNonString<ReplacementCharacters>(nameof(ReplacementCharacters));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue