Added project name display using projectile#89
Added project name display using projectile#89berylllium wants to merge 3 commits intoMstrodl:masterfrom
Conversation
|
At a glance this seems cool! I'll review later when I get a chance to properly look at the code and try it out. Thanks for contributing! |
|
Ditto, I like the idea of project integration. Looks good but I'll review more in the morning. Thanks! |
Mstrodl
left a comment
There was a problem hiding this comment.
LGTM, but I'll let @Zulu-Inuoe review as well 😄
|
Yep sorry about the delay. Had a busier Friday than expected. I did take another look and I'm good with it |
|
Great news! I was away for a few days so I couldn't reply. I thought a bit about the limitation of only being able to display either line numbers or the project name; maybe display the line numbers in short form after the buffer details line like so: Maybe an interesting idea ¯\_(ツ)_/¯. P.S.: I have very little knowledge about contributing to open source projects, so lets say I'm interested in trying to add said feature, would I just add commits to this request, or create a new one? Any help would be appreciated! |
Sorry! I thought I already replied to this! I think maybe the best answer is to provide some sort of hook for a user to be able to override the details in their own configuration. The default value for this function would produce the line number text, but adding projectile for example would be as simple as overriding this function with something else that returns the project name. Feel free to add to the current PR if you think that's something you'd like to work on. If not, I feel comfortable merging it. |
I've added a completely optional feature allowing users to display the name of the project the current buffer is in by using projectile. Projectile is a completely optional dependency here.
I've also changed the
elcord--details-and-statefunction so that future additions would be easier.