straight.el icon indicating copy to clipboard operation
straight.el copied to clipboard

A menu (UI) for straight.el?

Open StrictlyMonad opened this issue 2 years ago • 6 comments
trafficstars

First and foremost, wonderful project and appreciate all the effort being put into maitaining / upgrading it!

Had an idea, coming from neovim, which could benefit straight.el to some extent:

  1. Add a menu for managing straight.el packages, where the user is able to: a. Select a package and perform certain actions on it, b. Upgrade packages c. Sync packages (upgrade and rebuild perhaps?) d. Uninstall packages, e. Debug, profile and whatnot f. Clean (remove) old packages?

This idea is similar to what Lazy is currently offering as a neovim package manager.

Lazy UI: image

StrictlyMonad avatar May 13 '23 21:05 StrictlyMonad

There is a hydra for straight.el https://github.com/abo-abo/hydra/wiki/straight.el

bestlem avatar May 14 '23 12:05 bestlem

But if i've understood how hydra works (simple knowledge), then that won't show the packages being installed or having an action performed on them. Isn't that correct?

StrictlyMonad avatar May 14 '23 23:05 StrictlyMonad

Yes - the hydra I showd won't do that. The packages being installed are shown as current straight.el in the echo area. The example hydra works by choosing the action and then you select the package - so the opposite way round to what you want.

bestlem avatar May 15 '23 11:05 bestlem

As I had thought. Lazy.nvim does show the package being installed + displays changelog of installed package (compare between current installed version vs latest released version).

That imo would've been more helpful than the just a hydra menu.

StrictlyMonad avatar May 15 '23 12:05 StrictlyMonad

See M-x straight-x-fetch-all which implements a graphical view for package installation only, and elpaca which chooses different abstractions from straight.el and therefore makes it easier to construct a graphical interface.

raxod502 avatar May 17 '23 01:05 raxod502

Interesting! Perhaps I ought to take a look at Elpaca and see if it's better fit for my needs.

Appreciate the mention! :)

StrictlyMonad avatar May 18 '23 14:05 StrictlyMonad