kitsunyan / pakku

Pacman wrapper with AUR support
GNU General Public License v3.0
130 stars 8 forks source link

Support for yaourt's -C? #23

Open wilbowma opened 6 years ago

wilbowma commented 6 years ago

I'm trying to switch from yaourt, but I miss the -C feature that lets me quickly clean up any *.pacnew, etc, files.

kitsunyan commented 6 years ago

Actually I even thought about createing a merger tool for *.pacnew files. I think I'll do something like that.

wilbowma commented 6 years ago

Awesome, thanks! What did you have in mind for a merging tool? Launching, eg, vimdiff seems like the best case; I doubt things can be automatically merged well in general.

-- Sent from my phoneamajig

On Jul 8, 2018, at 01:10, kitsunyan notifications@github.com wrote:

Actually I even thought about createing a merger tool for *.pacnew files. I think I'll do something like that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

kitsunyan commented 6 years ago

Yes, it won't be an auto merger. I'm thinking about implementing it via git add -p, so user could inspect each diff and edit it. I found this thing quite convenient when I worked with git.

wilbowma commented 6 years ago

Oh that's a very good idea! Look forward to it.

-- Sent from my phoneamajig

On Jul 8, 2018, at 14:16, kitsunyan notifications@github.com wrote:

Yes, it won't be an auto merger. I'm thinking about implementing it via git add -p, so user could inspect each diff and edit it. I found this thing quite convenient when I worked with git.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

seafox commented 6 years ago

@wilbowma for now you could try pacui package with Maintain System option. It currently has no ability to perform selective editing on diff, just rewrite or clean up new config files (an external prog like meld might be invoked when new/backup of config file found, but no integration AFAIK exists yet).

mrvik commented 6 years ago

What about pacdiff from community/pacman-contrib? It's a good tool to take care of the pac{new,save} files, but a implementation in pakku would be great.

seafox commented 6 years ago

@mrvik pacdiff is used internally by pacui just for that purpose. Although, I'd prefer its different search options as there are times pacnew/save files still remain in file system but aren't detected from pacman db. And yes, if @kitsunyan doesn't want to make its own diff plugin, pacdiff works fine with meld and kompare, if vim isn't your thing.