mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 02:17:35 +03:00
project panel: Allow selecting multiple entries & add support for multiselect actions (#12363)
Fixes #4983 TODO: - [x] Improve release note. - [x] Tests Release Notes: - Project panel now supports selecting multiple entries via cmd-click and shift-click/shift-up/shift-down. - Added support for handling multiple selected project panel entries to Cut, Copy, Trash and Delete actions.
This commit is contained in:
parent
1cf3496fda
commit
016a1444a7
@ -585,7 +585,10 @@
|
|||||||
"cmd-backspace": ["project_panel::Delete", { "skip_prompt": false }],
|
"cmd-backspace": ["project_panel::Delete", { "skip_prompt": false }],
|
||||||
"cmd-delete": ["project_panel::Delete", { "skip_prompt": false }],
|
"cmd-delete": ["project_panel::Delete", { "skip_prompt": false }],
|
||||||
"alt-cmd-r": "project_panel::RevealInFinder",
|
"alt-cmd-r": "project_panel::RevealInFinder",
|
||||||
"alt-shift-f": "project_panel::NewSearchInDirectory"
|
"alt-shift-f": "project_panel::NewSearchInDirectory",
|
||||||
|
"shift-down": "menu::SelectNext",
|
||||||
|
"shift-up": "menu::SelectPrev",
|
||||||
|
"escape": "menu::Cancel"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -5113,6 +5113,7 @@ pub struct ProjectEntryId(usize);
|
|||||||
|
|
||||||
impl ProjectEntryId {
|
impl ProjectEntryId {
|
||||||
pub const MAX: Self = Self(usize::MAX);
|
pub const MAX: Self = Self(usize::MAX);
|
||||||
|
pub const MIN: Self = Self(usize::MIN);
|
||||||
|
|
||||||
pub fn new(counter: &AtomicUsize) -> Self {
|
pub fn new(counter: &AtomicUsize) -> Self {
|
||||||
Self(counter.fetch_add(1, SeqCst))
|
Self(counter.fetch_add(1, SeqCst))
|
||||||
|
Loading…
Reference in New Issue
Block a user