smart-mode-line icon indicating copy to clipboard operation
smart-mode-line copied to clipboard

[Feature] Position in buffer?

Open ReneFroger opened this issue 9 years ago • 3 comments

I was quite charmed of Spaceline. But don't worry, I love the smart-mode-line much more, especially the prefixes for directories.

But I'm missing features in Smart Mode Line, after trying the Spaceline.

For example, you see directly in which positon of the buffer you currently are. For example, in SML when you're near the end or the top, you see Bot or Top, which I found it confusing. So I was wondering if this could be disabled in the customization menu? And I tried to implement he buffer position indicator implemented in Smart Mode Line, from this:

test2

but nothing appears on my mode line after implementing the code. My Elisp profiency is somewhat limited. So I was wondering if it would be a big deal to having these buffer indicator in the Smart Mode Line?

ReneFroger avatar Sep 30 '15 17:09 ReneFroger

For example, you see directly in which positon of the buffer you currently are. For example, in SML when you're near the end or the top, you see Bot or Top, which I found it confusing. So I was wondering if this could be disabled in the customization menu?

No, there's no configuration option to change those Top/Bot into percentages. That's because SML doesn't implement this functionality, it just hooks onto Emacs functionality and Emacs doesn't support that.

And I tried to implement he buffer position indicator implemented in Smart Mode Line, from this: ... but nothing appears on my mode line after implementing the code. My Elisp profiency is somewhat limited. So I was wondering if it would be a big deal to having these buffer indicator in the Smart Mode Line?

It would certainly be a welcome feature. What code do you have so far?

Malabarba avatar Sep 30 '15 21:09 Malabarba

For example, in SML when you're near the end or the top, you see Bot or Top, which I found it confusing

@ReneFroger Just as an aside, isn't this the same as in vim? Or is there a way to change this in vim?

vyp avatar Oct 01 '15 00:10 vyp

I can confirm Emacs 25.1.1 supports position in percentages.
screenshot_20181002_234913

Beyond that, I'm not sure how to get the visual "loadbar" widget... Beyond that these seem like ok alternatives, though I've never been comfortable with minimaps: https://github.com/zk-phi/sublimity https://github.com/dengste/minimap

sten0 avatar Oct 03 '18 03:10 sten0