File view: no multi-select, so batch drag / delete is not possible

Abierto
#3,558 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go
Área
frontend

Línea de trabajo

Start with CONTRIBUTING.md, which asks that larger changes be discussed first, and with the File Preview keybindings in the docs. The issue places the work in the file view model, which tracks a single current-file cursor, and in its drag and delete handlers. Related issues #965 and #2044 overlap in scope. Done means maintainers agree on a first step, such as Cmd/Ctrl+click and Shift+click, and the agreed behavior is in place.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

File view: no multi-select, so batch drag / delete is not possible

Summary

The file view component only supports a single "current" file at a time. There is no way to
select more than one file, so any batch operation — dragging a group of files into another
directory, deleting a set of files, opening several files at once — has to be repeated one
file at a time. This is the single biggest friction point for me in an otherwise excellent
file workflow.

This sits in the same area as #965 (file management generally — rename / delete / cut /
copy / paste) and overlaps partly with #2044 (multi-select during upload). It is narrower
than both: this is only about multi-selection inside the file view, which is the
prerequisite that makes any of those actions usable in bulk rather than one file at a time.
Concretely, #2044 is about picking several files to send somewhere; this is about being able to
select several files and then act on them (move, delete, rename, open).

Wave Version

0.14.5

OS

macOS 26.2 (arm64)

Steps to reproduce

  1. Open a directory that contains more than a couple of files in the file view.
  2. Try to build a multi-file selection using any of the usual gestures:
    • Cmd-click a second file
    • Shift-click a range of files
    • Rubber-band / marquee drag across several rows
    • Shift+Up / Shift+Down from the current file
  3. In every case the selection collapses back down to a single file. There is no visible
    indication that a multi-select is even possible.

Expected behavior

Standard file-manager selection semantics:

  • Cmd/Ctrl+click — add or remove a file from the selection
  • Shift+click — select a contiguous range
  • Shift+Up / Shift+Down — extend the selection with the keyboard
  • Rubber-band / marquee selection
  • Ctrl/Alt+Up / Alt+Down (or Shift+Arrow equivalents) — grow / shrink the selection

And with a multi-selection in place, batch actions on the whole set:

  • Drag the selection to move or copy all selected files at once
  • Delete (move to trash) all selected files in a single action
  • Open all selected files, e.g. across tabs or split views

Actual behavior

Only one file can be current at a time. Per the File Preview keybindings in the docs, Up/Down
merely "change file selection up/down", and no modifier-based multi-select is documented or
implemented. As far as I can tell there is also no file-side delete shortcut at all, which
makes bulk cleanup especially tedious.

Current workarounds

  • Move / rename / delete files from a terminal block with mv, cp, trash, rm, etc.,
    then refresh the view with Alt+Shift+R.

These work fine, but they mean the file view itself can't be used for what a file view is
normally for, so every time I come back from the shell the multi-select is still missing.

Anything else?

Happy to discuss scope — my instinct is that this is a contained change: keep a selected-set
next to the existing current-file cursor in the file view model, then add click handling,
keyboard range extension, and route the existing drag / delete handlers to the set instead of
the single item. Let me know if you'd prefer a smaller first step (for example Cmd/Ctrl+click
plus Shift+click only, no marquee drag).

Per CONTRIBUTING.md I understand larger changes should be discussed in Discord first — happy
to move this there if that's the better venue.

Lenguaje dominante
Go
Estrellas
22.7k
Forks
1.2k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de wavetermdev/waveterm

Todos los issues de wavetermdev/waveterm

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.