actionless / pikaur

AUR helper with minimal dependencies. Review PKGBUILDs all in once, next build them all without user interaction.
GNU General Public License v3.0
867 stars 87 forks source link

Faster way to view PKGBUILD, etc. on first install #648

Open xsrvmy opened 2 years ago

xsrvmy commented 2 years ago

Is there a faster way to view the PKGBUILD on the first install (eg. showing diff against an empty file like yay does)? Going into edit and then hitting :q takes way too many key presses.

akspecs commented 2 years ago

i replied via email, but that reply is not showing up for some reason. forgive the duplicate reply if that message eventually comes up!

pikaur handles future updates to packages (installed by pikaur) by showing the future version's PKGBUILD and relevant install files diff's against the prior PKGBUILD and install files.

perhaps a nice to have feature would be to have the option to pipe the PKGBUILD's contents through less if the goal is to only view the PKGBUILD without editing it.

and with a few more keystrokes you might be able to submit the pull request that accomplishes exactly this ;)

xsrvmy commented 2 years ago

I think there's a misunderstanding here. I was talking about the first install, where unlike yay and paru, pikaur shows the diff as nothing instead of the entire file. I think the current behaviour is fine for updates.

actionless commented 2 years ago

i think it could be new config option added for choosing alternative command for viewing file for the first time (if it's not set - normal editor logic should be executed) - so people could choose cat, less, more or whatever

akspecs commented 2 years ago

pikaur handles future updates to packages (installed by pikaur) by showing the future version's PKGBUILD and relevant install files diff's against the prior PKGBUILD and install files.

perhaps a nice to have feature would be to have the option to pipe the PKGBUILD's contents through less if the goal is to only view the PKGBUILD without editing it.

and with a few more keystrokes you might be able to submit the pull request that accomplishes exactly this ;)