spotify-tui icon indicating copy to clipboard operation
spotify-tui copied to clipboard

Adds functionality to rebind keys to other keys

Open Kagia001 opened this issue 4 years ago • 8 comments

This allows users to rebind keys to other keys in the config file which lets users with non-qwerty keyboards to use the vim-like keybinds. Users can also use this to change the keyboard shortcut for commands which are not configurable in the config file, although this is a somewhat clumsy way to do that. There is some awefully WET code in here (remap_key()), but it works.

Kagia001 avatar Jan 03 '21 19:01 Kagia001

#385

Kagia001 avatar Jan 03 '21 20:01 Kagia001

Those clippy errors don't have anything to do with my code and I don't feel like messing around with someone elses code, so that check can keep failing for all I care.

Kagia001 avatar Jan 03 '21 20:01 Kagia001

The clippy errors are from the rust version upgrade to 1.49. Clippy got updated with that as well. The errors have nothing to do with your code.

OrangeFran avatar Jan 06 '21 08:01 OrangeFran

Sorry about the clippy errors. I've fixed them in #697. If you can rebase master, you should be good.

I'll have a look at your changes as soon as I can.

Rigellute avatar Jan 06 '21 09:01 Rigellute

@Rigellute run this:

git fetch origin refs/pull/693/head:keybindings-rework
git clone [email protected]:Zeioth/spotify-tui.git 

And then

cargo run

It literally took me 1 minute to have it working, and it's gonna be really useful for everyone. Thank you.

Zeioth avatar Jun 24 '21 19:06 Zeioth

The only thing missing would be the ability to rebind CTRL+key. This is something critical I wouldn't overlook.

Zeioth avatar Jun 24 '21 20:06 Zeioth

How is this project going ? I would be interested in the rebind feature too.

gfauredev avatar May 13 '23 15:05 gfauredev

How is this project going ?

abandoned

apprehensions avatar May 13 '23 16:05 apprehensions