Open joehillen opened 8 years ago
Somewhat bigger, at least. But yeah, I can add something like this. I doubt it would be by default in Spacemacs (particularly since the semantic layer takes over the header line) but It can be an option for users.
What info do you want in the header exactly? I can try to make it look not like a carbon copy of the modeline.
I doubt it would be by default in Spacemacs ... but It can be an option for users.
I was thinking the same.
What info do you want in the header exactly?
I'm happy with what I have in this example. I think it's good to keep it simple. The window number and full filepath are really helpful at the top.
It would also be nice to have a way to to deactivate the entire topbar the same way you can deactivate an single segment. For example if I'm only displaying the path to the current file in the spaceline topbar, I would like to the whole thing to disappear in a buffer that isn't a file (your example displays the buffer-id instead, this is just another possible use case).
@justmytwospence That's a good idea.
Can anybody possibly explain how to get the above working? What functions do I need to call?
Just copy / pasting his code and then calling the defined function by addind
(spaceline-top/init-spaceline-top)
after it doesn't work ?
@justmytwospence I think you should be able to display that segment you're using to display the full path only when the buffer is visiting a file by adding :when (buffer-file-name)
to its config.
I didn't work for me when I tried. I'm using spacemacs - is there a particular section in the config it should be called from possibly? Thanks for the help.
I've missed the top bar from the original vim powerline and it turns out it was super easy to add it to spacemacs using spaceline. Maybe you'd be interested in adding this to spaceline and spacemacs.
I have this
spaceline-top
layer in my spacemacs setup:Here's how it looks:
With a file name:
The only thing I wish is that the separators went in the other direction in the top bar, but it looks like that would require a much bigger change to spaceline.