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

Customizable project name detection process #14

Merged
merged 7 commits into from
Apr 16, 2020

Conversation

VojtechStep
Copy link

@VojtechStep VojtechStep commented Apr 15, 2020

Fixes #4

This PR allows the user to specify multiple ways of detecting the name of the project. I have included multiple resolvers based on Projectile and Magit, as those are the primary tools I use for interacting with project structures. I believe the process for adding custom resolvers is easy and reasonably documented.

I also removed projectile from dependencies, as it is now an optional dependency and the package works fine without it installed.

There was also one error I found in the implementation of a request callback, which may have affected performance, so it would probably be good to ping the issues about slowing down Emacs and ask whether this patch changes anything.

Let me know if there is anything missing.

Add predefined resolvers for Projectile and Magit.
The invocation of the callback would crash because of a wrong number
of arguments, which would never let the system know that a bucket was
created, wasting CPU time on constantly resending requests for bucket creation.
@pauldub
Copy link
Owner

pauldub commented Apr 16, 2020

Hi @VojtechStep

Thank you very much for tackling this issue, I quite like the multiple resolvers architecture. With this in place I believe the package has a good level of adaptability to one's workflow.

I'll ping issues #7 and #8 to ask for more feedback after this feature is released.

@pauldub pauldub merged commit 9d591c5 into pauldub:master Apr 16, 2020
@VojtechStep VojtechStep deleted the feature/project-name-detect branch April 16, 2020 07:55
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.

activity-watch-mode assumes projectile is running and crashed if it is not
2 participants