Skip to content
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

additional modeline-like area? #2989

Closed
andreyorst opened this issue Jun 24, 2019 · 4 comments
Closed

additional modeline-like area? #2989

andreyorst opened this issue Jun 24, 2019 · 4 comments

Comments

@andreyorst
Copy link
Contributor

We can display status messages in modeline, but if there's too much going on in modeline it becames cluttered and less usable. Vim and Emacs have the second modeline like area on the top which is hidden by default but can be shown to display additional info that should stay on the screen. Like opened tabs in Vim:

image

It's nice visual queue what buffers are currently open, which of those have changes, e.t.c. Since there's kakoune-buffers, that provides convenient list of buffers through the info box I guess people will be interested in a more persistent way to display this info. Maybe.

Or in Emacs if you open package menu, you'll see this top line:

image

You can see in the modeline that I've scrolled thorugh 62% of the file, and this top line is still the top one, since it's not the part of the buffer.

So this is kind of area which plugins could utilize in order to provide their additional information.

@TeddyDD
Copy link
Contributor

TeddyDD commented Jun 24, 2019

Probably related #1942

@andreyorst
Copy link
Contributor Author

another request that may benefit from it a bit: #2727

@lenormf
Copy link
Contributor

lenormf commented Jul 1, 2019

Would this area render the value of a new option, like modelinefmt except named something else?

Would the bar be a UI widget, which would make the option mentioned above a simple field in ui_options, or should the protocol be extended to support it in the UI API?

Would the bar collapse (i.e. not be rendered at all and replaced by a line from the buffer's contents) when there's no data to render?

Would formatting of the data (e.g. spaces between the words in it) be the responsibility of the user, or are there expectations from the editor?

@andreyorst
Copy link
Contributor Author

Would this area render the value of a new option, like modelinefmt except named something else?

I think this is the way to go.

Would formatting of the data (e.g. spaces between the words in it) be the responsibility of the user, or are there expectations from the editor?

In my opinion it should just render as is. Plugin would set a buffer local value of the option and fill it as it needs.

Would the bar collapse (i.e. not be rendered at all and replaced by a line from the buffer's contents) when there's no data to render?

I don't think so. I think the line should be explicitly made visible or hidden by user settings. Possibly have a buffer local value, so in one buffer where it should display column names it is wisible, and in another buffer where it is empty it is hidden or shown depending on user settings, like hidden, shown. Not sure about this though.

@andreyorst andreyorst closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2022
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

No branches or pull requests

3 participants