sublime_merge icon indicating copy to clipboard operation
sublime_merge copied to clipboard

Add ability to stage multiple files at once.

Open safield opened this issue 6 years ago • 14 comments

Other git gui I have used, offer the ability to shift+click or ctrl+click to highlight multiple files, and then stage them all at once.

In addition, batch selecting could be applied to different operation. I could select a batch of files and discard, etc.

Sublime Merge lacks this ability currently, and I think it is huge hindrance to usability.

safield avatar Feb 11 '19 19:02 safield

Wouldn't that involve one more click than just clicking stage for each file?

wbond avatar Mar 08 '19 17:03 wbond

No, think a normal file list in OS file explorer.

If I wanted to stage twenty contiguous files, the action would be as follows...

hold shift left click top file left click bottom file click stage

That is 4 actions, whereas in sublime that would be N actions, where N is the file count.

It would be the same amount of actions when ctrl adding files, then staging. But ctrl clicking still has benefit.

The most substantial benefit is that shift and ctrl clicking to add files to selection is an ubiquitous action in every file manager I have ever used (on Windows and Linux), so I feel like it is an expected feature, even outside the context of a file manager.

PS. Shift clicking because exponentially more powerful when you can parse the changed files list by regex. eg supply *.xml to show only xml files, then shift click to stage all of the xml files.

safield avatar Mar 08 '19 18:03 safield

Thanks for adding addition context and ideas to your request!

wbond avatar Mar 08 '19 18:03 wbond

I updated the title and initial post to reflect the fact that this feature is not specific to just staging. I had to do a bunch of discards today, and I had to open up GitExtensions to get it done.

safield avatar Mar 14 '19 20:03 safield

I just had to stage some spine assets with thousands of sprites. My mouse broke. Had to drop down to command line just to stage files.

safield avatar Aug 16 '19 16:08 safield

Here's an example of the problem I faced. I would be so easy to enable a multiple selection in the list. It's no-brainer in my opinion.

Screen_Shot_2020-10-24_at_11 20 49_AM

genericptr avatar Oct 26 '20 14:10 genericptr

+1 for this. I just deleted a folder with quite a lot of files in it and had to go through and stage the deletion of each file individually. What could have been two clicks ended up being about 50.

dabinat avatar Apr 22 '21 19:04 dabinat

I'd like to see multi-select of files with a context menu of open in sublime. My workflow involves a review repo (e.g. gitlab, gerrit) and some changes have been reviewed the files might need further changes. Instead of doing git show --name-only --pretty="" | xargs subl' I'd like to be able to this in smerge.

spaskalev avatar May 31 '21 07:05 spaskalev

+1 on this feature for me. The fact that I can only stage individual files or all files is a real annoyance to me when I frequently need to generate multiple commits containing groups of files all generated by a single build. Staging each file individually isn't workable for me. As things stand, I'm having to move back to GitHub Desktop to do this but it would be fantastic if I could finally do all my git work in a single tool!

dawilson9 avatar Jun 14 '21 18:06 dawilson9

+1 for me as well. This is honestly the only feature making me hesitate to jump into using this tool full time.

jasonericson avatar Oct 08 '21 17:10 jasonericson

2 years have passed, and I still want this function so bad, is there any progress?

CloudAktsk avatar Oct 13 '21 06:10 CloudAktsk

I'll add my +1 to this.

CaptainCrowbar avatar Nov 23 '21 04:11 CaptainCrowbar

The app is really great but this missing feature really stops me to migrate from my current git client. We generate lots of files (& commit them on purpose), being unable to select them with "classic" expected native cmd+click / shift+click selection is disappointing.

MathieuLorber avatar May 11 '22 21:05 MathieuLorber

Same. Hard to fully switch.. Would pay for a license if this was implemented <3

kg-currenxie avatar Oct 24 '22 07:10 kg-currenxie

Hi all,

Thanks for sharing your feedback!

We've added multi-select to the files tab in Sublime Merge Build 2080 (development). This allows you to stage / unstage / discard multiple files at once.

Kind regards, - Dylan from Sublime HQ

dpjohnst avatar Dec 05 '22 23:12 dpjohnst

Hi again,

This has now been added to Sublime Merge Build 2083 (stable).

Cheers, - Dylan from Sublime HQ

dpjohnst avatar Feb 06 '23 23:02 dpjohnst