Page 1 of 1

arrow key navigation

Posted: November 4th, 2022, 2:38 pm
by magic144
Using 3.7.0 on W10 x64

first time I've seen/heard about the history/queue arrow-key navigation

seems like you can only use it when you use Tabbed Layout (separate queue and history pages) OR switch to Tabbed and then back again
is that intentional behaviour?

if (as it seems) you do need to be in the tabbed layout, is there a shortcut key to switch between tabs? also are the existing keyboard shortcuts documented somewhere?

thanks

Re: arrow key navigation

Posted: November 6th, 2022, 1:40 pm
by zoggy
The shortcut applies to the active tab.
So when switching from tabbed to non-tabbed, whatever the last active tab was.. is what its going to work for.
When you refresh the page, then the 'queue' tab is active by default.

I did add this feature with tabbed layout in mind so the same shortcut work on whatever tab you are looking at and not changing the pagination for the other.

For non-tabbed layout, what would be ideal.... depends on the user as some may have no history but giant queue. Or no queue and giant history. Or maybe you want to just do both at the same time (chaos). Each scenario has its pro and cons depending on intent.

We could split out the shortcut where each have their own modifier:

shift+arrow keys is for queue
ctrl+arrow keys is for history

That way it doesnt matter what one is being shown, tabbed or non-tabbed. But then does cause the user to have to recall different shortcut for each. Using ctrl as a modifier does run up against some of the built in browser page navigation...

Re: arrow key navigation

Posted: November 6th, 2022, 2:13 pm
by magic144
thanks zoggy, that makes sense 👍

lastly,
is there a shortcut key to switch between tabs (or indeed switching between tabbed and non-tabbed)? also are the existing keyboard shortcuts documented somewhere?

Re: arrow key navigation

Posted: November 6th, 2022, 3:03 pm
by zoggy
just normal web browser navigation, hit tab a bunch until you get to what you want then hit enter. theres not much on shortcuts but its been talked about where we want to document it.. its a bit abnormal since these shortcuts are only part of the glitter theme.

p - toggle pause
a - show add nzb modal
c - goto config
s - show status modal (wrench popup)

then the 3.7 update:

Added shortcuts to navigate queue/history pagination:

shift+up -- first page
shift+down -- last page
shift+left -- previous page
shift+right -- next page

Limited hotkeys to shift+ to not try and mess with normal web browser navigation.

About the pagination bindings, they only apply to the active tab - which works nice on tabbed layout.
On non-tabbed layout, usually the 'active' tab is queue so the hotkeys only apply there rather than both tables at the same time.

Re: arrow key navigation

Posted: November 6th, 2022, 7:50 pm
by magic144
thanks for that detailed info

wonder if it's possible to make the default 'active' tab (in the non-tabbed layout) the History tab rather than the Queue tab, since that's normally the page that has the most to actually scroll through - don't know how difficult or desirable that is to do

Re: arrow key navigation

Posted: November 7th, 2022, 12:57 pm
by zoggy
myself, I have lengthy history and almost never have many items in my queue to even have pagination going.
So your request makes sense.. however for most people these days they have 0 history in sab because of automation by default/recommends having it set to remove items from sab once its been processed. So their history has no pagination and its the queue that generally is where they want it.

honestly i would say just use tabbed layout :) then you can control where you want the shortcut to be applied to.

Re: arrow key navigation

Posted: November 7th, 2022, 2:28 pm
by safihre
Well, we should think of something smarter zoggy :)
The default setting of Sab is not tabbed, so how can we make it behave nicely?

Re: arrow key navigation

Posted: November 8th, 2022, 12:03 am
by zoggy
imho the default should be tabbed :)

but im open to ideas of how you think we should handled non tabbed. (i said some suggestions in github)

Re: arrow key navigation

Posted: November 8th, 2022, 2:32 am
by magic144
fwiw I do like the default 'un-tabbed'/combined view, I wouldn't like that to change just for the sake of this function

Re: arrow key navigation

Posted: November 10th, 2022, 12:43 am
by zoggy
sent fix to have hotkey do both history+queue for non tabbed and only active on tabbed layout.

Re: arrow key navigation

Posted: November 10th, 2022, 5:29 am
by magic144
look forward to trying that out - thanks

Re: arrow key navigation

Posted: December 17th, 2022, 4:26 pm
by magic144
just trying 3.7.1 - arrow-key nav on non-tabbed layout
looks good so far, thanks a lot for this!

Re: arrow key navigation

Posted: December 17th, 2022, 5:04 pm
by safihre
Great!