Repository navigation
Conversation
|
Why limit it to labels? Could be applied to any list popover, like Reviewers, Assignees, Project, Milestones, etc. |
|
@sindresorhus I limited it to labels because of the issue but I'm more than happy to extend it to the other lists! 👍 |
| import './features/edit-files-faster'; | ||
| import './features/update-pr-from-base-branch'; | ||
| import './features/hide-disabled-milestone-sorter'; | ||
| import './features/circular-movement-on-sidebar-lists'; |
There was a problem hiding this comment.
| import './features/circular-movement-on-sidebar-lists'; | |
| import './features/cycle-lists-with-keyboard-shortcuts'; |
| /** | ||
| * With this feature RGH will support cycled lists with keyboard support for arrow-up to navigate to the last item | ||
| * when pressed at the first one and for arrow-down to navigate to the first item when pressed at the last one | ||
| */ |
There was a problem hiding this comment.
This description can be dropped
| } | ||
|
|
||
| function init(): void { | ||
| document.addEventListener('keydown', event => { |
There was a problem hiding this comment.
This should use delegate-it like in my previous PR https://github.com/sindresorhus/refined-github/pull/1569/files (onetime is no longer needed though)
| id: 'circular-movement-on-sidebar-lists', | ||
| description: 'Circular movement with arrow-up and -down keys on sidebar lists in compare view', | ||
| include: [ | ||
| features.isCompare |
There was a problem hiding this comment.
This is the issue, it should work on a lot more pages
|
|
||
| features.add({ | ||
| id: 'circular-movement-on-sidebar-lists', | ||
| description: 'Circular movement with arrow-up and -down keys on sidebar lists in compare view', |
There was a problem hiding this comment.
| description: 'Circular movement with arrow-up and -down keys on sidebar lists in compare view', | |
| description: 'Cycle "select lists" (labels, etc) when selecting them with the `↑` and `↓` keys.', |
|
Ping on this, if you have time |
|
Feel free to reopen this if you have time to pick it up again |

This feature adds support for cycled list navigation with keyboard support when choosing labels for PRs.
The PR closes #1450 (I saw the project had an older but closed PR so I thought I could give it another try).
IssueHunt Summary
IssueHunt has been backed by the following sponsors. Become a sponsor