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

feat(pkgbuild): add PKGBUILD editing functionality #1288

Closed
wants to merge 1 commit into from

Conversation

romanstingler
Copy link

@romanstingler romanstingler commented Dec 11, 2024

Add support for editing PKGBUILDs before building packages, similar to yay's --editmenu option. This allows users to review and modify PKGBUILDs before they are built.

The implementation includes:

  • New editor selection logic that respects --editor flag, $VISUAL, and $EDITOR
  • Command line options --editmenu, --editor, and --editorflags

Usage:
paru --editmenu -S package # Enable PKGBUILD editing
paru --editor vim --editmenu package # Use specific editor

might
closes #1280

Add support for editing PKGBUILDs before building packages, similar to yay's
--editmenu option. This allows users to review and modify PKGBUILDs before
they are built.

The implementation includes:
- New editor selection logic that respects --editor flag, $VISUAL, and $EDITOR
- Command line options --editmenu, --editor, and --editorflags

Usage:
  paru --editmenu -S package            # Enable PKGBUILD editing
  paru --editor vim --editmenu package  # Use specific editor
@romanstingler
Copy link
Author

I started coding in Rust not long ago, so productive feedback is highly appreciated.

Basically, I used yay, and it has some features that Paru doesn't have, or at least not as comfortable.

With this patch, ANY EDITOR can be used to edit the PKGBUILD file.

@Morganamilo
Copy link
Owner

I'm really not a fan of yay style menus. Paru was a move to get away from them :P

You can use the --fm flag to edit pkgbuilds so this feature is already covered in my opinion.

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.

Weird output when using in-terminal file manager
2 participants