A more intelligent & useful history file & way to query it

未关闭
#1,886 14 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
csharp, sqlite
领域
cli

调研方向

No files or tests are named. Start by locating the current history implementation in PSReadLine and reviewing how experimental features are scoped; then define the initial module, SQLite-backed storage, schema, and query API. Done means the listed initial release goals are addressed.

由索引模型根据 Issue 内容生成。

描述

Area-HistoryImprovements Issue-Enhancement

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.

Loose inital release goals

  • Wrapped in a module scoped experimental feature
  • API based with a end data store provider plugin module (allows SQLite, CosmosDb, jsonFile etc)
  • use of SqlLite file (local or remote) - Default option
  • Local File created if not already there
  • Initial base DB Schema
  • Ideally Encrypted

Post release enhancements

  • User Extensibility of DB Schema
  • Preference of remote for cross machine history reasons) - Configurable option
  • Configuration options
    • current file
    • other remote sources
  • Additional Querying cmdlets to replace needing to use Group|Sort cmdlets etc
  • Plugin with AIShell & other tooling
主要语言
C#
星标
4.4k
派生
341
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PowerShell/PSReadLine 的其他 Issue

查看 PowerShell/PSReadLine 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。