rainbow_csv icon indicating copy to clipboard operation
rainbow_csv copied to clipboard

Make Header Row Sticky

Open kalaschnik opened this issue 4 years ago • 2 comments

Tooltips are really helpful, however, if the first row (if there is a header) would move along with scrolling would be really great. Any idea if this is feasible?

kalaschnik avatar Jun 13 '20 07:06 kalaschnik

I can think about only two ways to do this:

  1. Execute :1sp - this will create a horizontal split, with the upper window being of height=1, it will show the header record. And the lower window can be used for scrolling. Advantage: no need to change anything in the extension itself.
  2. It should be also possible to show column names in Vim status line, but it would look a little weird for header to be at the bottom. Also most users prefer to have their own customized status lines, so I can't enable "header in status line" by default, it would be too intrusive.

mechatroner avatar Jun 14 '20 23:06 mechatroner

This may also be a good candidate for something like https://github.com/nvim-treesitter/nvim-treesitter-context

benjamin051000 avatar Sep 25 '23 15:09 benjamin051000