Skip to content

Multi Select rows for doing bulk operation like delete,copy and rename #22

Open
@miladhashemi

Description

@miladhashemi

Is it possible to add multi select rows capability in file manager and do bulk operation for delete,copy,move?

Scenario

I select two rows(ctrl+leftClick) and click on delete button.

Expected Result

System returns an array of two pathes. finally delete them in an iterate manner.

Activity

andersevenrud

andersevenrud commented on Jun 27, 2020

@andersevenrud
Member

This will require updates in two areas:

So it should be fairly simple to implement this

linked a pull request that will close this issueMultiselect support (#22) #23on Jun 27, 2020
andersevenrud

andersevenrud commented on Jun 27, 2020

@andersevenrud
Member

I've started on implementing this. Here's a sneak preview:

OS_js

Ref:

miladhashemi

miladhashemi commented on Jun 28, 2020

@miladhashemi
Author

Actually I think beside gui, the VFS and Adapter needs to be changed too.
One part of problem is in osjs/gui that must select multiple rows, it seem you handled it.
Next step we need Adapter supports operations like delete on it.
Adapter operates on array of vfs.oject instead of single vfs.object.

andersevenrud

andersevenrud commented on Jun 28, 2020

@andersevenrud
Member

The VFS does not need any changes The file manager can just use Promise.all to handle bulk operations.

added a commit that references this issue on Jul 2, 2020
andersevenrud

andersevenrud commented on Jul 2, 2020

@andersevenrud
Member

I believe I've made all of the appropriate changes to the filemanager application, and now need to finish up the ListView component changes and I can put out a beta on npm for testing :)

miladhashemi

miladhashemi commented on Jul 4, 2020

@miladhashemi
Author

Oh, Thank U Andres. How can I test beta version? Is it on npm rep at moment?

andersevenrud

andersevenrud commented on Jul 6, 2020

@andersevenrud
Member

I haven't published it onto npm yet as I'm not 100% done.

You can try this out by checking out the code locally.

miladhashemi

miladhashemi commented on Oct 4, 2020

@miladhashemi
Author

I tested multiselect option,but didnt works.
Even readdir throws bellow warning message:

TypeError: files.map is not a function

Also throws bellow warning as i click on edit menu:

TypeError: items.some is not a function

for readfile throws bellow error:

Uncaught TypeError: data.forEach is not a function

7 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @andersevenrud@miladhashemi@ajmeese7@hello-smile6

    Issue actions

      Multi Select rows for doing bulk operation like delete,copy and rename · Issue #22 · os-js/osjs-filemanager-application