Skip to content

shell/completion.nu: add support for sudo, empty triggers and pacman preview#1

Closed
jochumdev wants to merge 1 commit into
sim590:nushell-integrationfrom
jochumdev:feat/fzf-nu_additions
Closed

shell/completion.nu: add support for sudo, empty triggers and pacman preview#1
jochumdev wants to merge 1 commit into
sim590:nushell-integrationfrom
jochumdev:feat/fzf-nu_additions

Conversation

@jochumdev

Copy link
Copy Markdown

Hi,

As noted in junegunn#4630 here are my improvements.

  • Add sudo support
  • Add support for empty trigers (I dont recommend that though)
  • Add a fzf preview for pacman packages using pacman -Si <pkg>
  • Add support for paru (it is just an extension wrapper to pacman)
  • Fix neatpick remove a not required do

Thank you for this, I like it a lot.

Kind regards,
René

@jochumdev

Copy link
Copy Markdown
Author

I forgot to promote show again... :)

It's now it's own project: https://sr.ht/~jochumdev/show/

…preview.

As noted in junegunn#4630 here are my improvements.

- Add sudo support
- Add support for empty trigers (I dont recommend that though)
- Add a fzf preview for pacman packages using `pacman -Si <pkg>`
- Add support for paru (it is just an extension wrapper to pacman)
- Fix neatpick remove a not required `do`
@jochumdev jochumdev force-pushed the feat/fzf-nu_additions branch from ed0d8eb to 8bb775f Compare December 16, 2025 10:02
@sim590

sim590 commented Apr 20, 2026

Copy link
Copy Markdown
Owner

Hi @jochumdev,

Thanks for your contributions! I've integrated the following features from your PR into the current codebase (which has been significantly reworked since December):

  • sudo support — the completer now skips sudo to determine the actual command
  • paru — recognized as an alias for pacman in the completion dispatch
  • pacman preview--preview "pacman -Si {}" with a Package > prompt

These are included in commit 10787b85 with a Co-authored-by credit.

I left out the empty trigger support (as you noted yourself, it's not recommended) and the closure-to-def refactor, since the codebase structure has changed quite a bit.

Closing this PR since the relevant changes have been merged. Thanks again for the improvements!

@sim590 sim590 closed this Apr 20, 2026
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

Successfully merging this pull request may close these issues.

2 participants