Add initial version of AI searching, but with a broken implementation of debouncing

This commit is contained in:
David Dworken
2023-11-11 17:41:24 -08:00
parent af079cd4c9
commit eb835fe52c
9 changed files with 273 additions and 1 deletions

View File

@ -94,7 +94,11 @@ func BuildTableRow(ctx context.Context, columnNames []string, entry data.History
case "CWD", "cwd":
row = append(row, entry.CurrentWorkingDirectory)
case "Timestamp", "timestamp":
row = append(row, entry.StartTime.Local().Format(hctx.GetConf(ctx).TimestampFormat))
if entry.StartTime.UnixMilli() == 0 {
row = append(row, "N/A")
} else {
row = append(row, entry.StartTime.Local().Format(hctx.GetConf(ctx).TimestampFormat))
}
case "Runtime", "runtime":
if entry.EndTime.UnixMilli() == 0 {
// An EndTime of zero means this is a pre-saved entry that never finished