fixed GSA writing, added always-edit button and search in file and for file

This commit is contained in:
2026-07-21 15:50:52 +02:00
parent cbf0891ba4
commit d171c34236
42 changed files with 538 additions and 61 deletions

View File

@ -0,0 +1,19 @@
namespace GsaEditor.ViewModels;
/// <summary>
/// A single search hit: a file name match, or a matching line inside a file.
/// </summary>
public class SearchResultViewModel
{
/// <summary>
/// Alias of the matching archive entry.
/// </summary>
public string Alias { get; init; } = string.Empty;
/// <summary>
/// Match context for content searches (e.g. "line 12: ..."). Empty for name matches.
/// </summary>
public string Detail { get; init; } = string.Empty;
public bool HasDetail => Detail.Length > 0;
}