FileChangeLog Pennington.Tui
Tracks files changed this session, deduplicated by full path. Each entry keeps the last-change timestamp and a count of changes — a save-on-type editor won't flood the list with duplicates. The Main tab snapshots and renders ordered by last-changed descending.
Methods
Record
#public void Record(string fullPath, WatcherChangeTypes changeType, DateTimeOffset at);Record a file change, upserting the entry for that path.
Parameters
fullPathstringchangeTypeWatcherChangeTypesatDateTimeOffset
Snapshot
#public IReadOnlyList<FileChangeEntry> Snapshot();Snapshot of entries ordered by most recently changed.
Returns
IReadOnlyList<FileChangeEntry>Pennington.Tui.FileChangeLog
namespace Pennington.Tui;
/// Tracks files changed this session, deduplicated by full path. Each entry keeps the last-change timestamp and a count of changes — a save-on-type editor won't flood the list with duplicates. The Main tab snapshots and renders ordered by last-changed descending.
public class FileChangeLog
{
/// Record a file change, upserting the entry for that path.
public void Record(string fullPath, WatcherChangeTypes changeType, DateTimeOffset at);
/// Snapshot of entries ordered by most recently changed.
public IReadOnlyList<FileChangeEntry> Snapshot();
}