You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments