feat: add visual mode text selection - #164
ashupednekar wants to merge 1 commit into
Conversation
|
Thanks for this. Let me start with the good news, because the CI failure looks worse than it is. The compile errors are a stale base, not invented APIs. Your merge-base is I verified the repair is mechanical: merged main, dropped the That said, I don't want to merge this yet, for reasons beyond the rebase. 1. The highlight never repaints in the messages pane. So in the main messages pane, a user enters visual mode, presses 2. App state is read from a 3. Motions bypass the KeyMap. 4. It takes 5. It reintroduces the cgo clipboard into On scope — and this is the main thing. And the value ratio is lopsided against #163, which does "copy this message" in ~35 lines for the 95% case. This is ~230 lines plus a whole new What I'd like: let #163 land first, then open an issue for the visual-mode design. A new mode in a modal editor is the definition of a large feature addition, and I'd rather agree on the shape — scope, key, whether it scrolls — before you sink more time into it. If you still want it after that:
Also a semantic nit: |
Summary
Add Vim-style visual mode so users can select and copy part of a channel message or thread reply with the keyboard.
Changes
v/VISUALmode with h/j/k/l, arrow, 0/$, and endpoint-swap motionsyclipboard yank and Esc cancellation for messages and thread repliesOand add selection/mode coverageTesting
go test ./...(2,176 tests passed)