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

Async git prompt #288

Merged
merged 1 commit into from
Sep 5, 2022
Merged

Async git prompt #288

merged 1 commit into from
Sep 5, 2022

Conversation

dandavison
Copy link
Contributor

A module for caching and asynchronously computing git status info to display in a nushell prompt. This can be useful in large git repos where it is slow to query for staged/unstaged changes.

There is currently no automatic cache invalidation: you refresh the cache manually whenever you suspect it might be stale. It also doesn't display untracked files currently.

@fdncred
Copy link
Collaborator

fdncred commented Sep 5, 2022

This is cool. Would you mind moving this under the nu_scripts/prompt folder? Just to keep all the prompt stuff together?

@dandavison
Copy link
Contributor Author

Would you mind moving this under the nu_scripts/prompt folder?

Done.

@fdncred
Copy link
Collaborator

fdncred commented Sep 5, 2022

thanks

@fdncred fdncred merged commit 97b9c12 into nushell:main Sep 5, 2022
@dandavison
Copy link
Contributor Author

No problem, thanks for looking at this. It might be helpful to add an indicator showing when the prompt is displaying cached results (to remind you that it won't be changing unless you refresh the cache!). I'll probably open a PR for that in a bit. And maybe I'll start a missing features list in the README (cache invalidation, untracked files).

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.

2 participants