Repository navigation
0.3.0 — --last-used, --hourly, multi-file input, and timestamp parsing upgrade - #6
Merged
Merged
Conversation
Remove unused `default_history_path_for` export and add `BashHistoryParser` type alias for naming consistency. Implement `parse_with_detected` function that detects shell format and dispatches to the appropriate parser.
Update `default_history_path` to return `Option<PathBuf>` instead of panicking when `HOME` is unset. Change `home_dir` to return `Option<PathBuf>` accordingly. Delegate zsh extended history detection to the parser module.
Strips leading `sudo` and `VAR=value` environment assignments from command strings, returning the remaining command. Useful for parsing shell history where commands may be prefixed with privilege escalation or environment context.
- Strip sudo/env prefixes from commands by default (disable with --no-strip) - Add --collapse to merge adjacent duplicate entries before counting - Support relative dates (Nd/Nw/Nm) in --since/--until arguments - Add --version flag - Fix trend mode to apply grep filter before bucketing
Add multi-file support (comma-separated paths, repeatable). Add --hourly flag for hour-of-day distribution. Add --last-used column to table output. Each file's shell format is detected separately, enabling zsh+fish merges.
# Conflicts: # src/aggregators/command_counter.rs # src/completions.rs # src/date.rs # src/lib.rs # src/main.rs # src/man.rs # src/models/history_entry.rs # src/output/table.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Shellist 0.3.0 adds several roadmap items and parser improvements: