I'm having trouble setting up a key binding to copy the content of the terminal window. So far, the best I've got is
key_bindings:
# copy window content with F2
- { key: F2, mode: ~Search, action: ToggleViMode }
- { key: F2, mode: Vi|~Search, action: High }
- { key: F2, mode: Vi|~Search, action: ToggleLineSelection }
- { key: F2, mode: Vi|~Search, action: ScrollToBottom }
- { key: F2, mode: Vi|~Search, action: Copy }
- { key: F2, mode: ~Search, action: ToggleViMode }
When I press it, the clipboard does not get filled. Do you have any idea?
Edit:
The problem seems to be the mode switching. The following works, but requires to press two buttons:
key_bindings:
- { key: F3, action: ToggleViMode }
- { key: F2, mode: Vi, action: High }
- { key: F2, mode: Vi, action: ToggleLineSelection }
- { key: F2, mode: Vi, action: Low }
- { key: F2, mode: Vi, action: Copy }
- { key: F2, mode: Vi, action: ClearSelection }
- { key: F2, mode: Vi, action: ToggleViMode }