jupyterlab-celltags icon indicating copy to clipboard operation
jupyterlab-celltags copied to clipboard

Looking for input on multiple selection in celltags 1.0

Open markellekelly opened this issue 5 years ago • 2 comments

Hi all, The new version of celltags, currently in progress, will have an updated UI in which clicking on a tag automatically selects the corresponding cells within the notebook (currently, an additional button must be pressed to perform this action). Here is an idea of what this might look like: image I am hoping to get some insight on what users would expect/prefer to happen if, with a tag already selected ("assert"), they clicked another tag (e.g., bootstrap). The main 3 possibilities I am considering are:

  1. Completely deselects the first tag and only considers the newly clicked tag
  2. Selects in the document the union of cells (i.e., any cell tagged with either of the tags.)
  3. Selects in the document the intersection of cells (any cell tagged with both tags). Thanks for your input! @ellisonbg

markellekelly avatar May 02 '19 01:05 markellekelly

I would say that for a left-click it should be option 1. However pressing a modifier should probably change this behavior, such that e.g. left-clicking while holding down shift would select the union. I don't know if it is necessary to have option 3 available with a modifier. The best way to handle this, I think, would be to add user settings, such that users who want this behavior can enable it and choose the appropriate modifier(s) if multiple behaviors are enabled.

bjtho08 avatar May 13 '19 15:05 bjtho08

I agree with @bjtho08 ! left-click = select 1, shift + left-click = select multiple

hoangthienan95 avatar May 14 '19 15:05 hoangthienan95