Skip to content

Reflect indent level using VoiceOver #88877

Closed

Description

@ivanfetch

A verbal indication of the indent level while using the arrow-keys to navigate code is very valuable, especially when indentation is syntactically required such as with YAML or Python.

For example, using the vim editor, I display the indent level using the DynamicSigns plugin. I also navigate to lines of lesser, equal, or
greater indent using the IndentWise plugin.

CC Isidor Nikolic (@isidorn)

Activity

  1. added
    accessibility
    on Jan 17, 2020
  2. isidorn commented on Jan 20, 2020

    @isidorn

    Ivan Fetch (@ivanfetch) thanks a lot for providing this valuable feedback. Would you expect that

    1. indentation is always read out as you navigate the document? This has the downside of potentially being too spammy to the user. How to determine a good time to read the indentation?
    2. There is an explicit command that reads out the indentation once a user triggers it? A user could easily add a shortcut to this command.

    Let me know what you think.

    As for Vim, vscode also has a vim plugin https://marketplace.visualstudio.com/items?itemName=vscodevim.vim
    However I am not sure if the vscode vim plugin supports extension you are using. Pine (@octref) and Peng Lyu (@rebornix) would be better to answer this one (as I do not use VIM).

  3. added
    feature-request
    on Jan 20, 2020
  4. added this to the Backlog Candidates milestone on Jan 20, 2020
  5. deleted a comment from vscodebot on Jan 20, 2020
  6. ivanfetch commented on Jan 24, 2020

    @ivanfetch
    Author

    Ivan Fetch (@ivanfetch) thanks a lot for providing this valuable feedback. Would you expect that

    1. indentation is always read out as you navigate the document? This has the downside of potentially being too spammy to the user. How to determine a good time to read the indentation?

    I think this being a toggled feature (with hotkey) provides the most flexibility. There are cases where I want to know the indent level of every line as I navigate a file, but I wouldn't want that 100% of the time.

    1. There is an explicit command that reads out the indentation once a user triggers it? A user could easily add a shortcut to this command.

    A hotkey that reads the indent level of the current line, but does not toggle the "always on" feature would be a nice addition. This would exist along with the above option (to have indent level always spoken)

    As for Vim, vscode also has a vim plugin https://marketplace.visualstudio.com/items?itemName=vscodevim.vim
    However I am not sure if the vscode vim plugin supports extension you are using. Pine (@octref) and Peng Lyu (@rebornix) would be better to answer this one (as I do not use VIM).

    I have not tried this, but the VS Code VIM Emulator appears to use emulated plugins. I think an indent feature directly in VS Code is more strait forward.

  7. isidorn commented on Jan 24, 2020

    @isidorn

    Thanks. Yeah I think that makes sense. A toggle to always read indentation. Once we have that we can look into introducing the other command to only read the current line ident.
    Let's assign to next milestone and we can look into adding this feature.

  8. rebornix commented on Jan 27, 2020

    @rebornix
    Contributor

    We don't support such plugin in the Vim extension but it makes sense to have this feature in the core and keymap extensions can benefit from it directly.

  9. added
    macos
    on Feb 27, 2020
  10. 11 remaining items

  11. cookiecrook commented on Mar 30, 2020

    @cookiecrook

    That’s not a VO setting. Show invisibles is an app specific setting (e.g. Word and several other apps have it) that renders invisible characters visibly. For example, the white space tab characters are rendered as char icons representing Tab.

  12. cookiecrook commented on Mar 30, 2020

    @cookiecrook

    Activities is a VO feature that allows a user to change a setting or setting in the context of an app or web site.

    For example, make a new Code activity in VoiceOver Utility, and change the setting to pronounce all punctuation. Associate that activity with vscode (so it switches automatically) or select it with the activity chooser (VO+x).

    You can also set up Speech replacements for an Activity. I haven’t tried it with white space, but if the app renders Tab characters properly to the AX API, you should be able to replace these in the speech output by replacing the Tab character with something pronounceable like the word “tab.”

    Note: I haven’t tried white space replacements, so if that doesn’t work for you in vscode, let me know and I’ll look into it further.

  13. MarcoZehe commented on Mar 30, 2020

    @MarcoZehe
    Contributor

    You can also do replacements like two tabs with "indentation level 2", three tabs with "indentation level 3" or such I believe, make tab-indented files read really nicely. Now if we could only have punctuation spoken only in the editor, not in the settings or other parts. :-) But VO activities don't allow for that granularity yet I think.

  14. isidorn commented on Mar 30, 2020

    @isidorn

    Thanks a lot for feedback.

    VS Code actually already has a setting
    editor.renderWhitespace which by default is selection so we would only render whitespace when the whitespace is selected. We should change our Screen Reader behavior such that when editor.renderWhitespace is set to "all" we would also read the whitespace characters as they are seen in the editor.
    The character which we currently use for representing a single space is a • (bullet). And for a tab we use ⭢ right arrow.

    Does it make sense that for having three whitespaces that we read "bullet bullet bullet", or for 4 tabs we would read "right arrow right arrow right arrow right arrow". This sounds very spammy to me.

    fyi Alexandru Dima (@alexdima) on ideas

  15. jhomme commented on Jul 2, 2020

    @jhomme

    Hi,
    Screen readers usually only read indentation when it changes as you move up and down. Also, if VoiceOver is set to read all punctuation, it reads tab characters in apps other than VS Code. I have not tried VS Code on Mac yet. I'll get Insider on my Mac and see what I can find out.

  16. isidorn commented on Oct 31, 2022

    @isidorn

    I heard that this has arrived with the new VoiceOver with macOS Monterey. If that is not the case do let me know so I reopen this issue.

  17. jhomme commented on Oct 31, 2022

    @jhomme
  18. locked and limited conversation to collaborators on Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilityfeature-requestmacos

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions