zulip-terminal
zulip-terminal copied to clipboard
buttons/messages/views: Add support for copying code snippets.
What does this PR do? This PR aims to add support for copying code snippets and is based off on the work done by @kingjuno and @neiljp in the PR #1134. This PR mainly fixes the tests and linting issues and bring the PR to a merge-able state.
Tested?
- [x] Manually
- [x] Existing tests (adapted, if necessary)
- [ ] New tests added (for any new behavior)
- [x] Passed linting & tests (each commit)
This may fix the core elements of #1123.
@yuktasarode Is this ready for review? If so, please change the labels as per my message in the GSoC 2023 topic in zulip-terminal (ie. remove needing update and add needs review).
@zulipbot add "PR needs review"
@zulipbot remove "PR awaiting update"
@yuktasarode Could you please rebase this after the recent changes we had in main, and further explore how you might simplify and initialize the snippet button like we do with the MessageLinkButton? (given my comment above)
You're welcome to take up another issue also, of course :+1: