]> git.madduck.net Git - etc/mutt.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

rename editing mailcap file
authormartin f. krafft <madduck@madduck.net>
Sun, 12 Aug 2018 01:16:11 +0000 (13:16 +1200)
committermartin f. krafft <madduck@madduck.net>
Sun, 12 Aug 2018 01:16:11 +0000 (13:16 +1200)
.mutt/keybindings
.mutt/mailcap-edit-wrapper [deleted file]
.mutt/mailcap.editing [new file with mode: 0644]

index 5fc17ec544a7f558a3deb53ee495f5a288548a07..a23c46f756aea9cd18b7745f48b5a17d19f18865 100644 (file)
@@ -83,7 +83,7 @@ macro index,pager     \el     '<enter-command>set my_editor="$editor"<enter><enter-comma
 # override F6 from notmuch-mutt
 macro index            <F6>    "<enter-command><enter>" "do nothing"
 
-macro attach   e       '<enter-command>set my_mailcap_path="$mailcap_path"<enter><enter-command>set mailcap_path="~/.mutt/mailcap-edit-wrapper"<enter><view-mailcap><enter-command>set mailcap_path="$my_mailcap_path"<enter>' "edit temporary file of attachment"
+macro attach   e       '<enter-command>set my_mailcap_path="$mailcap_path"<enter><enter-command>set mailcap_path="~/.mutt/mailcap.editing"<enter><view-mailcap><enter-command>set mailcap_path="$my_mailcap_path"<enter>' "edit temporary file of attachment"
 
 macro index,pager      M       '<enter-command>set my_weed="$weed"<enter><enter-command>set noweed<enter><pipe-message>formail -czx X-RSS-URL: | xargs sensible-browser<enter><enter-command>set weed="$my_weed"<enter>'
 
diff --git a/.mutt/mailcap-edit-wrapper b/.mutt/mailcap-edit-wrapper
deleted file mode 100644 (file)
index ee271ae..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-application/*; chmod +w '%s' && run-mailcap --action=edit %t:'%s'
-image/*; chmod +w '%s' && run-mailcap --action=edit %t:'%s'
diff --git a/.mutt/mailcap.editing b/.mutt/mailcap.editing
new file mode 100644 (file)
index 0000000..6e94104
--- /dev/null
@@ -0,0 +1,2 @@
+application/*; chmod +w %s && run-mailcap --action=edit %t:%s
+image/*; chmod +w %s && run-mailcap --action=edit %t:%s