Skip to content

Added project name display using projectile#89

Open
berylllium wants to merge 3 commits intoMstrodl:masterfrom
berylllium:master
Open

Added project name display using projectile#89
berylllium wants to merge 3 commits intoMstrodl:masterfrom
berylllium:master

Conversation

@berylllium
Copy link

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.

image

I've also changed the elcord--details-and-state function so that future additions would be easier.

@Mstrodl
Copy link
Owner

Mstrodl commented Oct 5, 2023

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!

@Zulu-Inuoe
Copy link
Collaborator

Ditto, I like the idea of project integration. Looks good but I'll review more in the morning. Thanks!

Copy link
Owner

@Mstrodl Mstrodl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'll let @Zulu-Inuoe review as well 😄

@Zulu-Inuoe
Copy link
Collaborator

Zulu-Inuoe commented Oct 7, 2023

Yep sorry about the delay. Had a busier Friday than expected. I did take another look and I'm good with it

@berylllium
Copy link
Author

berylllium commented Oct 9, 2023

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: Editing elcord.el [91 of 1002]. And also add an option to do so even without the project name setting turned on.

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!

@Mstrodl
Copy link
Owner

Mstrodl commented Oct 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants