mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-10 07:27:57 +02:00
Add initial version of AI searching, but with a broken implementation of debouncing
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user