Use cursor keys left/right to go through search result pages#406
Use cursor keys left/right to go through search result pages#406larsen0815 wants to merge 2 commits intojsuto:masterfrom
Conversation
|
Did it work when you tried it? |
|
No, as I said: Just a draft, needs code to get the current page number to then call navigation(). And I don't have the experience how to write that code. |
|
So, could you please provide a hint how I can get the current page number? |
|
templates/common/paging.tpl implements the pagination, it calls navigation() in assets/js/piler.js |
|
Yes, but what is the equivalent of |
|
Can you help me here? Otherwise I won't get this implemented. |
|
It's |
|
Thanks, I think I can continue with this in two weeks. |
|
Working now. The code handles not going to page 0, but doesn't handle going past the last page as I couldn't find a variable that stores the maximum page number. Doesn't show an error though, so this should be fine. |
In #381, you recently added the possibility to go through mails by cursor keys up/down. This PR should do the same for left/right: Go to the previous/next page of search results.
The user could then easily go through all mails and pages just using the cursor keys.
However, this is just a draft. I am not a web dev and ChatGPT wasn't able to create working code to detect the current page.
If you could plese tell me how to solve this, I would update the PR accordingly.