Skip to content

Commit 981f647

Browse files
dreamiurgclaude
andauthored
feat: remove table borders and prevent text truncation (#13)
Improves table output by removing borders and preventing text truncation: 1. Removed borders from search results table by adding box=None - All tables now have consistent borderless formatting - Cleaner, more minimal output 2. Set console width to 500 to prevent text truncation - Tables can now extend beyond terminal width - No more ellipses (...) in narrow terminals - All text displays in full, no wrapping or cutting This provides a cleaner CLI experience with complete information always visible, regardless of terminal width. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0079cb7 commit 981f647

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

peakbagger/formatters.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ class PeakFormatter:
1414
"""Formatter for peak data output."""
1515

1616
def __init__(self) -> None:
17-
self.console: Console = Console()
17+
# Use a very wide console to prevent any text truncation
18+
# Tables will extend beyond terminal width if needed
19+
self.console: Console = Console(width=500)
1820

1921
def format_search_results(
2022
self, results: list[SearchResult], output_format: str = "text"
@@ -74,7 +76,9 @@ def _print_search_table(self, results: list[SearchResult]) -> None:
7476
self.console.print("[yellow]No results found.[/yellow]")
7577
return
7678

77-
table: Table = Table(title="Search Results", show_header=True, header_style="bold cyan")
79+
table: Table = Table(
80+
title="Search Results", show_header=True, header_style="bold cyan", box=None
81+
)
7882
table.add_column("Peak ID", style="dim", no_wrap=True)
7983
table.add_column("Name", style="green", no_wrap=True)
8084
table.add_column("Location", style="cyan", no_wrap=True)

0 commit comments

Comments
 (0)