-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multi cell selection in notebook #114156
Comments
All of these options assume the user is holding down shift/ctrl to select multiple cells and also adds an item to the status bar for total selection count. Option 1This option simply re-uses the current selection into the other cells. notebook-multiselect-option1.movOption 2This option also re-uses the current selection but adds a ✔️ to indicate a cell has been selected in multi-select notebook-multiselect-option2.movOption 3This options adds a background color to indicate a cell has been selected in multi-select notebook-multiselect-option3.movOption 4This options adds a background color for multi-selected cells but only shows the border on the active cell. This matches Jupyter's behavior. notebook-multiselect-option4.mov |
Open questions:
|
We will sync the cell selections info to the extension host and the extension is fully responsible for execution, the extension can control the behavior: whether all selected cells should be executed, and in visual sequence or selection sequence. |
Great work @misolori! Thanks for coming up with all these options. Option 4 would align with AzNb's plans for mutliselect that follows the fluent ui and the two blue lines clarify current location to user among the selected and would not require an additional visual cue/element. Option 4 would work great for smart select requirements |
@misolori Additional question, where are the actions a user can take with the selected cells surfaced? |
@claudiaregio they'd still appear on hover and whatever actions are taken there would apply for the selected cells. We'd only want to show actions that can be performed in bulk. |
@misolori would the cell toolbar still appear on hover for any non-selected cells? Or would that interaction be blocked unless a user escapes from the multiselected state? |
@claudiaregio my initial thought was to only show actions for the items that are selected (so it wouldn't show up non-selected cells), but maybe we need to validate that with customer feedback and expectations. |
+1 on Option 4. Makes it clear what's selected and what's the current cell (in case I want to hit shift+enter) |
We now support multi-select in notebooks! This follows the pattern from our list widget, which you can also see in the explorer/any tree list, which supports shift + click and cmd/ctrl + click: We also added a new color token ( |
The notebook is a list of cells so we may want to support multiple selection, similar to how it works in other list views in the workbench.
The text was updated successfully, but these errors were encountered: