macOS: Paste the current selection with the right mouse button?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 7.5k
- Forks
- 351
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 15
Description
Discussed in https://github.com/raphamorim/rio/discussions/749
Originally posted by tjatjagithub November 2, 2024
I am coming from Alacritty and am tempted to replace it with Rio on my Mac.
In Alacritty, I have a configuration that allows to select text with the left mouse button and paste it with the right mouse button - super standard and fast to use.
As Rio is based on Alacritty, I created those lines for ~/.config/rio/config.toml:
[selection]
semantic_escape_chars = ",│`|:\"' ()[]{}<>\t$/="
save_to_clipboard = true
[shell]
program = "/opt/local/bin/bash"
args = ["--login"]
[mouse_bindings]
buttons = [ { mouse = "Right", action = "PasteSelection" } ]
This does not give a syntax error, but it does not work :-(
The selection cannot be pasted with the right mouse button.
Did I do this wrong, or can Rio not do this?
Any help is appreciated :-)
Many thanks!
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Reproduce the configuration on macOS using the shown [selection] and [mouse_bindings] entries, starting with the right-button PasteSelection behavior. Trace how these configuration options are read and how mouse actions are dispatched. Done means a left-button selection can be pasted with the right mouse button without a configuration error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, desktop-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100