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

[Request] Use frame title instead of modeline #6

Open
alienbogart opened this issue Jan 31, 2020 · 4 comments
Open

[Request] Use frame title instead of modeline #6

alienbogart opened this issue Jan 31, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@alienbogart
Copy link

That would be useful in a day and age were our eyes naturally go to the top when cycling between files/tabs/buffers etc.

Thanks!

@joostkremers joostkremers added the enhancement New feature or request label Mar 9, 2020
@joostkremers
Copy link
Owner

Sorry for the late reply. I'm not sure the frame title is versatile enough for something like this, given that it's not meant to be updated regularly. The Elisp manual says that the frame title is only updated when the frame is redrawn, which wouldn't be appropriate for nswbuff.

What is possible, however, is to display the nswbuff window at the top of the current window. If that would be an acceptable alternative for you, let me know and I'll implement it.

@alienbogart
Copy link
Author

What is possible, however, is to display the nswbuff window at the top of the current window. If that would be an acceptable alternative for you, let me know and I'll implement it.

That would be great, thanks!

@joostkremers
Copy link
Owner

Its' proving harder than I thought. There is some weird effect with the size of the window when it's at the top. I'll see what I can do about that and will let you know when I find a solution.

@joostkremers
Copy link
Owner

I pushed a commit that introduces the user option nswbuff-status-window-at-top. If you set this to t, the status window is displayed at the top of the current window.

In order to make the buffer standout, I changed the background color of the buffer to inherit from the face highlight (instead of default) and changed the default face for the current buffer to inherit from font-lock-keyword-face (instead of highlight). Of course these faces can be customized.

As an alternative, you could set nswbuff-mode-line-format, but for some reason that I haven't figured out yet, that doesn't really work for me. Could be something to do with my config.

One disadvantage of having the status window at the top is that the content of the current buffer is pushed down and when the status window disappears, it jumps up again. That may not be an issue if you have nswbuff-display-intermediate-buffers set to nil, but I have it set to t, which makes this jumping effect annoying. YYMV though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants