raphamorim / raphamorim/rio

macOS: Paste the current selection with the right mouse button?

Open
#751 0 comments 3 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.