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 | |
| parent | chore(version): bump development version (diff) | |
| download | sl0ppij-9f827805f18a5e2b0d1070e1db6ae623f451aaa7.tar.gz sl0ppij-9f827805f18a5e2b0d1070e1db6ae623f451aaa7.tar.xz sl0ppij-9f827805f18a5e2b0d1070e1db6ae623f451aaa7.zip | |
Support clipboard to text input (#1926)
| -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 03cb57dc..801ff095 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, + ); + } }, _ => {}, } |
