Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const MAX_WEB_SEARCH_QUERY_LENGTH = 500;
export const DEFAULT_FIND_FILES_RESULTS = 50;
export const DEFAULT_SEARCH_RESULTS = 30;
export const DEFAULT_WEB_SEARCH_RESULTS = 10;
export const DEFAULT_TERMINAL_WIDTH = 120;
export const DEFAULT_TERMINAL_WIDTH = 1024;
export const DEFAULT_TERMINAL_COLUMNS = 80;

// === FILE READING ===
Expand Down
2 changes: 1 addition & 1 deletion source/hooks/useTerminalWidth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type TerminalSize = 'narrow' | 'normal' | 'wide';

// Calculate box width (leave some padding and ensure minimum width)
const calculateBoxWidth = (columns: number) =>
Math.max(Math.min(columns - 4, 120), 40);
Math.max(Math.min(columns - 4, 1024), 40);

const computeWidth = () =>
calculateBoxWidth(process.stdout.columns || DEFAULT_TERMINAL_COLUMNS);
Expand Down