sourcegit icon indicating copy to clipboard operation
sourcegit copied to clipboard

[Feature] In File System Tree mode double click include the entire folder

Open ennerperez opened this issue 6 months ago • 4 comments

When large number of file in a folder it is easier and faster to just include the folder by double-clicking instead of the expanding.

  • Option 1: remove the IsFolder condition at OnRowDoubleTapped
  • Option 2: Include a setting to control the behavior (Expand Folder / Stage Folder)

Image

ennerperez avatar Jul 01 '25 16:07 ennerperez

In SourceGit, double-clicking a folder node in file-system-like TreeView will always expand/collapse it. Both in branch/tag/changes/revision files etc.

And there're already 3 ways to stage/unstage changes.

  • Clicking the STAGE (only selected) or STATE ALL button in toolbar.
  • Pressing Enter will stage selected changes.
  • Pressing Space will also stage selected changes.

love-linger avatar Jul 02 '25 02:07 love-linger

I'd also like this feature.

Also,drag & drop between the staged/unstaged panes to stage/unstage files or folders would be nice.

andgeno avatar Jul 02 '25 04:07 andgeno

If users are used to double-clicking to expand tree nodes (for example, in the FILES view or elsewhere), it is easy to accidentally double-clicking in the UNSTAGED/STAGED view. Therefore, SourceGit has set restrictions here to prevent such situations, and provide consistent operational behavior.

love-linger avatar Jul 02 '25 05:07 love-linger

Fair point but I would say you can make this point for either group of users. Might make sense to just give an option users can opt-in while the default should be as it is today.

andgeno avatar Jul 02 '25 06:07 andgeno