-
Notifications
You must be signed in to change notification settings - Fork 524
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
Space bar is not obvious in multi-select quick pick #1005
Comments
@EricJizbaMSFT thanks for splitting it! I don't know if the implementation allows to read the 'active' item in the list when 'Enter' is pressed. If possible, I believe it should be implemented without further note. Or, the note could say If it is not possible to retrieve the position of the cursor/selector, then the note you suggested will be helpful. |
@1138-4eb it's not possible to fix directly in our extension. We would have to file an issue on VS Code itself |
Since I now know how it works, I don't need the fix (I always have a thumb on the spacebar). This issue is just to improve the UX for future users. Hence, I'm ok if this is handled through VSC and it takes longer because of that. The point is, do you think it is worth opening an issue about this? Are there other extensions/features that would benefit from it? I'm asking it from absolute ignorance, since I don't know the details of the API. |
As said, I don't know the API, but I imagine that it actually returns a list of selected elements. My proposal was for it to return the list of selected elements and the active element (-1 meaning 'no active element', i.e. textbox above). Hence, it'd be possible to:
Then, depending on the specific context, the 'active' value might be relevant or it might be ignored. In the example that motivated this issue, I believe it is useful. So we can assume that it can be useful in menus where you are expected to apply the same action to a single item or a group of items (it's just a shortcut to avoid repeating the same action multiple times). However, on the last example, it seems not to be useful; a configuration list is being displayed, so the |
@1138-4eb I see how your suggestion reduces the number of keystrokes, but it also feels confusing if sometimes we use the active element and sometimes we don't. For that reason - I probably won't file an issue on VS Code, but you're welcome to advocate your case in that repo. In terms of this extension - would you like a setting to turn off the "multi-select" mode so that you can select a single container with the enter button? |
It's ok. I perfectly understand it.
I believe that multi-select is useful in other situations. I think it is a great enhancement overall. So, no, I don't think it is necessary to make it optional. If you can change the message to |
I'm trying 0.6.3-alpha from https://dev.azure.com/ms-azuretools/AzCode/_build/results?buildId=6664 on Win10 with VSC:
I don't know if this is the desired behaviour, but I found myself trying it multiple times until I guessed it:
Nothing happens. Due to the checkbox, the last 'Enter' has no effect, although I 'selected' a container with the arrow key. For it to work, I need to press 'Space' before the last 'Enter'. This will select the container.
I'd say that requiring to press 'space' is unnecessary when the users want to start/stop/whatever a single container.
Note that this does not apply if you do some of the steps with the mouse, because clicking on a container will select it only.
Originally posted by @1138-4eb in #966 (comment)
The text was updated successfully, but these errors were encountered: