Closed Houlistonm closed 7 months ago
Cool idea. I'd be open to a PR that adds a command for this.
--time=<TIME>
where <TIME>
could be ..
, ..=
or <single-value>
?I'm a fan of epoch seconds or iso-8601
But I'll adapt to the chosen format with
--time=$(date -d '1 day ago' '+required_format')
Thanks for your reply! I'm considering adopting systemd.time.
I've got the time parser ready: chrono-systemd-time-ng. I will publish the crate after implementing this request in mcfly with it.
@Houlistonm what is argument --rc
?
Please try https://github.com/cantino/mcfly/pull/374, thanks!
Use case: Go back after a long shell session and extract the commands run to convert to an automated process:
I currently make a copy of my command db, and run commands to find a block of commands that I've run since "yesterday" or some other time range and filter using sql to output to a file.
Feature request: Add a
dump
option tomcfly
to print allcmd
from thecommands
table in chronological ascending order.Addition arguments:
--before=<TIME>
--since=<TIME>
--rc=0
--sort=[ASC|DESC]
--regex=[what ever regex family is supported]