fixed GSA writing, added always-edit button and search in file and for file
This commit is contained in:
19
GsaEditor/ViewModels/SearchResultViewModel.cs
Normal file
19
GsaEditor/ViewModels/SearchResultViewModel.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user