How to move multiple messages in mutt - email

Before all of my messages were in one maildir. Now I want move all arch-general mail to another one.
From here, I see:
"move" as we know it from other places is "save" in mutt.
"save" as we know it from other places is "copy" in mutt.
~e EXPR message which contains EXPR in the ``Sender'' field
so I use pattern in index
'T' and '~e arch-general' then 's'
but just one message moved.
How can I move all pattterned messages to another dir?

;s
; tag-prefix apply next function to tagged messages

Related

autohotkey: unable to send numbers as integers (sends like a string)

6::
send 6
return
also tried
$6::send 6 return
$3::send 3 return
$5::send 3 return
Nor did blind or text or replacing send with any of the other sendmode names on the send doc page achieve the effect, which is, for a game to recognize these sends as numbers. These work while typing in chatbox ingame, i.e. "hello14674355", but not when selecting from a menu that use integers, i.e. "press a number from 1-9 to activate an option in a menu". I need ideas/help on what else i can try or do to get this to work. I have a situation where some numbered keys are hotkeys on certain condition (when im not typing for ex), this requires I manually setup the condition where they do send their own value. I need a fix for that. Is there way to retain their normal function as default, but check it only after the hotkey behaviour conditions? When they r in hitkey mode i need them to not send their own value but the hotkey.
Can I get ~3:: if(){... to work infront of 3's native function? then i can return early maybe so it doesnt proc the native 3 sending?

How can I confirm individual changes in a project-wide find and replace?

When I'm in project search (Shift + CMD + F) I can search the whole project for a specific word or expression. I can also enter a word I would like to replace it with.
If I click on one of the search results, it shows me the current version and the replacement version side by side. However, I can't find a way to confirm the replacement instance by instance! I only see a button to replace ALL instances, which is usually not what I want to do.
The reason is that certain words might be used in different context throughout the project, so usually not all search results shall be replaced.
How can I confirm the replacement instance by instance?
The replace one is on the each item that showing when mouse moved on each item.
As an alternative approach, you can press CMD + D repeatedly to select successive instances of a match, and CMD + SHIFT + D to skip any instance you do not want to include, and in this way case by case include each match in your find \ replace.
Also useful is CMD + U to undo the last selection action, in case you screw up during this process so you don't need to start over. Note, your shortcuts may be vary per operating system, but the procedure is the same.

How to detect if a user writes a specific sentence?

So, I want to detect if a user writes a specific sentence on the keyboard, and if so afterwards perform a function.
For example, if the user writes:
if user types /hello
script activates and for example puts out
Send, Hello. How are you today?
According to the documentation for Hotstrings, your example would look like this:
::if user types /hello::Send, Hello. How are you today?
Although, this requires typing an additional "ending character" such as a space or tab to trigger the transformation.
To immediately replace the text after entering the last character you add the * option:
:*:if user types /hello::Send, Hello. How are you today?

AutoHotkey send without replacement

I'm using AutoHotkey. Is there a way of using "Send" without getting the previously wirtten Hotstring replaced?
So if I want to use the Hotkey System it always overrides the System with the text I set after "Send". But how can I achive that it is just appending my Send text to the hotstring?
Send, Hotstring Rest of Things You Want to Say
I think you may be mistaken in what you're trying to say or how you're using Send, as it doesn't replace previously written hotstrings. If you post an example of what you're saying, it will be easier to help. Also, what do you mean when you say "Hotkey System"?
Helpful info from the online documentation, Hotkeys & Hotstrings.
EDIT (per your comment below):
I understand what you're saying now. This is the default way that hotstrings work and has nothing to do with using the Send command. If you want to keep the activating text in a hotstring, you need to use the B0 option. Something like this:
:*B0:System::.out.println()
Note that the * makes it so you don't need to type a period after "system". If you want it to work that way instead, remove the asterisk.

mutt how to move messages to folder containing a literal space

I am trying to use a gmail account in Mutt 1.5.3 on OS X, installed through brew. Using s and navigating to 'All Mail', I can manually save files from my inbox to the all mail folder, but the process is annoyingly manual. I have tried to define a macro to help make this easier.
macro index,pager \CA '<save-message>=[GMAIL]/All\ Mail<enter>'
This macro works in the sense that pressing ctrl-A causes it to fire, and it does ask me if I want to move my messages ... unfortunately it gets the destination wrong. it asks if I want to move the message to 'All' or 'All\Mail'. Somehow the space is completely ignored. I know that the destination folder proposed by the macro is indeed not 'All Mail' (rather than being a bug in the modeline) because mutt prompts me on whether to create the folder or not.
Credit: https://stackoverflow.com/a/14779416/931154
You can escape a literal space using %20. Also, in order to back up your message to your online All Mail folder, the following macro should be used.
macro index,pager \CA "<save-message>=[Gmail]/All%20Mail<enter>"