Skip to content

feat: Add CsvViewInfo command#88

Merged
hat0uma merged 6 commits intomainfrom
feat/support-stats-command
Jan 3, 2026
Merged

feat: Add CsvViewInfo command#88
hat0uma merged 6 commits intomainfrom
feat/support-stats-command

Conversation

@hat0uma
Copy link
Copy Markdown
Owner

@hat0uma hat0uma commented Dec 22, 2025

Summary

Add :CsvViewInfo command to display detailed CSV buffer statistics and detection information in a floating window.

Features

  • Buffer Statistics Display: Shows comprehensive information about the current CSV buffer including:

    • File dimensions (rows × columns)
    • Detected delimiter and quote character
    • Header line position
    • Comment configuration
  • Detection Confidence Scores: Visualizes auto-detection results with:

    • Delimiter confidence scores with visual bar charts
    • Quote character confidence scores
    • Header detection analysis with per-column evidence
  • Debug Mode: Use :CsvViewInfo! to display additional debug information including detailed header detection reasoning

image

Add `CsvViewInfo` command showing delimiter, quote char, rows, columns
- Add custom highlight groups for CsvViewInfo display (Title, Section, Key, Value, etc.)
- Refactor ContentBuilder to use chunk-based structure with highlight support
- Apply highlights using extmarks instead of Markdown concealment
- Remove markdown filetype dependency for info buffer
- Fix potential nil error in metrics row_count_logical
- Refactor highlight definitions to table format and export via config.highlights
- Add table rendering support with auto-calculated column widths
- Improve header analysis display with detailed type/length check columns
- Add score judgment display (Likely Header/Data)
- Include debug information section
- Set buffer filetype to csvview-info
- Fix confidence interval lower bound to be non-negative
Add comment prefixes and line count to the information output,
providing visibility into CSV comment handling configuration.
@hat0uma hat0uma marked this pull request as ready for review January 3, 2026 14:34
@hat0uma hat0uma merged commit da4106d into main Jan 3, 2026
5 checks passed
@hat0uma hat0uma deleted the feat/support-stats-command branch January 3, 2026 14:35
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.

1 participant