Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add get_current_project() API #149

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

D7ry
Copy link

@D7ry D7ry commented Mar 25, 2024

I would like to see the name of the current project on my lueline , so I added get_current_project() to the API. Under the hood, it uses get_project_root and simply uses regex to take the directory name.

A snazzy screenshot of lualine working nicely with the API:
image

@D7ry D7ry changed the title Add get_current_project() API feat: Add get_current_project() API Mar 25, 2024
@webmandman
Copy link

Yes, lets do this one!!

@webmandman
Copy link

@D7ry I used your code and it works good. Thank you. For now I'm using my fork from this repo.

@dan1els
Copy link

dan1els commented Jan 16, 2025

Are you gonna merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants