Genio icon indicating copy to clipboard operation
Genio copied to clipboard

Accept dropped folders in Projects pane

Open humdingerb opened this issue 1 year ago • 3 comments

It would be nice not to have to use the file dialog of the "Open project..." menu if I already have the Tracker window of the project open. A quick drag'n'drop of the folder into the projects pane could add the project.

(Not for v2.0, of course. :)

humdingerb avatar Dec 14 '23 12:12 humdingerb

Needs to be thought through. One could expect that dropping a folder into that area would copy the folder inside the project. Maybe there should be a special area where dropping a folder would open a project

jackburton79 avatar Dec 19 '23 11:12 jackburton79

I don't think people will be confused about this. It seems intuitive that instead of navigating to and selecting a folder in Projects's "Open project...", you drop a folder and it gets added as new project. Files aren't accepted, and folders always end up as new project, never added as subfolder of an existing one. Users will get it. :) Plus, when the Projects tab is empty, there could be a text:

Drop folders to add as new projects.

humdingerb avatar Dec 19 '23 18:12 humdingerb

Moving to next milestone

jackburton79 avatar May 31 '24 07:05 jackburton79

It's done in main branch. I haven't add "drop folders to add a new project" yet, though, as it will require some more work

jackburton79 avatar Sep 13 '24 15:09 jackburton79

Works! Two things: Should the user be able to drop several folders at once that will each get added as new projects? I think so. And should the newly dropped project automatically get expanded and made active? I think that's what you normally want. (In case of several dropped new projects, activate the last (or first, doesn't matter...).

humdingerb avatar Sep 13 '24 15:09 humdingerb

Yeah I think it can be done. If the user drops file and folders at the same time, what would you expect it to do?

jackburton79 avatar Sep 13 '24 16:09 jackburton79

Ignore files. The Project pane only accepts folders which will become new projects.

humdingerb avatar Sep 13 '24 16:09 humdingerb

That could work, I guess. Needs some rework of the drop mechanism, though : currently it's the window who handles the drop. In fact, you can drop file/folders on any zone in the window and the result is the same.

jackburton79 avatar Sep 15 '24 06:09 jackburton79

Works nicely! I suppose you'll make it more pretty soon. :)

Myself, I've never managed to switch between views in a layout after it was created. Maybe by using BCardLayout? I never looked into that yet... Anyway, it would be nice if an empty Projects pane showed an empty BView with the text centered instead of the Projects/Sourcecontrol tabview. Kinda like the Filer dropzone:

filer_drop_zone

humdingerb avatar Sep 16 '24 12:09 humdingerb

Yes, that was the original idea. I wanted something similar for the outline (when in "creating outline" phase) but never managed to get it right. As soon as I add a cardlayout the layout breaks in a weird way

jackburton79 avatar Sep 16 '24 12:09 jackburton79

Good to know I'm not alone struggling with this...:)

humdingerb avatar Sep 16 '24 12:09 humdingerb