Soundux icon indicating copy to clipboard operation
Soundux copied to clipboard

Manually sort sound clips / Pinned sort

Open thomasfinstad opened this issue 4 years ago • 6 comments

Is your feature request related to a problem? Please describe. It is nice to have the sounds sorted in the same order as the hotkeys that trigger them, with modifed or alphabetical sort any added sounds or accidental modification of them resorts them and you have to assign all the hotkeys in the correct order again.

Describe the solution you'd like If we can manually sort the clips either by typing which place they should be in or drag/drop them around to order them they would be much more natural to trigger with keys that match the sound order.

Describe alternatives you've considered Reassigning all hotkeys when the sort order no longer matches the layout of the keys on the keyboard, makes it impossible to remember which keys trigger which sound

Desktop (please complete the following information):

  • Environment: Flathub

thomasfinstad avatar May 09 '21 12:05 thomasfinstad

@Curve add a backend function sortSounds(tabId: number, soundIds: number[]) (similar to sortTabs) Then it should be pretty easy for me to implement it

D3SOX avatar May 09 '21 12:05 D3SOX

@Curve add a backend function sortSounds(tabId: number, soundIds: number[]) (similar to sortTabs) Then it should be pretty easy for me to implement it

Alright, I'll do.

Also should we add something like this to lower overhead:

  1. Tab has Property enum SortMode
  2. Everytime you sort the tabs I adjust the sortMode and you send me the way the sounds should be sorted, so that I can adjust them once, this would have the benefit that you wouldn't have to sort them everytime?

That way tabs could be sorted individually too, we could have two different sort modes then, one global and one individual - does that sound like a good idea or would that be rather useless / too much effort?

Curve avatar May 09 '21 12:05 Curve

Haven't thought about that. I would just make the sortMode individually per tab with modified descending as default.

D3SOX avatar May 09 '21 12:05 D3SOX

Sounds like a good idea, this would probably also lower the overhead of sorting by quite a bit

Curve avatar May 09 '21 12:05 Curve

@all-contributors please add @thomasfinstad for ideas

D3SOX avatar May 11 '21 18:05 D3SOX

@D3SOX

I've put up a pull request to add @thomasfinstad! :tada:

allcontributors[bot] avatar May 11 '21 18:05 allcontributors[bot]