arrow key navigation

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
magic144
Newbie
Newbie
Posts: 29
Joined: April 6th, 2012, 9:15 am

arrow key navigation

Post 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
zoggy
Release Testers
Release Testers
Posts: 75
Joined: February 8th, 2011, 3:08 pm

Re: arrow key navigation

Post 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...
magic144
Newbie
Newbie
Posts: 29
Joined: April 6th, 2012, 9:15 am

Re: arrow key navigation

Post 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?
zoggy
Release Testers
Release Testers
Posts: 75
Joined: February 8th, 2011, 3:08 pm

Re: arrow key navigation

Post 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.
magic144
Newbie
Newbie
Posts: 29
Joined: April 6th, 2012, 9:15 am

Re: arrow key navigation

Post 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
zoggy
Release Testers
Release Testers
Posts: 75
Joined: February 8th, 2011, 3:08 pm

Re: arrow key navigation

Post 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.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: arrow key navigation

Post 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?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
zoggy
Release Testers
Release Testers
Posts: 75
Joined: February 8th, 2011, 3:08 pm

Re: arrow key navigation

Post 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)
magic144
Newbie
Newbie
Posts: 29
Joined: April 6th, 2012, 9:15 am

Re: arrow key navigation

Post 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
zoggy
Release Testers
Release Testers
Posts: 75
Joined: February 8th, 2011, 3:08 pm

Re: arrow key navigation

Post by zoggy »

sent fix to have hotkey do both history+queue for non tabbed and only active on tabbed layout.
magic144
Newbie
Newbie
Posts: 29
Joined: April 6th, 2012, 9:15 am

Re: arrow key navigation

Post by magic144 »

look forward to trying that out - thanks
magic144
Newbie
Newbie
Posts: 29
Joined: April 6th, 2012, 9:15 am

Re: arrow key navigation

Post by magic144 »

just trying 3.7.1 - arrow-key nav on non-tabbed layout
looks good so far, thanks a lot for this!
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: arrow key navigation

Post by safihre »

Great!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply