Skip to content

.1194483628904544:966b9373458574543308f8c90b47e810_69c346c149518cacc42e908d.69c3470e49518cacc42e90a2.69c3470e8ed43c7949e1d2df:Trae CN.T(2026/3/25 10:23:10)#1565

Open
koillinjag-tech wants to merge 1 commit intodbcli:mainfrom
koillinjag-tech:branch3-seed

Conversation

@koillinjag-tech
Copy link

  • 新增 history_freq.py: SQLite历史频率统计模块
  • 修改 prioritization.py: 集成历史频率统计到PrevalenceCounter
  • 修改 pgcompleter.py: 添加history_based_completion开关

新功能特点:

  1. 默认关闭,可通过 settings 或 set_history_based_completion() 动态启用
  2. 历史数据持久化存储在 ~/.config/pgcli/history_freq.db
  3. 补全排序时优先显示使用频率高的关键字和标识符
  4. 保持与现有系统完全兼容

Description

Checklist

  • I've added this contribution to the changelog.rst.
  • I've added my name to the AUTHORS file (or it's already there).
  • I installed pre-commit hooks (pip install pre-commit && pre-commit install).
  • Please squash merge this pull request (uncheck if you'd like us to merge as multiple commits)

@j-bennet
Copy link
Contributor

Ok, English would be preferable. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants