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

command to return just the keys #20

Closed
locallycompact opened this issue Dec 13, 2022 · 6 comments
Closed

command to return just the keys #20

locallycompact opened this issue Dec 13, 2022 · 6 comments

Comments

@locallycompact
Copy link

If you have multiple loops for the same project in different windows there's some friction when resuming a project, especially if that project is checked out on a remote machine.

One way to help might be to have feedback keys that returns the keys, then the user can run something like:

feedback keys | xargs -I{} alacritty --command "feedback {}"

The remote situation would then be a lot of typing but possible with ssh commands I think?

@NorfairKing
Copy link
Owner

@locallycompact I think I'm not really understanding your use-case here.
Are you saying you use multiple feedback loops in the same project and are feeling friction restarting them?
I'd like to see an example of that so I can understand it better.
Running feedback with no arguments already shows you the available loops.

@locallycompact
Copy link
Author

Here is the README from horizon-plutus

You can get live feedback using the feedback tool and
running the following commands in three separate terminals

feedback build

feedback check

feedback gen

feedback gen here will actually retrigger the other two with generated nix code. All three need to be in different windows and concurrently to respond to all events before committing. I can make one nix app button to do this, but ideally without hardcoding the keywords here.

@locallycompact
Copy link
Author

It's common that these repos are checked out on a remote machine as well because the builds are quite heavy, so to resume this project from a laptop, it's four terminals worth of ssh, but programatically a nix app could return the shell command you need to run to do it from one terminal.

@NorfairKing
Copy link
Owner

@locallycompact

  1. I think I get it now. This'll be a common use-case I think so let's think about this together.
  2. It looks like we have an opportunity to design composite loops so this can handle all of this inside a single window.
  3. We can definitely add some porcelain commands like keys

@locallycompact
Copy link
Author

I think composite loops would suit some people some of the time, but deferring control of the windows to the tiling window manager has other quality of life benefits, like being able to keep one relevant window mirrored in the heads up display of a domain expert or mirrored to a 100 inch screen.

@NorfairKing
Copy link
Owner

Running feedback with no arguments already shows you the available loops.
You can use yq to do what you want.

@NorfairKing NorfairKing closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2023
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

No branches or pull requests

2 participants