-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A more intelligent & useful history file & way to query it #1886
Comments
Cross session sharing makes this somewhat hard to implement without a proper database. I see sqlite might be a reasonable option. |
The suggestion to use |
@daxian-dbw This still would be a big win for PSReadline going forward and it would be great if you and I could find some time together to make it happen |
I have been wanting to do this, but it just couldn't get in the priority cut due to the limited team resources. By the way, the |
I realise it's not a smallish bit of work to implement especially the more I think about additional configurability options we may want to add. Let me try and carve out some time properly going forward so that I can be of use here (starting with me actually writing some C# after a long long time saying I want to!) |
This looks interesting. I tackled some of the requests in a proof-of-concept module I made a bit back: https://github.com/StartAutomating/PowerHistory I'd hope that one of these days, we'd be more willing to accept PowerShell contributions to the PowerShell language. |
@daxian-dbw |
Maybe, and this might just be crazy talk here, but maybe one could store persistent history in a vault (rather than reinvent a wheel here) |
@claudio-salvio This is something that I would look to have as configurable by user with a preference to use the sqlite by default (or other remote db option) but not remove it until a major version if any available module use metrics shows a mass switchover from current implementation. |
I feel that this would be a goal for the longer term but feel that this is loosely captured under configurability options |
I'd always sort of intended on implementing something here, I'd been thinking about it before this issue was opened. There are now some options that work across shells. I've been using atuin and it's meeting my needs for now. |
It would be great to have a much more intelligent & complex history file than the current simple implementation that we currently have, although to achieve this I expect that it would likely be much more computationally expensive than the current implementation.
Ideally I would like to see this be more structured & complex and able to be queried in a way that allows for much better analytics of common command use that enables inspection on the count of use being aliased or using the full command name, common parameter combinations as well as a count of the use of each parameter & arguments to that parameter.
Some loose goals
The text was updated successfully, but these errors were encountered: