Archive: Allow selecting multiple files #327
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's new
Addresses #254
As discussed in that issue, this implements multiple file/folder selection in the Archive file browser. With some personal design choices for the list selection indicators that can be changed if needed.
Cut
,Copy
,Paste
,Delete
)[+]
(for files or entire folders), or a number[2]
to show the amount of selected files in a folder.Interface > File Browser > Selection Indicator
was added to change which character is used in the selected file indicator:+
,*
or-
. (These can also be changed or more added.)[3]
indicator, the folder itself can be selected and all the files inside it are deselected and the folder shows a[+]
.select mode
is also possible, but it works on one at a time. Not all the selected files.Keybinds for the "select mode" are as follows:
This set of keybinds allows for selecting files and folders the same way and the ability to enter folders for its contents. as mentioned in the issue comments.
Couple of other things I'd thought of doing but haven't yet (TODO):
Select
"badge" text at the top of the status bar also show the amount of selected files, like thisSelect (4)
.Add a scrollable list to the delete screen when theres more than one file being deleted. Gives you a second to see the files about to be deleted rather than "Delete 5 files?".Screenshots
Delete files in multiple folders
Copy folder and file
Copy files and delete
Rename selected file then delete
Nested path error dialog
For the reviewer