Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eduardofuncao
Copy link
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
Copy link
Contributor

@phdah phdah left a comment

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