Skip to content

allow for modifier keys to be used when selecting changed files #2439

Closed

Description

@Secticide

Description

When using any git GUI (especially on projects where many changes are made not by the user - such as Unity in my case) I find there are alot of file changes, it would be useful to quick select / commit larger groups of files by using the the modifier keys 'ctrl' (or 'command') & 'shift'.

The expected behaviour would of course be that using 'ctrl' would add the clicked file to the current selection (or remove it if it's already selected) while 'shift' would add all files from the previously selected file to the clicked file to the current selection.

Version

GitHub Desktop version: 0.7.3
OS version: macOS Sierra 10.12.6

Activity

  1. added
    more-info-needed
    on Aug 10, 2017
  2. joshaber commented on Aug 10, 2017

    @joshaber
    Contributor

    Thanks for opening this up!

    What would shift or command selecting files do? Toggle the checkbox, show multiple diffs in the diff view, something else?

  3. Secticide commented on Aug 10, 2017

    @Secticide
    Author

    Thanks for the fast response!

    I would imagine it to work similarly to Google's Inbox when selecting emails. If you ctrl / command / shift clicked the tick-box; it would tick / untick the box, if you clicked generally on the selectable area, it would highlight it.

    The main reason I raised the issue was that if you had 100 files that had been changed, and I only had a single file you wanted to commit, you would have to either:

    • Make a copy of the file, discard all, copy the file back, commit,
    • Discard, make the change again, commit,
    • Right-Click discard all the 99 files you didn't want to commit, commit.

    For speed of the app (depending on size of files etc), I would suggest only showing a single diff at any point - I've found with SourceTree that displaying multiple diffs just slows the process down further.

  4. joshaber commented on Aug 10, 2017

    @joshaber
    Contributor

    Thanks for expanding on that!

    The main reason I raised the issue was that if you had 100 files that had been changed, and I only had a single file you wanted to commit, you would have to either:

    You should be able to click the checkbox in the Changes header to uncheck all the files:

    screen shot 2017-08-10 at 10 52 41 am

    And then check the one file you do want to commit. Does that work for you?

  5. Secticide commented on Aug 10, 2017

    @Secticide
    Author

    Yeah, that works for me perfectly.

    I guess it's more of a workflow thing; if you're faced with a large number of files that have been added / changed / removed and you're not sure where the files are that you have changed, it's sometimes easier to discard changed to / remove the files that you haven't changed to give yourself a better view of the ones that you have.

    Am I making sense here?

  6. joshaber commented on Aug 10, 2017

    @joshaber
    Contributor

    Yeah, I can see how discarding changes if you're dealing with a large list could make it easier to find the change you're looking for. But I'm not sure if/how that relates to command or shift selecting files... what am I missing?

  7. Secticide commented on Aug 10, 2017

    @Secticide
    Author

    Thanks again for the responses,

    The command / shift selection capabilities would allow for the quick selection of files. Once the files are selected, the right-click menu would allow for quick access to discarding large number of files. Also, if you wanted to commit a large number of files; rather than individually clicking the tick-boxes on each of the files that you wish to commit, you could simply click-shift-click (the tick boxes) to have them 'ticked' and ready to commit.

    Does that make things clearer?

  8. joshaber commented on Aug 10, 2017

    @joshaber
    Contributor

    Ahhh, I think I get it now! Thanks for your patience.

    So it sounds like this is partly captured by #2248, but larger in scope in that it also includes checking/unchecking changes.

  9. removed
    more-info-needed
    on Aug 10, 2017
  10. Secticide commented on Aug 10, 2017

    @Secticide
    Author

    No problem, we got there in the end. This has definitely made me realise that I need to explain myself better in my next issue that I open.

    Thanks!

  11. changed the title [-]Feature Request - Allow for modifier keys to be used when selecting changed files[/-] [+]allow for modifier keys to be used when selecting changed files[/+] on Aug 14, 2017
  12. deleted a comment from on Aug 17, 2017
  13. shiftkey commented on Jun 16, 2018

    @shiftkey
    Member

    The expected behaviour would of course be that using 'ctrl' would add the clicked file to the current selection (or remove it if it's already selected) while 'shift' would add all files from the previously selected file to the clicked file to the current selection.

    I believe this has been resolved with #4188 which was released in version 1.2.0, but I'll clarify that on macOS it's ⌘ and Shift, and on Windows its Control and Shift.

  14. locked as resolved and limited conversation to collaborators on Aug 15, 2018
  15. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions