# "Add to archive" (Shift-F1)

When the user presses Shift-F1 on a file (or on a group of selected files) then FAR carries out the following actions:

### Regular panel

- goes though the list of plugins, calling in turn OpenFilePlugin(NULL,NULL,0) until one of the plugins returns a value that differs from `INVALID_HANDLE_VALUE` or -2;
- forms a temporary list of selected files and passes it to the plugin, by calling PutFiles(hPlugin,PanelItems,ItemsCount,0,0);
- if the plugin processed the given files successfully (PutFiles returned 1 or 2) then FAR clears the selection from those files, tries to renew file descriptions (if the plugin sets OpenPluginInfo.DescrFilesNumber > 0 in a call to the GetOpenPluginInfo function), destroys the temporary file list, redraws the panel and positions as well as the cursor on the file created/updated by the plugin (if PutFiles returned 1).

File position "computation" algorithm in this case is based on the assumption that the file creation date is the most recent. If there are newer files in the folder then positioning will not work correctly.

### Plugin panel

Not processed by FAR.