title: tmux - output all keybindings to a file
body: <p>I have checked <a href="https://unix.stackexchange.com/a/442424/206574">Write all tmux scrollback to a file</a> and came up with the following command to view scrollback buffer is vscode.</p>
  <pre><code>bind-key -T root C-E run-shell &quot;tmux capture-pane -pS -50000 &gt; /tmp/tmux-code.txt; code /tmp/tmux-code.txt&quot;
  </code></pre>
  <p>Now I want to view <code>&lt;prefix&gt;</code><kbd>?</kbd> (List all key bindings) output in vscode.</p>
  <p>How can I do that?</p>