feat(client): add prune filters for age and length#2494
feat(client): add prune filters for age and length#2494imsakg wants to merge 1 commit intoatuinsh:mainfrom
Conversation
- Introduce options to prune history by minimum age and maximum length. - Default `dry_run` to true and allow optional specification. - Improve command filtering for efficient pruning.
|
Example usages:
|
This comment was marked as spam.
This comment was marked as spam.
|
Hey @tessus, Certainly, I did not get it wrong. Let me clarify my use case and the purpose of this pull request. Consider a scenario where you are executing a command and frequently changing flags until you identify the correct one. Once you have determined the appropriate flag, you may not wish to retain the other executed commands in your Atuin database, as they contribute to unnecessary bloat. For example:
Additionally, there is another use case to consider. Suppose you are executing commands that you intend to use only once. Such commands will also be stored in your Atuin database, and it is likely that you do not wish to keep them. For instance:
This pull request allows you to remove those unnecessary commands based on their length or age. |
dry_runto true and allow optional specification.Checks