Skip to content

Include terminal name in terminal textarea title #99072

Description

@Tyriar

Currently focusing the terminal reads something like "Terminal 1", "Terminal 2". It should read "Terminal 1, bash", "Terminal 2, (custom title)", etc.

Context: #95573 (comment)

Activity

  1. added
    bug
    help wanted
    accessibility
    good first issue
    terminal
    on Jun 2, 2020
  2. added this to the Backlog milestone on Jun 2, 2020
  3. chrisnorman7 commented on Jun 2, 2020

    @chrisnorman7

    Or simply the title you set... Maybe the title, then "Terminal 1" in brackets?

  4. chrisnorman7 commented on Jun 2, 2020

    @chrisnorman7

    Or maybe go absolutely wild, and have it as a configurable string. Something like "$n (Terminal $i)", where $n is the name you set, and $i is the index.

  5. tabaddor commented on Jun 3, 2020

    @tabaddor
    Contributor

    I can look into fixing this issue if it is still open, although I do see it has been added to the backlog.

  6. Tyriar commented on Jun 4, 2020

    @Tyriar
    ContributorAuthor

    Arman Tabaddor (@tabaddor) please do 🙂, the backlog for us essentially means we want to do this eventually.

  7. tabaddor commented on Jun 8, 2020

    @tabaddor
    Contributor

    On it. Chris Norman (@chrisnorman7) Quick clarification, but what was meant by "custom title" in the issue description above?

    I guess more specifically, with Terminal X, (custom), is the (custom) the user's choice? How will that terminal name be determined? (looking at the context linked above, it seems it should be what was set for the rename terminal action)

    Additionally, before I delve into the source code, can you briefly clarify "focusing" on the textarea Daniel Imms (@Tyriar)? Can't seem to recreate that on the development version or released version.

  8. Tyriar commented on Jun 8, 2020

    @Tyriar
    ContributorAuthor

    Arman Tabaddor (@tabaddor) by custom I mean when you rename a terminal via this command:

    image

    Additionally, before I delve into the source code, can you briefly clarify "focusing" on the textarea Daniel Imms (@Tyriar)? Can't seem to recreate that on the development version or released version.

    The label is set here:

    xterm.textarea.setAttribute('aria-label', nls.localize('terminalTextBoxAriaLabel', "Terminal {0}", this._id));

    You'll need a screen reader to verify whether it's read correctly but I expect the change to be on that line.

  9. chrisnorman7 commented on Jun 8, 2020

    @chrisnorman7
  10. tabaddor commented on Jun 13, 2020

    @tabaddor
    Contributor

    I anticipate changing this line:

    xterm.textarea.setAttribute('aria-label', nls.localize('terminalTextBoxAriaLabel', "Terminal {0}", this._id));

    to this:

    xterm.textarea.setAttribute('aria-label', nls.localize('terminalTextBoxAriaLabel', "Terminal {this._id}, {this._title}"));

    Though prior to setting this attribute I anticipate I will need to add a check to see if the title was set or not, along with ensuring this attribute is updated on title changes (renamed instances). Although the latter should already be accounted for.

  11. 21 remaining items

  12. plainerman commented on Dec 6, 2020

    @plainerman
    Contributor

    I see that this issue hasn't been fully resolved as of now. I would like to try to fix it if it is still available to work on.

    As I am completely new to this project, I would appreciate some code pointers. With the pointers above I have already found out where the string "said by the narrator" is set. But could someone point me to the entry point for Terminal:Rename?

    Thank you, looking forward to making my first contribution.

  13. added a commit that references this issue on Dec 11, 2020
    e8922b8
  14. plainerman commented on Dec 11, 2020

    @plainerman
    Contributor

    I found the entry point of Terminal:Rename and have resolved the issue.
    A pull request has been created at #112317.

    If anyone is searching for the entry point, see

    async run(accessor: ServicesAccessor) {

  15. isidorn commented on Dec 14, 2020

    @isidorn

    Thanks a lot for creating a PR!

  16. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jan 19, 2021
  17. locked and limited conversation to collaborators on Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilitybuggood first issuehelp wantedinsiders-releasedterminalverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions