-
Notifications
You must be signed in to change notification settings - Fork 18
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
Feature Request: Configuration of commands to run on selection #16
Comments
That is indeed an interesting idea I plan to come back to ASAP. |
@alexpasmantier, I'm interested in contributing to this. Let me know if we can have a discussion. P.S Awesome Project. I have to say I ran across this project and this is now a software I don't know how I used my terminal without. |
Hi, thanks for showing interest 🙏 I'm still thinking about the way to go implementing this and how to make it integrate nicely with cable channels so that people might create their own custom actions when creating their channel prototypes which I believe would be a really nice feature. Have you had a chance to take a look at the codebase and have any insights regarding that? No rush, just curious :-) Cheers |
Just in case anyone was curious how to do this [I was; "how to get stdout from program that only writes to stdout after it closes?" was not a question I'd asked before], here's how I did it with an alias and VS Code: alias ds='bash -c "tv | while read -r line; do code -g \"\$line\"; done"'
|
Problem
Currently you have to pipe the output to the command you want to handle (cd, xdg-open, etc.)
Feature
To prevent adding aliases for everything, it would be nice if it where possible to configure commands that handle the selection and to group them by channel. For example the
cd
command doesn't make sense in the files channel. A popup that lists all configured options with a fuzzy search would be amazing.The configuration I had in mind would look something like this:
The text was updated successfully, but these errors were encountered: