sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Add "Save Selected Tabs" menu item in files pane

Open kortschak opened this issue 1 year ago • 5 comments

Problem description

When making a large number of search replace changes over a project it would be helpful to be able to save all the changed files. When there are files open that have been edited but the user does not yet wish the save, the "Save All" menu option is not a solution.

Preferred solution

Add a "Save Selected Tabs" option to the "Open Files" pane contextual menu.

Alternatives

A plugin has been suggested, otherwise it's just a matter of saving each file individually.

Additional Information

No response

kortschak avatar Aug 23 '22 08:08 kortschak

For "Save Selected Tabs" to work, one would have to first select all the affected tabs. It doesn't sound like that would add that much to convenience.

rchl avatar Aug 23 '22 08:08 rchl

Shift-select is a thing; you can select the top file and shift-select the bottom file and you have now selected all the intervening files. This is a significant time saver.

kortschak avatar Aug 23 '22 09:08 kortschak

Unless the files that were modified were already open and are scattered around the file list. Then you still have to look for them and hope that those are the ones that were actually modified by search&replace and not for a different reason.

Still, the feature sounds useful so I'm not against it. But it's not fixing the search&replace problem specifically.

rchl avatar Aug 23 '22 09:08 rchl

It would have saved me ~half an hour today.

kortschak avatar Aug 23 '22 09:08 kortschak

As there is a command "Close Selected Tabs" already, a discussion of usefullness about selecting tabs to perform an operation is more or less obsolete.

It would be just another command which can be used if desired, depending on personal preferences and workflows.

deathaxe avatar Aug 23 '22 09:08 deathaxe