Better configuration of email search
This commit is contained in:
		| @@ -264,6 +264,12 @@ http://www.djcbsoftware.nl/code/mu/cheatsheet.html | |||||||
|   :END: |   :END: | ||||||
| https://neomutt.org/ | https://neomutt.org/ | ||||||
|  |  | ||||||
|  | Documentation: | ||||||
|  | #+begin_src bash :results none :exports code | ||||||
|  |   man neomutt | ||||||
|  |   man neomuttrc | ||||||
|  | #+end_src | ||||||
|  |  | ||||||
| ** Bindings | ** Bindings | ||||||
| *** TODO Vim Bindings | *** TODO Vim Bindings | ||||||
| Unding toutes les touches (https://github.com/iagox86/mutt/blob/master/keybindings.conf) et rebind tout pour faire un truc coherent et documenté | Unding toutes les touches (https://github.com/iagox86/mutt/blob/master/keybindings.conf) et rebind tout pour faire un truc coherent et documenté | ||||||
| @@ -308,15 +314,20 @@ Rajouter les keybindings de vim https://github.com/neomutt/neomutt/issues/56#iss | |||||||
| #+BEGIN_SRC conf | #+BEGIN_SRC conf | ||||||
|   bind index u undelete-message |   bind index u undelete-message | ||||||
|  |  | ||||||
|   bind index F search |  | ||||||
|  |  | ||||||
|   bind index,pager P print-message |   bind index,pager P print-message | ||||||
|  |  | ||||||
|   bind index,pager p recall-message |   bind index,pager p recall-message | ||||||
|   bind index,pager N search-opposite |   bind index,pager N search-opposite | ||||||
|  |  | ||||||
|   macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read" |   macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read" | ||||||
|   macro index,pager \Cw "<pipe-entry> urlview<enter>" "call urlview to open links" |   macro index,pager \cw "\ | ||||||
|  |     :set my_tmp_pipe_decode=\$pipe_decode\n\ | ||||||
|  |     :set pipe_decode\n\ | ||||||
|  |     |urlview\n\ | ||||||
|  |     :set pipe_decode=\$my_tmp_pipe_decode\n\ | ||||||
|  |     :unset my_tmp_pipe_decode\n" \ | ||||||
|  |     'call urlview to extract URLs out of a message' | ||||||
|  |  | ||||||
| #+END_SRC | #+END_SRC | ||||||
|  |  | ||||||
| *** Sync email | *** Sync email | ||||||
| @@ -354,9 +365,6 @@ Rajouter les keybindings de vim https://github.com/neomutt/neomutt/issues/56#iss | |||||||
| *** Quickly change mailboxes | *** Quickly change mailboxes | ||||||
| #+BEGIN_SRC conf | #+BEGIN_SRC conf | ||||||
|   macro index,pager c "<change-folder>?<toggle-mailboxes>" "change folder" |   macro index,pager c "<change-folder>?<toggle-mailboxes>" "change folder" | ||||||
|   macro index,pager gm "<change-folder>+gmail/Inbox<enter>" "go to inbox" |  | ||||||
|   macro index,pager ge "<change-folder>+esrf/Inbox<enter>" "go to inbox" |  | ||||||
|   macro index,pager gu "<change-folder>+ulg/Inbox<enter>" "go to inbox" |  | ||||||
| #+END_SRC | #+END_SRC | ||||||
|  |  | ||||||
| *** TODO Labels | *** TODO Labels | ||||||
| @@ -391,7 +399,13 @@ Rajouter les keybindings de vim https://github.com/neomutt/neomutt/issues/56#iss | |||||||
| #+BEGIN_SRC conf | #+BEGIN_SRC conf | ||||||
|   bind compose p postpone-message |   bind compose p postpone-message | ||||||
|  |  | ||||||
|   macro attach,compose \Cw "<pipe-entry> urlview<enter>" "call urlview to open links" |   macro attach,compose \cw "\ | ||||||
|  |     :set my_tmp_pipe_decode=\$pipe_decode\n\ | ||||||
|  |     :set pipe_decode\n\ | ||||||
|  |     |urlview\n\ | ||||||
|  |     :set pipe_decode=\$my_tmp_pipe_decode\n\ | ||||||
|  |     :unset my_tmp_pipe_decode\n" \ | ||||||
|  |     'call urlview to extract URLs out of a message' | ||||||
|  |  | ||||||
|   bind compose R rename-attachment |   bind compose R rename-attachment | ||||||
|  |  | ||||||
| @@ -626,9 +640,9 @@ color body red default         "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-] | |||||||
| ** TODO [#A] Searching using Mu | ** TODO [#A] Searching using Mu | ||||||
| #+begin_src conf | #+begin_src conf | ||||||
|   # mutt macros for mu |   # mutt macros for mu | ||||||
|   macro index \Cf "<shell-escape>mu find --clearlinks --format=links --linksdir=~/.mail/search " \ |   macro index,pager \Cf "<shell-escape>mu find --clearlinks --format=links --linksdir=~/.mail/search " \ | ||||||
|                            "mu find" |                            "mu find" | ||||||
|   macro index gf "<change-folder-readonly>~/.mail/search<enter>" \ |   macro index,pager gf "<change-folder-readonly>~/.mail/search<enter>" \ | ||||||
|                            "mu find results" |                            "mu find results" | ||||||
| #+end_src | #+end_src | ||||||
|  |  | ||||||
| @@ -657,7 +671,7 @@ color body red default         "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-] | |||||||
| https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt | https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt | ||||||
|  |  | ||||||
| #+BEGIN_SRC conf | #+BEGIN_SRC conf | ||||||
|   # set print_command="$HOME/.config/neomutt/bin/mutt_print.sh" |   set print_command="/usr/bin/muttprint %s -p ctb110c1u" | ||||||
| #+END_SRC | #+END_SRC | ||||||
|  |  | ||||||
| ** Accounts | ** Accounts | ||||||
| @@ -669,6 +683,10 @@ https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt | |||||||
|   folder-hook gmail/* source ~/.config/neomutt/accounts/gmail |   folder-hook gmail/* source ~/.config/neomutt/accounts/gmail | ||||||
|   folder-hook esrf/*  source ~/.config/neomutt/accounts/esrf |   folder-hook esrf/*  source ~/.config/neomutt/accounts/esrf | ||||||
|   folder-hook ulg/*   source ~/.config/neomutt/accounts/ulg |   folder-hook ulg/*   source ~/.config/neomutt/accounts/ulg | ||||||
|  |  | ||||||
|  |   macro index,pager gu "<change-folder>+ulg/Inbox<enter>" "go to inbox" | ||||||
|  |   macro index,pager ge "<change-folder>+esrf/Inbox<enter>" "go to inbox" | ||||||
|  |   macro index,pager gm "<change-folder>+gmail/Inbox<enter>" "go to inbox" | ||||||
| #+END_SRC | #+END_SRC | ||||||
|  |  | ||||||
| *** Gmail | *** Gmail | ||||||
| @@ -701,7 +719,6 @@ https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt | |||||||
| #+end_src | #+end_src | ||||||
| This empty code block is used to add a new line after signatude | This empty code block is used to add a new line after signatude | ||||||
| #+begin_src conf :tangle ~/.config/neomutt/accounts/gmail.signature :comments none :padline no | #+begin_src conf :tangle ~/.config/neomutt/accounts/gmail.signature :comments none :padline no | ||||||
|  |  | ||||||
| #+end_src | #+end_src | ||||||
| *** ESRF | *** ESRF | ||||||
| **** Configuration | **** Configuration | ||||||
| @@ -733,7 +750,6 @@ This empty code block is used to add a new line after signatude | |||||||
| #+end_src | #+end_src | ||||||
| This empty code block is used to add a new line after signatude | This empty code block is used to add a new line after signatude | ||||||
| #+begin_src conf :tangle ~/.config/neomutt/accounts/esrf.signature :comments none :padline no | #+begin_src conf :tangle ~/.config/neomutt/accounts/esrf.signature :comments none :padline no | ||||||
|  |  | ||||||
| #+end_src | #+end_src | ||||||
|  |  | ||||||
| *** ULG | *** ULG | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user