Bug 4084 - ability to apply patch attachments on arbitrary paths
Summary: ability to apply patch attachments on arbitrary paths
Status: NEW
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI/Message View (show other bugs)
Version: 3.17.2
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2018-08-31 20:58 UTC by Ricardo Mones
Modified: 2018-08-31 21:24 UTC (History)
0 users

See Also:


Attachments

Description Ricardo Mones 2018-08-31 20:58:45 UTC
How this would work?

- New option on mimeview contextual menu for text/x-patch attachments, for example: "Apply patch to..."
- On clicking a small dialog opens:
  +--------------------------------+
  | Apply patch <attachment name>  | # dialog title
  | To [________________] [Browse] | # path selector
  | Apply with (ยท) Git ( ) Patch   | # select how to apply
  | Level [v][  1]                 | # conditional dropdown with patch level (0, 1, 2, ...)
  |               [Cancel] [Apply] | # enabled when patch radio option is selected
  +--------------------------------+ 
- It chdirs to the selected path and invokes either 'git am' or 'patch' with those arguments :)
- If git or patch are not in $PATH the corresponding radio button is disabled
- If none of them are in $PATH the menu option appears disabled
- Last selected patch should be remembered

Sounds it good?

Thanks in advance! ;-)
Comment 1 Andrej Kacian 2018-08-31 21:24:31 UTC
Sounds like a plugin idea to me.

Note You need to log in before you can comment on or make changes to this bug.