<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mikko Matilainen</title>
    <description>The latest articles on Forem by Mikko Matilainen (@mikkom).</description>
    <link>https://forem.com/mikkom</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F600969%2F498f4c12-2490-4ad3-9973-77cecd8489e4.jpeg</url>
      <title>Forem: Mikko Matilainen</title>
      <link>https://forem.com/mikkom</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mikkom"/>
    <language>en</language>
    <item>
      <title>VSCode terminal &amp; meta key</title>
      <dc:creator>Mikko Matilainen</dc:creator>
      <pubDate>Sun, 21 Mar 2021 09:17:52 +0000</pubDate>
      <link>https://forem.com/mikkom/vscode-terminal-meta-key-273b</link>
      <guid>https://forem.com/mikkom/vscode-terminal-meta-key-273b</guid>
      <description>&lt;p&gt;I had the same issue as described here: &lt;a href="https://superuser.com/questions/1549993/how-to-map-option-shift-digit-keys-in-zsh-using-bindkey"&gt;https://superuser.com/questions/1549993/how-to-map-option-shift-digit-keys-in-zsh-using-bindkey&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I went with the same solution that disables &lt;code&gt;terminal.integrated.macOptionIsMeta&lt;/code&gt; and uses bindkey to map the traditional readline meta key commands. I added &lt;code&gt;insert-last-word&lt;/code&gt; and had to modify the bound characters to some extent. Still need to figure out how to best handle dead keys (&lt;code&gt;option-t&lt;/code&gt; and &lt;code&gt;option-u&lt;/code&gt; for example)...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bindkey '' accept-and-hold # option-a
bindkey 'ƒ' forward-word # option-b
bindkey 'ç' fzf-cd-widget # option-c
bindkey 'ð' delete-word # option-d
bindkey '›' backward-word # option-f
bindkey '¸' get-line # option-g
bindkey '˛' run-help # option-h
bindkey 'ﬁ' down-case-word # option-l
bindkey '‘' history-search-forward # option-n
bindkey 'π' history-search-backward # option-p
bindkey '•' push-line # option-q
bindkey 'ß' spell-word # option-s
bindkey '†' transpose-words # option-t
bindkey 'ˀ' up-case-word # option-u
bindkey 'Ω' copy-region-as-kill # option-w
bindkey '≈' execute-named-cmd # option-x
bindkey 'µ' yank-pop # option-y
bindkey '…' insert-last-word # option-.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Would be nice if VSCode supported choosing just the left option key as meta, same as iTerm does.&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>terminal</category>
      <category>zsh</category>
    </item>
  </channel>
</rss>
