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

Display the alias name of cabals when in multi-cabal mode #223

Open
narFnarF opened this issue Sep 6, 2023 · 1 comment
Open

Display the alias name of cabals when in multi-cabal mode #223

narFnarF opened this issue Sep 6, 2023 · 1 comment

Comments

@narFnarF
Copy link

narFnarF commented Sep 6, 2023

When using multi-cabal mode, the interface currently display each cabal as their cabal-key (or a short version of it). It makes it hard to distinguish each cabal when joining more than 2.

Suggestion: Display the user selected alias of each cabal instead (or in addition to) their cabal-key.

@hackergrrl
Copy link
Member

It looks like cabal aliases don't currently get passed down into cabal-client. If someone wanted to do a fix, I think the steps would look like

  1. Plumb a new opts.cabalAliases param down into Client in cabal-client, passing config.aliases into this from cabal-cli.
  2. Save that arg to this.cabalAliases in the Client constructor.
  3. Plumb any aliases for a cabal down into any CabalDetails that get created as a new opts parameter.
  4. Expose a cabal's aliases as e.g. CabalDetails.getAliases().
  5. Use that new method in neat-screen.js in cabal-cli to render all aliases for that cabal in the info line.

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