Comments (5)
👍 this would make a world of difference
from alfred-github-workflow.
The workflow is already caching, and the cache is refreshing in background.
But unused cache is deleted after 30 days, so when you didn't use gh
for 30 days, the next time will be slow. I will increase this to 100 days.
gh my pulls
is static. But after typing gh
, the workflow starts searching all your repos. And the workflow is waiting for the result before handling next input.
from alfred-github-workflow.
Ahh I see. So the issue is not caching but the command blocking on searching all the repos. Could the command be made to display current cache results immediately and run the search asynchronously in the background?
At best case this would provide all the expected commands and repos instantly. At worst case the user would see results for some of their repos/issues/pulls but not newly created ones until the async call completed. Either case, I suppose it would be best to surface some fetching
dialogue to the user -- dunno how to do that. Perhaps stuff it in first option slot?
from alfred-github-workflow.
Could the command be made to display current cache results immediately and run the search asynchronously in the background?
It's already implemented this way. Only if there is no cache for the query type, then it is loaded synchronously before showing results.
At worst case the user would see results for some of their repos/issues/pulls but not newly created ones until the async call completed.
.. until async call completed and hitting another key, because it is not possible to add async results to alfred.
from alfred-github-workflow.
ok kewl, thanks for helping me understand! I guess we can close this then.
from alfred-github-workflow.
Related Issues (20)
- Plugin breaks after update with Alfred 3 HOT 6
- Workflow breaks on macOS 12 (Monterey) HOT 6
- gh keyword doesn't work on macOS 12.0.1 HOT 1
- Mac 12.0.1 and php 8.1.0 - I cannot auth using GitHub token HOT 1
- Cannot get issue list of the repository HOT 1
- /bin/bash: php: command not found HOT 1
- Can't seem to gh > login, even though i have installed the workflow HOT 2
- [Feature Request] Add option to select browser to open in. HOT 1
- Version not updated in workflow editor HOT 1
- Stopped working? HOT 1
- What is the file to adjust the icon? HOT 1
- Current version breaks in latest php from Homebrew HOT 11
- Replicate App "in house" for privacy issues HOT 1
- Can't search in my organization private repos. HOT 2
- Support topic search and trending redirect
- Alfred Gallery
- ERROR: GitHub[Script Filter] Code 6: dyld[9991]: Library not loaded: '/opt/homebrew/opt/libtiff/lib/libtiff.5.dylib'
- Is This Project Still Maintained? HOT 1
- Workflow 1.0.9 Missing Symbol Called
- Support Github Enterprise Cloud
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alfred-github-workflow.