-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
screen readers should speak the line landed on when navigating with f3, f8, etc #89111
Comments
Hi Alex, Thanks for filling the issue and I think this makes perfect sense. We already do this when a breakpoint gets hit. Code pointer for reference. We need to do the same thing for: Assigning this to next milestone so we look into adding this. There might be a chance that all these use cases use the same underlying |
Just in case I don't have enough capacity next month for this task, here are some code pointers:
|
Yes, basically what happens when a breakpoint is hit. Ideally, you'd press F3 or shift-f3 and hear the line landed on, with the "x of y found for..." announcement following the line. This same would happen for other navigation commands, as described in the initial issue.
…--
Alex Hall
On Jan 23, 2020, at 05:20, Isidor Nikolic ***@***.***> wrote:
Hi Alex,
Thanks for filling the issue and I think this makes perfect sense.
We already do this when a breakpoint gets hit. Code pointer <https://github.com/microsoft/vscode/blob/2f1419db46d4a108e72ec58043fa51188e4f67d7/src/vs/workbench/contrib/debug/browser/debugService.ts#L743> for reference.
Or did you mean when you press on a breakpoint from the breakpoints view?
We need to do the same thing for:
Find widget @rebornix <https://github.com/rebornix>
Problem @sandy081 <https://github.com/sandy081>
SCM moving by change @joaomoreno <https://github.com/joaomoreno>
Assigning this to next milestone so we look into adding this.
There might be a chance that all these use cases use the same underlying EditorService api and that we can maybe tackle it on that level.
@rebornix <https://github.com/rebornix> @sandy081 <https://github.com/sandy081> @joaomoreno <https://github.com/joaomoreno> let me know if you do not have time and I can look into your areas. Just provide pointers.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#89111?email_source=notifications&email_token=AAILC25Q2FULYGW55VYVGWTQ7FVQHA5CNFSM4KKKGRY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJW36XQ#issuecomment-577617758>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAILC26IG33F2CS6VGDN6NDQ7FVQHANCNFSM4KKKGRYQ>.
|
@mehgcap I have some questions:
|
echo "Hello world!"; hello found at line 9 column 6, 1, of 1 or something similar.
doStuff(); error, undeclared function "doStuff" at line 7, column 1 or error, undeclared function "doStuff" at line 7, column 1. doStuff();
|
I agree with @mehgcap here. The reason is really because on it's own, just knowing the line and column name, while useful, doesn't give context unless you can either:
That is where Find is concerned, in any case. Ditto for the problems view, just knowing the error message is useful, but unless you know where you are in the file, which at this point you don't because you were just jumped, you won't know the context you're in that can help debug the error. |
@mehgcap Ok, we changed the find to pronunce the following for your example from above echo "Hello world!"; 1 of 1 found for 'Hello' at 1:2 Please note the following details: We can of course tune this so please provide feedback. So for the diff editor let's stick with #88695 @rebornix you can checkout my changes if you would like, you can see them in the attached commit. Thanks a lot! |
Thanks! I agree that less verbose is better, but I'm a fan of separating things with punctuation to make it easier to hear. A comma after the line, and another between the line and column numbers, would be good. But that's just me. VSCode loves settings for everything; would it ever be possible to define the template to be spoken in a setting?
"accessibility.speech.templates.focusSearchResult": "{$line}, {index} of {total}, at {lineNumber}, {columnNumber}"
This way people can set the announcement exactly how they want. Punctuation and text cues for some, compact information for braille users, less details for those who don't need them.
As the above would take a while, and may not happen at all, I'll just say I prefer commas to separate information. Thanks!
Sent from my iPhone
… On Feb 6, 2020, at 06:36, Isidor Nikolic ***@***.***> wrote:
@mehgcap Ok, we change the find to pronunce the following for your example from above
echo "Hello world!"; 1 of 1 found for 'Hello' at 1:2
Please note the following details:
1 )there are no commas, dotas or anything except a whitespace between the line content and the find result.
2) I did not use the word "result", "line" and "column" to make it less verbose per previous feedback from users.
We can of course tune this so please provide feedback.
Next week vscode insiders will have this changes so it would be great if you could try them out and let us know how it behvaes now.
So for the diff editor let's stick with #88695
Still keeping this issue open for the go to error widget. We will also look into improving that based on your feedback.
Thanks a lot!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@mehgcap that makes perfect sense. I have added commas. As for the setting, we usually only add settings if there are conflicting opinions from users. I believe the current soution might work for everybody and I would only consider adding a setting in the future if users come with good reasons why the current annoucment does not work for them. @sandy081 leaving this item assigned to you. So it would great if the goToErrorWidget pronunces the following |
@isidorn thanks for the ping, your changes look pretty good. |
That makes sense to me. Thanks for doing this! |
@sandy081 we also should do this for
|
@JacksonKearl this all makes perfect sense. However please file a new issue. Closing this. |
Issue Type: Feature Request
Please consider adding a way for screen readers to speak the lin landed on when navigating with keyboard commands. For instance, you press ctrl-f, type, then press escape. Now, as you press f3 and shift-f3, you move from search result to search result. It would be helpful to hear the full line spoken that contains the result that gets focus. This holds for other navigation keys, such as moving by change, problem, breakpoint, etc.
VS Code version: Code 1.41.1 (26076a4, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.18362
Remote OS version: Linux x64 3.16.0-4-amd64
The text was updated successfully, but these errors were encountered: