Skip to content

feat(result): lock header column of Result window as a winbar when scrolling vertically#218

Open
eduardofuncao wants to merge 2 commits into
kndndrj:masterfrom
eduardofuncao:feat/lock-result-header
Open

feat(result): lock header column of Result window as a winbar when scrolling vertically#218
eduardofuncao wants to merge 2 commits into
kndndrj:masterfrom
eduardofuncao:feat/lock-result-header

Conversation

@eduardofuncao

Copy link
Copy Markdown
Contributor

Motivation

When scrolling vertically through the result buffer, the column names is not always visible and may confuse the user when trying to get information from the table

What was done

Added the option result.lock_header (false by default) to enable or disable locking the first column of the result buffer on the winbar when scrolling vertically past the first line. When the scroll goes back to the first line, the default winbar of the result window is displayed.

Untitled.Project.mp4

Also tested with a minimal nvim config using only lazy and dbee

For the horizontal alignment of what is displayed on the winbar with the buffer, we take into account some set options like number, relativenumber, signcolumn, and foldcolumn.

Closes #217

@eduardofuncao eduardofuncao changed the title Feat/ Lock header column of Result window as a winbar feat(result): lock header column of Result window as a winbar when scrolling vertically Jul 7, 2025

@phdah phdah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

From the gif, it looks just as you would want it, great job!

With just looking from my phone on the code, I think it looks good. Would you have time to look over it @MattiasMTS ? ☺️

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.

Adding option to freeze the colum names row in the result split when scrolling

2 participants