ZIm/crates/project_panel/src
Finn Evers 657c8b1084
project_panel: Improve behavior for cut-pasting entries (#31931)
Previously, we would move entries each time they were pasted. Thus, if
you were to cut some files and pasted them in folder `a` and then `b`,
they would only occur in folder `b` and not in folder `a`. This is
unintuitive - e.g. the same does not apply to text and does not happen
in other editors.

This PR improves this behavior - after the first paste of a cut
clipboard, we change the clipboard to a copy clipboard, ensuring that
for all folloing pastes, the entries are not moved again. In the above
example, the files would then also be found in folder `a`. This is also
reflected in the added test.

Release Notes:

- Ensured that cut project panel entries are cut-pasted only on the
first use, and copy-pasted on all subsequent pastes.
2025-06-03 03:51:42 -04:00
..
project_panel.rs project_panel: Improve behavior for cut-pasting entries (#31931) 2025-06-03 03:51:42 -04:00
project_panel_settings.rs VSCode Settings import (#29018) 2025-04-23 20:54:09 +00:00
project_panel_tests.rs project_panel: Improve behavior for cut-pasting entries (#31931) 2025-06-03 03:51:42 -04:00
utils.rs Add Project Panel navigation actions in netrw mode (#20941) 2024-12-05 14:07:13 +01:00