From c6477cb342f55d521dad8b457ae4054947b3d5bb Mon Sep 17 00:00:00 2001 From: adroslice Date: Fri, 22 Nov 2019 19:12:28 +0100 Subject: [PATCH] Renamed Prefix/Suffix modes to Prepend/Append --- BFR/Operations/Number.cs | 6 +++--- BFR/Operations/NumberMode.cs | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/BFR/Operations/Number.cs b/BFR/Operations/Number.cs index ca477f7..d51f34b 100644 --- a/BFR/Operations/Number.cs +++ b/BFR/Operations/Number.cs @@ -14,7 +14,7 @@ namespace BFR.Operations public override string Description => "Numbers all file names according to how they are sorted."; public static readonly AvaloniaProperty ModeProperty = - AvaloniaProperty.Register(nameof(Mode), NumberMode.Prefix); + AvaloniaProperty.Register(nameof(Mode), NumberMode.Prepend); public NumberMode Mode { get => GetValue(ModeProperty); set => SetValue(ModeProperty, value); } [XmlIgnore] @@ -43,8 +43,8 @@ namespace BFR.Operations newName = Mode switch { - NumberMode.Prefix => $"{text}{newName}", - NumberMode.Suffix => $"{newName}{text}", + NumberMode.Prepend => $"{text}{newName}", + NumberMode.Append => $"{newName}{text}", NumberMode.Insert => newName.Insert(InsertPosition, text), NumberMode.Replace => newName.Replace(Pattern, text, UseRegex, false), _ => newName diff --git a/BFR/Operations/NumberMode.cs b/BFR/Operations/NumberMode.cs index be20beb..e85959e 100644 --- a/BFR/Operations/NumberMode.cs +++ b/BFR/Operations/NumberMode.cs @@ -8,8 +8,8 @@ namespace BFR.Operations { public class NumberOperationMode : OperationMode { - public bool IsPrefix => Index == NumberMode.Prefix; - public bool IsSuffix => Index == NumberMode.Suffix; + public bool IsPrepend => Index == NumberMode.Prepend; + public bool IsAppend => Index == NumberMode.Append; public bool IsInsert => Index == NumberMode.Insert; public bool IsReplace => Index == NumberMode.Replace; @@ -28,10 +28,10 @@ namespace BFR.Operations public enum NumberMode { - [OperationMode(nameof(Prefix), "Inserts the numbering before the file name.")] - Prefix, - [OperationMode(nameof(Suffix), "Inserts the numbering after the file name.")] - Suffix, + [OperationMode(nameof(Prepend), "Inserts the numbering before the file name.")] + Prepend, + [OperationMode(nameof(Append), "Inserts the numbering after the file name.")] + Append, [OperationMode(nameof(Insert), "Inserts the numbering at the specified index.")] Insert, [OperationMode(nameof(Replace), "Replaces the given pattern with the numbering.")]