Skip to content

Commit aae1665

Browse files
TimelordUKclaude
andcommitted
chore: Bump version to 1.56.0 and update CHANGELOG
πŸ€– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 59de709 commit aae1665

2 files changed

Lines changed: 37 additions & 1 deletion

File tree

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,42 @@ All notable changes to SQL CLI will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.56.0] - 2025-10-02
9+
10+
### 🎯 Smart Column Intelligence & Cardinality Analysis
11+
12+
This release brings intelligent column expansion and powerful data cardinality analysis to the Nvim plugin, making data exploration significantly faster.
13+
14+
### ✨ New Features
15+
16+
#### **Smart Star Expansion (`\sE`)**
17+
- Execute queries with `LIMIT 1` to discover actual column names from CTEs and subqueries
18+
- No longer limited to static CSV file hints - works with any query context
19+
- Supports both array-of-objects and object-with-columns JSON formats
20+
- Auto-inserts column hint comments for Nvim's built-in Ctrl+N completion
21+
- Configurable via `smart_expansion.enabled` and `auto_insert_column_hints` settings
22+
- Graceful fallback to static file hints when query execution isn't possible
23+
24+
#### **Distinct Values Analysis (`\srD`)**
25+
- New `--distinct-column <column>` CLI flag for instant cardinality analysis
26+
- Automatically detects and preserves WEB CTE context (HTTP data sources)
27+
- Intelligent CTE extraction using parenthesis depth tracking
28+
- Displays top 100 distinct values with counts in floating window
29+
- Works seamlessly with CTEs, subqueries, files, and HTTP endpoints
30+
- Proper handling of nested CTEs and complex query structures
31+
32+
### πŸ› οΈ Technical Improvements
33+
- CTE-aware query rewriting in Rust with proper parenthesis tracking
34+
- Simplified Nvim plugin to call CLI and parse CSV output
35+
- Proper async handling with `vim.schedule()` for event context
36+
- Clear separation: Rust handles heavy lifting, Lua orchestrates display
37+
- Enhanced column state tracking across buffers
38+
39+
### πŸ“š Documentation
40+
- Added comprehensive smart expansion guide: `SMART_EXPANSION_README.md`
41+
- Design document for column completion: `NVIM_SMART_COLUMN_COMPLETION.md`
42+
- Example queries showcasing smart expansion features
43+
844
## [1.55.0] - 2025-09-27
945

1046
### πŸŽ‰ Windows Nvim Export Support & Performance Documentation

β€ŽCargo.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sql-cli"
3-
version = "1.55.0"
3+
version = "1.56.0"
44
edition = "2021"
55
autobins = false
66
autoexamples = false

0 commit comments

Comments
Β (0)