or really, any commands in the grep buffer.
I'm trying to grab the most recent search results and paste them into a buffer.
activate_search() works, but grep_command_menu and select_all do not.
select_all selects all text in the edit buffer, not in search results.
So .... how to correctly call grep_command_menu and copy all the text from the search results?
_command search_to_buffer() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_EDITORCTL)
{
_macro('R',1);
activate_search();
grep_command_menu("a")
select_all();
workspace_new_file('0','','C:\src\',"Plain Text",'','','');
paste();
sort_buffer('AIU');
execute("delete-search/^File /u",'a');
}