nupm
nupm copied to clipboard
Search should put the registry data at the end of the table
Currently, registry_name
and registry_path
are at the start of the table returned by nupm
search. I think that this information is repetitive and not as important, as version and type. But, due to the long registry path, it registry info pushes out everything else:
~/fork/nupm/nupm> nupm search plugin
─────┬────────────────┬──────────────────────────────────────────────────────────┬─────
# │ registry_name │ registry_path │ ...
─────┼────────────────┼──────────────────────────────────────────────────────────┼─────
0 │ nupm_test │ /home/kaathewise/.config/nushell/nupm/cache/registry/nup │ ...
│ │ m_test.nuon │
1 │ nupm_test │ /home/kaathewise/.config/nushell/nupm/cache/registry/nup │ ...
│ │ m_test.nuon │
2 │ nupm_test │ /home/kaathewise/.config/nushell/nupm/cache/registry/nup │ ...
│ │ m_test.nuon │
3 │ nupm_test │ /home/kaathewise/.config/nushell/nupm/cache/registry/nup │ ...
│ │ m_test.nuon │
4 │ nupm_test │ /home/kaathewise/.config/nushell/nupm/cache/registry/nup │ ...
│ │ m_test.nuon │
So, I want to suggest putting these two columns at the end:
~/fork/nupm> nupm search git
─────┬───────────────────────┬─────────┬───────────────────────────┬──────┬──────┬─────
# │ name │ version │ path │ type │ info │ ...
─────┼───────────────────────┼─────────┼───────────────────────────┼──────┼──────┼─────
0 │ nu-git-manager │ 0.1.0 │ pkgs/nu-git-manager │ git │ {rec │ ...
│ │ │ │ │ ord │
│ │ │ │ │ 2 fi │
│ │ │ │ │ elds │
│ │ │ │ │ } │
1 │ nu-git-manager-sugar │ 0.1.0 │ pkgs/nu-git-manager-sugar │ git │ {rec │ ...
│ │ │ │ │ ord │
│ │ │ │ │ 2 fi │
│ │ │ │ │ elds │
│ │ │ │ │ } │
2 │ nu-git-manager │ 0.2.0 │ pkgs/nu-git-manager │ git │ {rec │ ...
│ │ │ │ │ ord │
│ │ │ │ │ 2 fi │
│ │ │ │ │ elds │
│ │ │ │ │ } │
...