-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support moving folders through the quickMove panel #75
Comments
I had a request of providing a (dedicated?) keyboard shortcut for moving folders, but I reckon - since free shortcut keys are very hard to find - we could keep using the same (Shift+M) shortcut provided the mouse / key focus is on the folder tree. In that case, quickMove should give a warning message box, as all current users could assume it was there to move highlighted mail only. If we displayed this message (only if action was triggered by the shortcut, not on mouse drag):
you could just hit Enter and we would prevent some bad accidents happening for those. |
Reusing the SHIFT+M shortcut will be fine for me. The moving by dragging a folder to the move icon does not work for me. |
That's expected, as this issue #75 is about implementing it. :) At the moment this is handled by the same code that handles dropping a folder to a QuickFolders tab, so you should be seeing this warning: I need to add a bunch of special code for having the quickMove button as drop target. However - if you hold down SHIFT and drop to a QuickFolders tab, moving folders already works! |
That works. As I move most folders to the same folder, that is a big improvement to the situation before. |
It also supports moving multiple selected folders in a single operation - that's something that you don't get in the tree (and it's kind of dangerous). The less you use the tree, the least painful your life will become. Mind got a whole lot better after deciding not to use the tree for 2 things:
This can all be done with QuickFolder Tabs and the quickMove / quickJump functions + navigation buttons shown on the current folder bar / shortcuts. |
In my tests moving multiple folders on an Imap account proves somewhat unreliable. This may be due to the fact that I break up the moving into multiple calls to nsIMsgCopyService.CopyFolders(..) partly because some folders can only be copied and this is something I find out per folder before that call. Thinking of moving them together into one call and hope for the best? |
Here is an improved version, which supports moving multiple folders via quickMove - there were complications of you highlight child folders which may lead to an incomplete moving of a selection like this: In the example, QuickFolders would attempt to move "test3" (A childfolder of "atn") after its parent was moved and so lead to an error - potentially then also not moving the following folders "filtaquilla" and "quickfilters". This version will remove all "child folders" from the array of moved folders and so run much more stable: There is also a back-ported version for Thunderbird 68 users: Note: when you move the four folders as of the example the confirmation message will ask about the 3 "legal" folders but it will move everything as expected. |
Implemented in Releases 5.2 and 4.19.1 (published on 22/01/2021) |
I can confirm it works in version 5.2. Thank you. |
At the moment QuickFolders supports moving folders via QuickFolders tabs, by holding the SHIFT key. If would be very helpful if folders could also be dragged onto the quickMove button so that they can be moved to any desired target location:
The text was updated successfully, but these errors were encountered: