Comments (7)
It would be interesting if command could implement Input
and Output
protocols so that you should chain commands.
If a command that produces output is followed up by a command that takes input, it would use that input as its parameter. That why we could run shell script that open URL's etc. By introducing this form of composability I think we can elevate the usefulness of Command
's and workflow by a ten fold.
from keyboardcowboy.
Perhaps a linked list of input/output commands would be better than having stray commands that you can't really combine because of the conflicting types.
from keyboardcowboy.
Could you make an early prototype of command types in code, without thinking about reusability, like if they were plain structs? Just want to see all the fields for every command before we can build more sophisticated abstractions.
from keyboardcowboy.
I was actually tinkering with this yesterday but I quickly went to far into implementations and hit a roadblock. I think your approach is better, so I'll make a PR adding the different commands mentioned above with the underlying data structures. I think that will give us a good starting point for further discussions.
from keyboardcowboy.
If you look at #5, I managed to reduce the amount of commands down to four. Pretty happy about how they ended up because it would be kinda easy to extend it with other "sub" commands by relying on Kind
(if you look at both OpenCommand
and ScriptCommand
.
from keyboardcowboy.
The only thing missing here is an implementation to handle keyboard commands.
I think that would be the next logical step for me.
from keyboardcowboy.
Closing this issue because we currently support all the referenced types of commands.
Sure there is room for improvement here and there but they can be their own issues.
from keyboardcowboy.
Related Issues (20)
- Nested Binding HOT 3
- Difficulties in customization. Shortcuts do not work in all keyboard layout, I must it set En HOT 6
- Alternative Menubar Icon HOT 2
- App wont launch at all HOT 17
- open always a new window (iterm2) with hotkey not working HOT 9
- Key shadows stills on screen HOT 3
- Right Command Support HOT 1
- mouse doesn't work in workflow HOT 3
- Language agnostic keyboard shortcuts HOT 5
- Have a way to skip sending Keyboard shortcut to apps that use float windows (like Raycast/Alfred) HOT 4
- When launching a second time make it open the Configuration window HOT 5
- Using same key in combinations as sequence does not always work HOT 13
- Is there a way of backing up my data? HOT 2
- Make the configuration window remember its last position and size HOT 4
- Can not run Keybord Shortcuts that send F[1,2,3,4 ...] keys HOT 6
- Support for conditional Rebinding HOT 2
- Keyboard modifications not working every time I change audio device HOT 15
- Allow variables or shell output in Text command HOT 14
- Blank window HOT 8
- Documentation HOT 2
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 keyboardcowboy.