bepasty-server icon indicating copy to clipboard operation
bepasty-server copied to clipboard

easy mass deletion

Open ThomasWaldmann opened this issue 6 years ago • 3 comments

currently it is not easy to delete many, selected items:

  • in the list view, when clicking on delete button, list afterwards jumps upward to the start and you need to scroll down again and find the place again where you were deleting stuff

  • when using middle mouse button to open (many) item views (to avoid above issue), you need to click on "delete" in the item view and confirm again in the "are you sure?" dialogue box

this should be easier, to make it less tedious for the paste admin to clean up.

ThomasWaldmann avatar Sep 18 '18 13:09 ThomasWaldmann

The usual, modern way for handling that would be something like this:

Add a "Select files"-button (or a "Modify files"-button) to a fixed place in the view of a list, so that it can be easily accessed even when scrolling down far. Activating it would allow to (de)select multiple files, and show both "Delete"-, and "(Un)lock"-buttons near the "Select files"-button.

For selecting the files, either add a checkbox (that is large enough for touchscreens) next to every file-entry while "Select files" is on; or make the whole entry (except for the space occupied by other buttons) clickable/tappable to (de)select it.

The "Delete"-, and "(Un)lock"-buttons would then ask for confirmation, before applying the change; or alternatively, allow one to "undo" it (actually just a cancellable countdown until the chosen action happens) for a short time (usually about 5-10 seconds) after clicking/tapping it.

The "Delete"-, and "(Un)lock"-buttons next to every entry could then be removed while "Select files" is off (or even when on), to keep the UI simple, and prevent one from accidentally deleting files while scrolling through the list on a (smartphone-)touchscreen.


One could also add more options to such a selection-system, without cluttering the UI while it is not needed; examples:

MoonlightWave-12 avatar Nov 27 '23 16:11 MoonlightWave-12

Yeah, guess this needs somebody who implements that. :-)

ThomasWaldmann avatar Nov 27 '23 17:11 ThomasWaldmann

Yeah, guess this needs somebody who implements that. :-)

Yup. :)

Other ideas:

  • An option to delete all the files mentioned in a Bepasty-list along with the list. Maybe as a button, or a checkbox, in the confirmation-dialog?

  • A simpler version of what i mentioned before:

  1. Always show checkboxes next to entries in a listing when logged in as a user who can delete or (un)lock files.
  2. Add "delete"-, "lock"-, and "unlock"-buttons at the top, next to the other buttons, which delete or (un)lock all selected files. Before deleting files, it should ask for confirmation.

MoonlightWave-12 avatar Dec 08 '23 12:12 MoonlightWave-12