helix icon indicating copy to clipboard operation
helix copied to clipboard

Add statusline element 'file-indexer'

Open mejo13 opened this issue 2 years ago • 6 comments

Shows number of open files and index of the one currently viewed.

mejo13 avatar Jan 10 '23 21:01 mejo13

Hmm I think we could come up with a better name for it. Indexer sounds like a background service that indexes files

archseer avatar Jan 14 '23 04:01 archseer

Maybe file_counter would be more fitting or do you have an idea?

mejo13 avatar Jan 14 '23 04:01 mejo13

FileNumber or FileCount would make sense to me. I think we should avoid naming things with agent nouns (indexer, counter) except where there's a lot of precedent for it (picker, receiver, server)

the-mikedavis avatar Jan 14 '23 14:01 the-mikedavis

I'd go with FileCount then, if that's ok!?

mejo13 avatar Jan 14 '23 17:01 mejo13

What is the preferred way to do this? Change the existing pr, which would make the discussion about the name kinda pointless, or make a new one? I'm pretty new to git and github so i'm realy not sure.

mejo13 avatar Jan 16 '23 02:01 mejo13

What is the preferred way to do this? Change the existing pr, which would make the discussion about the name kinda pointless, or make a new one? I'm pretty new to git and github so i'm realy not sure.

Feel free to commit and push additional commits to apply the suggestions. Unless you push force, original commit history will stay available from this PR. That being said, it’s generally okay to just push force if you wish to get the commits merged as is. If history is not "clean", maintainers will just squash and merge as necessary, so feel free to proceed as you prefer in this case. :slightly_smiling_face:

CBenoit avatar Jan 16 '23 03:01 CBenoit

Hey, I was wondering if I have to change something else, request a review or is this better suited as a plugin once the system is in place maybe?

mejo13 avatar Mar 31 '23 18:03 mejo13

I am going to close this one out as stale since the statusline has been refactored. I think this one is a bit niche and better suited for a plugin. Sorry we didn't give you that feedback sooner and thank you for contributing!

pascalkuthe avatar Apr 13 '24 23:04 pascalkuthe