Skip to content

Support use option as meta in terminal #11314

Closed

Description

@mikekhaas
  • VSCode Version: 1.4.0
  • OS Version: 10.11.6 mac os x

Steps to Reproduce:

  1. type in a word/command into vs code terminal
  2. hold option key and tap delete key

Deleting a whole word while holding option "meta" key does not work. One character is deleted. In the regular terminal for os x in preferences there is a checkbox that lets you enable the option key to be used as a meta key which allows holding the option key and hitting delete to delete an entire word at a time.

Activity

  1. added
    terminal
    on Aug 31, 2016
  2. added
    feature-request
    macos
    on Sep 1, 2016
  3. added this to the Backlog milestone on Sep 1, 2016
  4. adamluzsi commented on Jan 17, 2017

    @adamluzsi

    +1 for this :)
    👍

  5. Tyriar commented on Jan 17, 2017

    @Tyriar
    Contributor

    ctrl+w does this now, you should be able to do this by remapping keys to send the escape sequence you want (^W).

  6. Tyriar commented on Jan 17, 2017

    @Tyriar
    Contributor

    Actually maybe you can't do that now as the same escape sequence is sent regardless of whether alt/option was pressed. I filed this upstream xtermjs/xterm.js#486

  7. added
    upstream
    on Jan 17, 2017
  8. adamluzsi commented on Jan 19, 2017

    @adamluzsi

    Option key is more than just for deleting. There is a couple of great thing you can do with option key, delete is only one thing from that. :)

  9. Tyriar commented on Jan 20, 2017

    @Tyriar
    Contributor

    Adam Luzsi (@adamluzsi) any others in particular that you can do with other terminals but not vscode?

  10. mikekhaas commented on Jan 21, 2017

    @mikekhaas
    Author

    Daniel Imms (@Tyriar) All I use it for personally is moving one word at a time as opposed to one letter. Moving includes deleting and using arrow keys.

  11. Tyriar commented on Jan 21, 2017

    @Tyriar
    Contributor

    Thanks, we're looking into how to solve this problem in the general case so we can remove some of the non-standard keybindings we hard coded into the terminal code xtermjs/xterm.js#487

  12. changed the title [-]support option meta key with terminal[/-] [+]Support or allow customizing of common custom terminal keybindings[/+] on Feb 2, 2017
  13. 15 remaining items

  14. DiegoSalazar commented on Jan 19, 2018

    @DiegoSalazar
  15. saamalik commented on Jan 19, 2018

    @saamalik

    Diego E. Salazar (@DiegoSalazar) cool!

    btw I think this is an even better option: Mac OSX: altIsMeta support! If Daniel Imms (@Tyriar) is okay with the PR, then you'll probably need to make a corresponding change in VScode to enable altIsMeta.

  16. DiegoSalazar commented on Jan 19, 2018

    @DiegoSalazar
  17. saamalik commented on Jan 20, 2018

    @saamalik

    Diego E. Salazar (@DiegoSalazar) oh really! That's actually a lot worse than not being able to jump between words. btw the altIsMeta fix will probably be merged soon. In the interim you can also use 'ESC'+b, 'ESC'+f, etc. to jump between words.

  18. changed the title [-]Support or allow customizing of common custom terminal keybindings[/-] [+]Support use option as meta in terminal[/+] on Jan 20, 2018
  19. added
    macos
    on Jan 20, 2018
  20. added a commit that references this issue on Jan 20, 2018
  21. added
    verification-needed
    on Jan 28, 2018
  22. locked and limited conversation to collaborators on Mar 6, 2018
  23. Tyriar commented on Apr 24, 2018

    @Tyriar
    Contributor

    Here's the setting:

    "terminal.integrated.macOptionIsMeta": true
    
  24. added a commit that references this issue on Sep 6, 2026
    fcddd60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestmacosterminalupstreamverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions