Add a way to drag and drop files for attachment
This commit is contained in:
parent
8d5ec26992
commit
f1af023403
@ -340,7 +340,7 @@ https://marlam.de/msmtp/
|
|||||||
Useful commands are described in the [[http://www.djcbsoftware.nl/code/mu/cheatsheet.html][Cheat-sheet]].
|
Useful commands are described in the [[http://www.djcbsoftware.nl/code/mu/cheatsheet.html][Cheat-sheet]].
|
||||||
|
|
||||||
For instance, to find mails with =pdf= attachments:
|
For instance, to find mails with =pdf= attachments:
|
||||||
#+begin_src bash :eval no
|
#+begin_src bash :eval no :tangle no
|
||||||
mu find 'mime:application/pdf'
|
mu find 'mime:application/pdf'
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -352,7 +352,7 @@ For instance, to find mails with =pdf= attachments:
|
|||||||
https://neomutt.org/
|
https://neomutt.org/
|
||||||
|
|
||||||
Documentation:
|
Documentation:
|
||||||
#+begin_src bash :results none :exports code
|
#+begin_src bash :results none :exports code :tangle no
|
||||||
man neomutt
|
man neomutt
|
||||||
man neomuttrc
|
man neomuttrc
|
||||||
#+end_src
|
#+end_src
|
||||||
@ -790,6 +790,11 @@ Attach multiple files using ranger
|
|||||||
macro compose A "<shell-escape>bash $HOME/.config/neomutt/bin/rangerpick<enter><enter-command>source /tmp/rangerpick<enter><shell-escape>bash $HOME/.config/neomutt/bin/rangerpick clean<enter>" "Attach with Ranger"
|
macro compose A "<shell-escape>bash $HOME/.config/neomutt/bin/rangerpick<enter><enter-command>source /tmp/rangerpick<enter><shell-escape>bash $HOME/.config/neomutt/bin/rangerpick clean<enter>" "Attach with Ranger"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Attach file by drooping from GUI
|
||||||
|
#+begin_src conf
|
||||||
|
macro compose B "<shell-escape>bash $HOME/.config/neomutt/bin/rangerpick dragon<enter><enter-command>source /tmp/rangerpick<enter><shell-escape>bash $HOME/.config/neomutt/bin/rangerpick clean<enter>" "Attach with Ranger"
|
||||||
|
#+end_src
|
||||||
|
|
||||||
**** Attach with Ranger Script
|
**** Attach with Ranger Script
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/.config/neomutt/bin/rangerpick
|
:header-args: :tangle ~/.config/neomutt/bin/rangerpick
|
||||||
@ -800,6 +805,8 @@ Attach multiple files using ranger
|
|||||||
tmpfile=/tmp/rangerpick
|
tmpfile=/tmp/rangerpick
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
ranger --choosefiles $tmpfile && sed -i 's/\s/\\ /g' $tmpfile && echo "$(awk 'BEGIN {printf "%s", "push "} {printf "%s", "<attach-file>"$0"<enter>"}' $tmpfile)" > $tmpfile
|
ranger --choosefiles $tmpfile && sed -i 's/\s/\\ /g' $tmpfile && echo "$(awk 'BEGIN {printf "%s", "push "} {printf "%s", "<attach-file>"$0"<enter>"}' $tmpfile)" > $tmpfile
|
||||||
|
elif [ $1 == "dragon" ]; then
|
||||||
|
dragon-drag-and-drop --target --print-path --keep > $tmpfile && sed -i 's/\s/\\ /g' $tmpfile && echo "$(awk 'BEGIN {printf "%s", "push "} {printf "%s", "<attach-file>"$0"<enter>"}' $tmpfile)" > $tmpfile
|
||||||
elif [ $1 == "clean" ]; then
|
elif [ $1 == "clean" ]; then
|
||||||
ls $tmpfile
|
ls $tmpfile
|
||||||
fi
|
fi
|
||||||
@ -1207,7 +1214,7 @@ This empty code block is used to add a new line after signature
|
|||||||
set use_from # respect the From: address the editor sends back
|
set use_from # respect the From: address the editor sends back
|
||||||
|
|
||||||
# Use Vim to compose email, with a few default options.
|
# Use Vim to compose email, with a few default options.
|
||||||
set editor = "nvim -c '/\\n--' -c ':noh' -c 'startinsert' -c ':Goyo'"
|
set editor = "nvim -c '/\\n--' -c ':noh' -c 'startinsert'"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** View Options
|
** View Options
|
||||||
@ -1247,7 +1254,6 @@ This empty code block is used to add a new line after signature
|
|||||||
|
|
||||||
*** Compose View Options
|
*** Compose View Options
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set envelope_from # which from?
|
|
||||||
set sig_dashes # dashes before sig
|
set sig_dashes # dashes before sig
|
||||||
set sig_on_top # the signature is just below the response
|
set sig_on_top # the signature is just below the response
|
||||||
set edit_headers # show headers when composing
|
set edit_headers # show headers when composing
|
||||||
@ -1322,8 +1328,7 @@ This empty code block is used to add a new line after signature
|
|||||||
set mail_check_stats
|
set mail_check_stats
|
||||||
|
|
||||||
# Display the Sidebar mailboxes using this format string.
|
# Display the Sidebar mailboxes using this format string.
|
||||||
# set sidebar_format = '%B %?N?(%N)?%* %S'
|
set sidebar_format = '%D %* %?N?[%N]?'
|
||||||
set sidebar_format = '%B %* %?N?[%N]?'
|
|
||||||
|
|
||||||
# Sort the mailboxes in the Sidebar using this method:
|
# Sort the mailboxes in the Sidebar using this method:
|
||||||
# count - total number of messages
|
# count - total number of messages
|
||||||
|
Loading…
Reference in New Issue
Block a user