8000 UI Redesign · Issue #72 · nix-community/nix-init · GitHub
[go: up one dir, main page]

Skip to content

UI Redesign #72

Open
Open

Description

@figsoda

The current tui is far from perfect, file path completions have some unconventional behavior, and we are simulating selection with completions

Activity

  1. RaitoBezarius commented on Mar 19, 2023

    @RaitoBezarius
    Member

    I don't know if should go here, but sourceRoot support would be awesome.

  2. pinned this issue on Mar 21, 2023
  3. changed the title [-]UI Rework[/-] [+]UI Redesign[/+] on May 5, 2023
  4. Kranzes commented on May 5, 2023

    @Kranzes
    Member

    The order of the interactive questions isn't very intuitive in my opinion. Right now the output path is asked first then URL and so on. For me at least, it makes much more sense to have URL as the first question then the other packaging related ones and finally the output path. I think in many interactive tools for generating some spec the output path is the last thing being asked.

    Almost all the times I use nix-init I accidentally put the URL as the first answer automatically and since the file creating isn't truly atomic (gets created even if nix-init doesn't exit with code 0) I end up with a directory like this:

    Enter output path (defaults to current directory)
    ❯ https://github.com/nix-community/nix-init
    Enter url
    ❯
    
    Error: Interrupted
    [kranzes@pongo ~/test]$ ls
    https:
    [kranzes@pongo ~/test]$ tree
    .
    └── https:
        └── github.com
            └── nix-community
                └── nix-init
    
    3 directories, 1 file
    
  5. Kranzes commented on May 5, 2023

    @Kranzes
    Member

    nix-template supports writing the output file automatically to a directory in a nixpkgs checkout. I think we could add an option to do the same in nix-init, this should be pretty for python packages as their location in nixpkgs isn't category based but rather pname based, in addition, it could also add it to to pkgs/top-level/python-packages.nix.

  6. figsoda commented on May 5, 2023

    @figsoda
    MemberAuthor

    writing the output file automatically to a directory in a nixpkgs checkout

    This sounds useful for buildPythonPackage, though I'm not sure about other types of packages. I am mostly waiting for NixOS/rfcs#140

    This would also be a good argument for prompting for URL (and probably pname) before the output path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0