[Feature] Copy on select in the game window, as in Genie 4
Maintainers usually reply within 5 days
Assessment
This issue has not been assessed yet.
Description
The use case
In Genie 4, dragging over text in the game window copies it: it is on the clipboard when I let go of the mouse. In Genie 5 the drag only highlights, and every copy takes an extra Ctrl+C or right-click, Copy. I would like the Genie 4 behaviour back.
Proposed solution
When the mouse is released after a drag in the game window, copy the selection to the clipboard.
Two details I would suggest, having tried it in a local build:
-
Keep the highlight. Genie 4 clears it on release, which was its only sign that the copy happened. Keeping it means Ctrl+C and the menu's Copy still work on the same selection.
-
Because the highlight no longer disappears, show a short notice instead, in a corner of the window for about two seconds:
copied 77 chars to clipboard
A setting turns it off, #config copyonselect on|off, read at each mouse release so it takes effect at once. I have it on by default for Genie 4 parity, but the default is your call.
I have this working locally on top of v5.0.1-beta.5, with tests, and a pull request follows.
Not covered by what I have: the stream windows, which select within one line only, and the experimental editor renderer.
How others handle it
- Genie 4: always on, no setting.
ComponentRichTextBox_MouseUpputsSelectedTexton the clipboard and setsSelectionLength = 0. Its right-click menu has no Copy item at all. - Linux terminals copy on select into the primary selection; PuTTY and Windows Terminal (optional
copyOnSelect) into the clipboard.
Policy check
Nothing here touches the game connection, automation or other players' text. It changes what a mouse drag does to the clipboard, and a setting turns it off.
Alternatives considered
- Leave it off by default and let people turn it on. That is the safer default for anyone who selects text without meaning to copy, and it is one word to change in what I have.
- Clear the highlight on release, as Genie 4 did, and show no notice. That is the exact Genie 4 behaviour, but the selection is then gone for Ctrl+C or the menu.
- Dominant language
- C#
- Stars
- 2
- Forks
- 5
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 22
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GenieClient/Genie5
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
GenieClient/Genie5#496 ·
Maintainers usually reply within 5 days
-
enhancement g4-regression
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
GenieClient/Genie5#494 ·
Maintainers usually reply within 5 days
-
area:ui-dock enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GenieClient/Genie5#462 ·
Maintainers usually reply within 5 days
-
area:mapper bug est:<1d P2
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
GenieClient/Genie5#449 · 1 comment ·
Maintainers usually reply within 5 days
-
[Bug] Maps ▸ Update from Official Repo / Repair Maps give no notification of success or failurePossibly taken A pull request linked to this issue is open or already merged. Openarea:mapper area:updater bug est:<1d P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
GenieClient/Genie5#423 · 1 assignee ·
Maintainers usually reply within 5 days
All issues in GenieClient/Genie5
Similar issues
-
documentation good first issue kind:task level:starter size:s
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Arggon/ArggonStores#66 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Tool] MockAPIOpenhas-image has-license has-readme new-tool ready-to-approve repo-verified
Difficulty 1/5 Under an hour Newbie friendliness 72/100
shanselman/TinyToolTown#956 ·
Maintainers usually reply within 2 days
-
bug frontend
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Bug]: Native build script prints a traceback when Git is missing from PATHPossibly taken @Jaisuryan-web claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
KnifeLemon/Filee#1953 ·
Maintainers usually reply within 1 day