Add a way to drag and drop files for attachment
This commit is contained in:
parent
0b921c4313
commit
72753e5509
@ -340,7 +340,7 @@ https://marlam.de/msmtp/
|
||||
Useful commands are described in the [[http://www.djcbsoftware.nl/code/mu/cheatsheet.html][Cheat-sheet]].
|
||||
|
||||
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'
|
||||
#+end_src
|
||||
|
||||
@ -352,7 +352,7 @@ For instance, to find mails with =pdf= attachments:
|
||||
https://neomutt.org/
|
||||
|
||||
Documentation:
|
||||
#+begin_src bash :results none :exports code
|
||||
#+begin_src bash :results none :exports code :tangle no
|
||||
man neomutt
|
||||
man neomuttrc
|
||||
#+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"
|
||||
#+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
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/neomutt/bin/rangerpick
|
||||
@ -800,6 +805,8 @@ Attach multiple files using ranger
|
||||
tmpfile=/tmp/rangerpick
|
||||
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
|
||||
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
|
||||
ls $tmpfile
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
** View Options
|
||||
@ -1247,7 +1254,6 @@ This empty code block is used to add a new line after signature
|
||||
|
||||
*** Compose View Options
|
||||
#+BEGIN_SRC conf
|
||||
set envelope_from # which from?
|
||||
set sig_dashes # dashes before sig
|
||||
set sig_on_top # the signature is just below the response
|
||||
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
|
||||
|
||||
# Display the Sidebar mailboxes using this format string.
|
||||
# set sidebar_format = '%B %?N?(%N)?%* %S'
|
||||
set sidebar_format = '%B %* %?N?[%N]?'
|
||||
set sidebar_format = '%D %* %?N?[%N]?'
|
||||
|
||||
# Sort the mailboxes in the Sidebar using this method:
|
||||
# count - total number of messages
|
||||
|
Loading…
Reference in New Issue
Block a user