diff options
author | 哇呜哇呜呀咦耶 <pingao777@gmail.com> | 2022-11-12 10:47:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-12 11:47:02 +0900 |
commit | 9f827805f18a5e2b0d1070e1db6ae623f451aaa7 (patch) | |
tree | 1603f6c2e06d741600c4ba11129e76ee2c7a74b8 /zellij-client | |
parent | a71b2ae8902d6ec1693f00f136d6b43f4c49db4f (diff) |
Support clipboard to text input (#1926)
Diffstat (limited to 'zellij-client')
-rw-r--r-- | zellij-client/src/input_handler.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs index 03cb57dc5..801ff0951 100644 --- a/zellij-client/src/input_handler.rs +++ b/zellij-client/src/input_handler.rs @@ -114,6 +114,24 @@ impl InputHandler { None, ); } + if self.mode == InputMode::EnterSearch { + self.dispatch_action( + Action::SearchInput(pasted_text.as_bytes().to_vec()), + None, + ); + } + if self.mode == InputMode::RenameTab { + self.dispatch_action( + Action::TabNameInput(pasted_text.as_bytes().to_vec()), + None, + ); + } + if self.mode == InputMode::RenamePane { + self.dispatch_action( + Action::PaneNameInput(pasted_text.as_bytes().to_vec()), + None, + ); + } }, _ => {}, } |