rofimoji icon indicating copy to clipboard operation
rofimoji copied to clipboard

Allow shortcut customization for most recent emojis

Open Chostakovitch opened this issue 8 months ago • 1 comments

Hi! First of all, thanks for your great work :)

I use Alt+<n> to switch workspaces in i3wm. I would like to customise the way recent emojis are selected.

Is there a way I missed? Otherwise, are you willing to implement this? I might submit a PR in that case.

Chostakovitch avatar Apr 10 '25 08:04 Chostakovitch

I don't think that can be configured yet, no. So if you want, feel free to add a --keybinding-recent parameter and open a PR 🙂

fdw avatar Apr 10 '25 18:04 fdw

I had another look and I couldn't see a straightforward implementation. However, it should be enough to set -kb-custom-1 (up until -kb-custom-10) in the --selector-args, as it's only the keys and not the behavior that you want to change.

Since there is that solution and the demand for the change seems not very high, I'll close this issue. However, I will look at a PR for it.

fdw avatar Jul 26 '25 08:07 fdw

Thanks a lot for going back to this issue. I couldn't find time/energy to propose something.

I doubt I'd have figured out how to do this myself, but the following works like a charm:

rofimoji --selector-args "-kb-custom-1 Control+ampersand -kb-custom-2 Control+eacute -kb-custom-3 Control+quotedbl -kb-custom-4 Control+apostrophe -kb-custom-5 Control+parenleft -kb-custom-6 Control+minus -kb-custom-7 Control+egrave -kb-custom-8 Control+underscore -kb-custom-9 Control+ccedilla -kb-custom-10 Control+agrave"

Chostakovitch avatar Jul 26 '25 08:07 Chostakovitch