astroidmail / astroid

A graphical threads-with-tags style, lightweight and fast, e-mail client for Notmuch
http://astroidmail.github.io
Other
610 stars 65 forks source link

Improve patch handling from mailinglists #250

Open gauteh opened 7 years ago

gauteh commented 7 years ago

I want to improve the way patches can be applied. Currently you can yank the content (raw or decoded), or the message-id. I think with some improvements various workflows could be supported. The improvements I am thinking about are:

Current, relevant, possibilities include:

Eventually, there should be some suggested workflows for how to do this efficiently in the wiki. Does anyone have any experience or particular workflow they would like to see possible?

gauteh commented 7 years ago

With the latest improvements to Yank raw and to #181 it is now smoother to apply patchsets.

By 'marking' several messages in thread-view and using the multi-key + Y (yank raw) you get a mailbox synposis of the marked messages copied to the primary clipboard: https://github.com/astroidmail/astroid/commit/5fd2c763fbabdc9f9c6ea56d6c7d88d0425db128 explains a possible workflow:

Yank raw on multiple-patches produces a mailbox-like (without >From filtering) synthesis of the patches, suitable for git am. So to apply a patch set sent with git-send-email or similar do:

You can also apply individual patches by using 'Y' on a message outside multi-key mode (not part).

Inline patches can mostly be copied with 'y' (which yanks decoded text) and then be applied using git apply.

This will go into a wiki page on using astroid for appyling patches.

gauteh commented 7 years ago

https://github.com/astroidmail/astroid/wiki/Working-with-patches-in-Astroid

gauteh commented 7 years ago

@gregkh: You might be interested.

gregkh commented 7 years ago

@gauteh oh nice! I'll have to try this out soon, thanks for the ping.

gauteh commented 7 years ago

Greg Kroah-Hartman writes on februar 25, 2017 10:50:

@gauteh oh nice! I'll have to try this out soon, thanks for the ping.

Good, let me know if you have any suggestions! I imagine you have a fairly qualified opinion by now.

gauteh commented 7 years ago

Clipboard target is now configurable through the '"' keybinding (vim-style), the default target has been changed to CLIPBOARD since that is the only one accessible by keyboard in GTK.