Move to next flagged message in Mutt












3















Is it possible to move to the next flagged message in Mutt? In looking at the development manual, I wasn't able to see anything that would let me do this. I'm looking for something like <next-new>, but for skipping around to the next flagged message. If there's nothing like this in Mutt, can I fake it with macros?










share|improve this question



























    3















    Is it possible to move to the next flagged message in Mutt? In looking at the development manual, I wasn't able to see anything that would let me do this. I'm looking for something like <next-new>, but for skipping around to the next flagged message. If there's nothing like this in Mutt, can I fake it with macros?










    share|improve this question

























      3












      3








      3








      Is it possible to move to the next flagged message in Mutt? In looking at the development manual, I wasn't able to see anything that would let me do this. I'm looking for something like <next-new>, but for skipping around to the next flagged message. If there's nothing like this in Mutt, can I fake it with macros?










      share|improve this question














      Is it possible to move to the next flagged message in Mutt? In looking at the development manual, I wasn't able to see anything that would let me do this. I'm looking for something like <next-new>, but for skipping around to the next flagged message. If there's nothing like this in Mutt, can I fake it with macros?







      mutt






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 15 '14 at 15:50









      Aaron MasseyAaron Massey

      17719




      17719






















          3 Answers
          3






          active

          oldest

          votes


















          5














          Just search for the next flagged message: / followed by ~F. Well, the only drawback is that this doesn't work from the pager menu (but this would be a valid RFE).



          And you can write a macro with the value: <search>~Fr



          Note: similarly, I suppose that <next-new> is almost the same as <search>~Nr in the index menu (the only difference I can see is the different error message when there are no new messages).



          Note 2: from the pager, I suppose that a macro <exit><search>~Fr<display-message> would do what you want.






          share|improve this answer


























          • Cool, thanks. I knew I was missing something. I didn't think about using a pattern in a search like that.

            – Aaron Massey
            Aug 15 '14 at 16:46






          • 1





            See also l (and then enter ~F) to limit the view to only the flagged messages.

            – Stéphane Chazelas
            Aug 15 '14 at 20:24








          • 1





            And RTFM: Have a look at man muttrc. Try man -Pless +/flagged muttrc or man -Pcol -b muttrc | sed '/^[A-Z ] {0,5}[^ ]/H;/flagged/{x;p;x;q;};d'

            – F. Hauri
            May 20 '17 at 9:00



















          3














          Bind important messages to I keypress in .muttrc



          In addition to vinc17's correct answer, I would present two lines I've added into my .muttrc



          # Bind to I key in index view:
          macro index I "<search>~Fn" "Search for next important"
          # Bint to I key in pager:
          macro pager I "<exit><search>~Fn<display-message>" "Jump to next important"


          Nota: I've choosed I after reading help in both mode and ensuring previous use of I (uppercase) will prompt Key is not bound. Press '?' for help. in both context.






          share|improve this answer































            0














            To do the same for tagged messages, just use ~T instead of ~F.



            See also this.






            share|improve this answer

























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f150427%2fmove-to-next-flagged-message-in-mutt%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              5














              Just search for the next flagged message: / followed by ~F. Well, the only drawback is that this doesn't work from the pager menu (but this would be a valid RFE).



              And you can write a macro with the value: <search>~Fr



              Note: similarly, I suppose that <next-new> is almost the same as <search>~Nr in the index menu (the only difference I can see is the different error message when there are no new messages).



              Note 2: from the pager, I suppose that a macro <exit><search>~Fr<display-message> would do what you want.






              share|improve this answer


























              • Cool, thanks. I knew I was missing something. I didn't think about using a pattern in a search like that.

                – Aaron Massey
                Aug 15 '14 at 16:46






              • 1





                See also l (and then enter ~F) to limit the view to only the flagged messages.

                – Stéphane Chazelas
                Aug 15 '14 at 20:24








              • 1





                And RTFM: Have a look at man muttrc. Try man -Pless +/flagged muttrc or man -Pcol -b muttrc | sed '/^[A-Z ] {0,5}[^ ]/H;/flagged/{x;p;x;q;};d'

                – F. Hauri
                May 20 '17 at 9:00
















              5














              Just search for the next flagged message: / followed by ~F. Well, the only drawback is that this doesn't work from the pager menu (but this would be a valid RFE).



              And you can write a macro with the value: <search>~Fr



              Note: similarly, I suppose that <next-new> is almost the same as <search>~Nr in the index menu (the only difference I can see is the different error message when there are no new messages).



              Note 2: from the pager, I suppose that a macro <exit><search>~Fr<display-message> would do what you want.






              share|improve this answer


























              • Cool, thanks. I knew I was missing something. I didn't think about using a pattern in a search like that.

                – Aaron Massey
                Aug 15 '14 at 16:46






              • 1





                See also l (and then enter ~F) to limit the view to only the flagged messages.

                – Stéphane Chazelas
                Aug 15 '14 at 20:24








              • 1





                And RTFM: Have a look at man muttrc. Try man -Pless +/flagged muttrc or man -Pcol -b muttrc | sed '/^[A-Z ] {0,5}[^ ]/H;/flagged/{x;p;x;q;};d'

                – F. Hauri
                May 20 '17 at 9:00














              5












              5








              5







              Just search for the next flagged message: / followed by ~F. Well, the only drawback is that this doesn't work from the pager menu (but this would be a valid RFE).



              And you can write a macro with the value: <search>~Fr



              Note: similarly, I suppose that <next-new> is almost the same as <search>~Nr in the index menu (the only difference I can see is the different error message when there are no new messages).



              Note 2: from the pager, I suppose that a macro <exit><search>~Fr<display-message> would do what you want.






              share|improve this answer















              Just search for the next flagged message: / followed by ~F. Well, the only drawback is that this doesn't work from the pager menu (but this would be a valid RFE).



              And you can write a macro with the value: <search>~Fr



              Note: similarly, I suppose that <next-new> is almost the same as <search>~Nr in the index menu (the only difference I can see is the different error message when there are no new messages).



              Note 2: from the pager, I suppose that a macro <exit><search>~Fr<display-message> would do what you want.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Aug 15 '14 at 16:49

























              answered Aug 15 '14 at 16:13









              vinc17vinc17

              9,0741736




              9,0741736













              • Cool, thanks. I knew I was missing something. I didn't think about using a pattern in a search like that.

                – Aaron Massey
                Aug 15 '14 at 16:46






              • 1





                See also l (and then enter ~F) to limit the view to only the flagged messages.

                – Stéphane Chazelas
                Aug 15 '14 at 20:24








              • 1





                And RTFM: Have a look at man muttrc. Try man -Pless +/flagged muttrc or man -Pcol -b muttrc | sed '/^[A-Z ] {0,5}[^ ]/H;/flagged/{x;p;x;q;};d'

                – F. Hauri
                May 20 '17 at 9:00



















              • Cool, thanks. I knew I was missing something. I didn't think about using a pattern in a search like that.

                – Aaron Massey
                Aug 15 '14 at 16:46






              • 1





                See also l (and then enter ~F) to limit the view to only the flagged messages.

                – Stéphane Chazelas
                Aug 15 '14 at 20:24








              • 1





                And RTFM: Have a look at man muttrc. Try man -Pless +/flagged muttrc or man -Pcol -b muttrc | sed '/^[A-Z ] {0,5}[^ ]/H;/flagged/{x;p;x;q;};d'

                – F. Hauri
                May 20 '17 at 9:00

















              Cool, thanks. I knew I was missing something. I didn't think about using a pattern in a search like that.

              – Aaron Massey
              Aug 15 '14 at 16:46





              Cool, thanks. I knew I was missing something. I didn't think about using a pattern in a search like that.

              – Aaron Massey
              Aug 15 '14 at 16:46




              1




              1





              See also l (and then enter ~F) to limit the view to only the flagged messages.

              – Stéphane Chazelas
              Aug 15 '14 at 20:24







              See also l (and then enter ~F) to limit the view to only the flagged messages.

              – Stéphane Chazelas
              Aug 15 '14 at 20:24






              1




              1





              And RTFM: Have a look at man muttrc. Try man -Pless +/flagged muttrc or man -Pcol -b muttrc | sed '/^[A-Z ] {0,5}[^ ]/H;/flagged/{x;p;x;q;};d'

              – F. Hauri
              May 20 '17 at 9:00





              And RTFM: Have a look at man muttrc. Try man -Pless +/flagged muttrc or man -Pcol -b muttrc | sed '/^[A-Z ] {0,5}[^ ]/H;/flagged/{x;p;x;q;};d'

              – F. Hauri
              May 20 '17 at 9:00













              3














              Bind important messages to I keypress in .muttrc



              In addition to vinc17's correct answer, I would present two lines I've added into my .muttrc



              # Bind to I key in index view:
              macro index I "<search>~Fn" "Search for next important"
              # Bint to I key in pager:
              macro pager I "<exit><search>~Fn<display-message>" "Jump to next important"


              Nota: I've choosed I after reading help in both mode and ensuring previous use of I (uppercase) will prompt Key is not bound. Press '?' for help. in both context.






              share|improve this answer




























                3














                Bind important messages to I keypress in .muttrc



                In addition to vinc17's correct answer, I would present two lines I've added into my .muttrc



                # Bind to I key in index view:
                macro index I "<search>~Fn" "Search for next important"
                # Bint to I key in pager:
                macro pager I "<exit><search>~Fn<display-message>" "Jump to next important"


                Nota: I've choosed I after reading help in both mode and ensuring previous use of I (uppercase) will prompt Key is not bound. Press '?' for help. in both context.






                share|improve this answer


























                  3












                  3








                  3







                  Bind important messages to I keypress in .muttrc



                  In addition to vinc17's correct answer, I would present two lines I've added into my .muttrc



                  # Bind to I key in index view:
                  macro index I "<search>~Fn" "Search for next important"
                  # Bint to I key in pager:
                  macro pager I "<exit><search>~Fn<display-message>" "Jump to next important"


                  Nota: I've choosed I after reading help in both mode and ensuring previous use of I (uppercase) will prompt Key is not bound. Press '?' for help. in both context.






                  share|improve this answer













                  Bind important messages to I keypress in .muttrc



                  In addition to vinc17's correct answer, I would present two lines I've added into my .muttrc



                  # Bind to I key in index view:
                  macro index I "<search>~Fn" "Search for next important"
                  # Bint to I key in pager:
                  macro pager I "<exit><search>~Fn<display-message>" "Jump to next important"


                  Nota: I've choosed I after reading help in both mode and ensuring previous use of I (uppercase) will prompt Key is not bound. Press '?' for help. in both context.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 20 '17 at 9:44









                  F. HauriF. Hauri

                  2,7571528




                  2,7571528























                      0














                      To do the same for tagged messages, just use ~T instead of ~F.



                      See also this.






                      share|improve this answer






























                        0














                        To do the same for tagged messages, just use ~T instead of ~F.



                        See also this.






                        share|improve this answer




























                          0












                          0








                          0







                          To do the same for tagged messages, just use ~T instead of ~F.



                          See also this.






                          share|improve this answer















                          To do the same for tagged messages, just use ~T instead of ~F.



                          See also this.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Feb 28 at 21:33

























                          answered Feb 28 at 21:14









                          Gen.StackGen.Stack

                          1447




                          1447






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f150427%2fmove-to-next-flagged-message-in-mutt%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                              is 'sed' thread safe

                              How to make a Squid Proxy server?