Commit 2db34f0
fix(tui): Enable terminal text selection and clipboard paste
**CRITICAL UX FIX:** Users can now select text and paste in TUI!
Previous Issue:
- EnableMouseCapture prevented terminal text selection
- No way to paste wallet addresses into search
- Frustrating UX for copying addresses/results
Solution Implemented:
π Clipboard Integration:
- Removed EnableMouseCapture/DisableMouseCapture
- Terminal native selection now works (click+drag)
- Ctrl+V pastes clipboard into search modal
- Press 'y' in SearchResults tab to copy all results
- Press 'y' in Graph tab to copy wallet address
β¨ New Features:
1. **Ctrl+V Paste** (in global search):
- Paste wallet addresses from clipboard
- Logs: 'π Pasted N chars from clipboard'
- Works in Ctrl+K search modal
2. **Press 'y' to Copy**:
- In SearchResults tab: copies all findings
- In Graph tab: copies selected wallet address
- Format: Plain text with sections (WALLETS/TOKENS/TRANSACTIONS)
3. **Terminal Selection Restored**:
- Click and drag to select any text
- Middle-click to paste (X11/Wayland)
- Works with terminal emulator's native copy
Copy Format Example:
π Updated Help Text:
- Ctrl+V: Paste from clipboard (in search modal)
- y: Copy to clipboard (wallet/search results)
Technical Changes:
- Removed EnableMouseCapture from terminal setup
- Removed DisableMouseCapture from cleanup
- Added arboard clipboard integration
- Scoped MutexGuard to avoid borrow conflicts
- Extract total_matches before add_log() call
Why This Matters:
Users investigating blockchain often need to:
1. Copy wallet addresses from explorers β paste into TUI
2. Copy search results from TUI β share with team
3. Select transaction IDs β paste into other tools
Without this, the TUI was a "roach motel" - data went in but couldn't come out easily.
π§ Generated with Claude Code
Co-Authored-By: Claude <[email protected]>1 parent 8870c64 commit 2db34f0
1 file changed
+54
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
| 581 | + | |
| 582 | + | |
582 | 583 | | |
583 | 584 | | |
584 | 585 | | |
| |||
587 | 588 | | |
588 | 589 | | |
589 | 590 | | |
590 | | - | |
591 | | - | |
| 591 | + | |
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
678 | 688 | | |
679 | 689 | | |
680 | 690 | | |
| |||
861 | 871 | | |
862 | 872 | | |
863 | 873 | | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
864 | 913 | | |
865 | 914 | | |
866 | 915 | | |
| |||
1760 | 1809 | | |
1761 | 1810 | | |
1762 | 1811 | | |
| 1812 | + | |
1763 | 1813 | | |
1764 | 1814 | | |
1765 | 1815 | | |
| |||
1769 | 1819 | | |
1770 | 1820 | | |
1771 | 1821 | | |
1772 | | - | |
| 1822 | + | |
1773 | 1823 | | |
1774 | 1824 | | |
1775 | 1825 | | |
| |||
0 commit comments