Skip to content

Start in a window by default, add -fullscreen flag - #209

Open
xRookieFight wants to merge 1 commit into
vlang:masterfrom
xRookieFight:feat/windowed-start
Open

xRookieFight wants to merge 1 commit into
vlang:masterfrom
xRookieFight:feat/windowed-start

Conversation

@xRookieFight

Copy link
Copy Markdown

Ved used to open fullscreen unless -window was passed, so the less common mode was the default. It now starts in a 770x480 window, the same size the Super+Enter toggle returns to. Use -fullscreen for the old behavior. The -window flag is removed since the new default covers it. Windowed mode uses one split, same as before with -window.

@medvednikov medvednikov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the startup flags, window dimensions, query layout, and session restoration at 3e36547. Two regressions in the new default behavior are noted inline. CI was excluded from this review.

Comment thread ved.v
Comment on lines +200 to +202
if !is_fullscreen {
win_width = 770
win_height = 480

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Fit the query dialogs to the new default window

At the default line_height = 20, draw_query() gives Ctrl+P, Ctrl+J, and grep dialogs a fixed height of (20 + 2) * (20 + 5) + 15 = 565. In this 480-pixel window the dialog starts at y = -42, placing the query input at y = -22 completely above the visible area. Grep also retains a width of 1400, so its left edge is at x = -315. Opening the file finder or workspace search on a normal launch now hides the text being entered and clips results. Please make the dialogs/result limits fit the window, or choose dimensions that accommodate them.

Comment thread ved.v
Comment on lines +1111 to 1112
if !is_fullscreen || '-laptop' in args {
nr_splits = 1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Preserve saved workspace assignments when changing the split count

An existing user who launches without arguments now gets one view per workspace instead of the previous two or three, but load_views() restores the flat session list by index. With workspaces A/B and saved views [A1, A2, A3, B1, B2, B3], the new two-element view array restores A1 into A and A2 into B, dropping every saved B view. open_file() also calls save_session() during restoration, so the old assignments are overwritten on that first launch. Please migrate/restore the saved views by workspace before reducing the default split count.

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.

2 participants