amperfy icon indicating copy to clipboard operation
amperfy copied to clipboard

[Feature request] add shortcuts

Open YasserAntonio opened this issue 2 years ago • 5 comments

First of all thanks for all the great updates. Great enough that it even made me use Amperfy on my Mac (you can use iOS apps on Mac OS now). I know that Amperfy is not meant to be used that way but it really works like a charm.

I wanted to ask if it doesn't take to much time to add some basic shotcuts like hitting space bar to stop/play music, Mac fast forward button to go to next music etc..

whatever you choose thanks a lot !

YasserAntonio avatar Jun 25 '22 12:06 YasserAntonio

Cool, very nice to hear.

I added space bar to toggle play/pause in this commit 4a5bcd751eece66cdae775d5b2ef428aabcef897. Mac fast forward button is not accessible from the app (the button is intercepted from the OS). Should I add p for previous song and n for next song?

BLeeEZ avatar Jun 26 '22 20:06 BLeeEZ

I'm wondering how this could benefit the difference usage ( phone, iPad, Macs) ? on the iPhone with the music app when you click 2 times at the + sound button it goes to the next music , latest music when you click 2 times on the -. On music's OSx app you can't use the arrow on the computer to change the music. Maybe copying those pattern will make the transition easier girl old Itunes/Music users. I think the arrows will be more intuitives comparing to letters but that's just my opinion

YasserAntonio avatar Jun 27 '22 21:06 YasserAntonio

Winamp used B for next song and Z for previous song, this implementation still exists in Tiny Player for example:

Screenshot 2022-09-19 at 08 06 16

YouTube uses J for next and K for previous.

Arrow keys work too but I prefer Winamp/YouTube because I don't have to move my right hand away from the mouse.

bbsixzz avatar Sep 19 '22 06:09 bbsixzz

Implemented in c270bd6500998eb63c05718bcc1c072f1d6d93d1 and eec965aac3dc036652c4269f52bbff8788aa546b

These are external keyboard shortcuts:

Player Interaction: Spacebar: play/pause player Arrow Left: replay/previous track Arrow Right: next track "s": toggle shuffle "r": switch through repeat modes "m": switch between music and podcast mode

Navigation: Command + f: switch to search tab and activate search bar "p": open/close Popup Player "f": activates the search bar in current view "1": open tab 1: library "2": open tab 2: search "3": open tab 3: settings Shift + Arrow Left: go one view back "h": go one view back Shift + Arrow Right: interact with selected item "l": interact with selected item Enter: interact with selected item Shift + Arrow Down: move selection to next item "j": move selection to next item Shift + Arrow Up: move selection to previous item "k": move selection to previous item

BLeeEZ avatar Feb 25 '24 12:02 BLeeEZ

This feature can be tested in v1.2.0 (1). It is now available as Beta via TestFlight: https://github.com/BLeeEZ/amperfy/issues/25

BLeeEZ avatar Mar 14 '24 16:03 BLeeEZ