Remix.run Logo
franga2000 6 days ago

What exactly does Toshy do for you? The readme is incomprehensible...

For the specific case of copy-paste in a terminal, you either have to press something extra for paste or something extra for SIGINT - there is no secret third option. You could remap copy (bad for muscle memory) or remap sigint (similarly bad for muscle memory, but also confusing since many terminal apps mention CTRL+C explicitly).

I guess a better place for copy/paste would be WIN+C/V, since it feels like a global function and not an app-specific one, but the way clipboard is implemented makes it an app shortcut by necessity. This convention also doesn't hold with things like ALT+TAB (switch windows) and CTRL+Q (close window), both of which feel like "system" shortcuts but don't use WIN.

So I guess my point is...keybinds are already a mess "because legacy" and any attempt at solving that mess would just result in less universality and worse muscle memory, which goes against their whole reason for existing.

In the grand scheme of things, "when in a terminal, press shift to escape key combos" is a very easy convention to get used to. Also work for mouse integration, for example if you have vim open and mouse integration enabled, but want to select and copy using the system clipboard.

lucideer 6 days ago | parent | next [-]

Toshy makes Cmd-C copy in all Linux apps: both GUIs & Terminals. This avoids any clashes with Ctrl in terminal as you're using Cmd for shortcuts everywhere instead.

> there is no secret third option

I assume you're thinking of trying to use Ctrl-C in terminals? The secret third option is never using Ctrl at all outside of terminals.

> I guess a better place for copy/paste would be WIN+C/V

Yeah that would likely be the equivalent of Cmd if you're using a Windows keyboard. That is how it's configured across all apps by default in macOS & Toshy just ports that sensibility over to Linux.

crtasm 6 days ago | parent [-]

Anyone know if Toshy is usable on xfce? It's not listed on https://github.com/RedBearAK/toshy?tab=readme-ov-file#curren...

lucideer 5 days ago | parent | next [-]

I haven't tried it but from your link it sounds like it is supported as XFCE uses X11.

The future Wayland support that the XFCE guys are working on uses wlroots so it should be easy for Toshy to support when it lands - there's a few wlroots DEs listed there.

dsr_ 5 days ago | parent | prev [-]

You can use XFCE's control panel / keyboard / application shortcuts to assign xvkb invoking XF86Copy and XF86Paste to whatever you like.

xvkb: the X virtual keyboard. In full GUI mode, it saves you when your keyboard is caput. In headless mode, you can synthesize keys not found in nature, or at least not on your physical board.

masfuerte 6 days ago | parent | prev [-]

In Windows Terminal CTRL+C is copy if there is a selection and interrupt otherwise. It's very natural.

Flockster 6 days ago | parent [-]

You can do this with many terminal emulators on linux too. I did it with konsole and tilix, just change the copy and paste shortcut and you get this "natural copy" behavior.