[nodebb-plugin-shortcuts] Browse NodeBB by Keyboard
-
It's done the first version with selection-mode: 0.0.2-1
I've already seen one or two tiny issues I'll have to fix the days, so please be patient
Now you can browse NodeBB nearly without your ... sadly only on boards that have this plugin enabled...Did I mention yet, that I'd love to see this plugin installed/enabled on this page o_O Are there any reasons why you don't use it?
Since this is a board about development there may be some other guys than me who'd like to throw away their mouse... -
I'll check it out after I get my entry in
-
@julian Nope, I mostly use Alt-combinations because of the same reason
It's a bit sad that Fx uses some Alt-combinations too, but I didn't test quite much within Fx, just general compatibility since @a_5mith noticed that it didn't work at all ^^
Here you have a full list of combinations currently used (human readable behind # signs):dialog: confirm: ['89', '79', '90'] # y, o, z close: ['78', '67', '27'] # n, c, Esc composer: send: ['A-83'] # A-s discard: ['A-68', 'S-27'] # A-d, S-Esc title: ['A-S-84'] # A-S-t preview: ['A-80'] # A-p previewSend: ['C-13'] # C-Enter writeSend: ['C-S-13'] # C-S-Enter help: ['A-72'] # A-h write: ['A-87'] # A-w bold: ['A-66'] # A-b italic: ['A-73'] # A-i list: ['A-76'] # A-l link: ['A-85'] # A-u closed: select: ['73', 'C-73', 'A-S-73'] # i, C-i, A-S-i taskbar: closeAll: ['A-67', 'A-88'] # A-c, A-x clickFirst: ['A-86'] # A-v clickLast: ['A-S-86'] # A-S-v breadcrumb: up: ['A-38'] # A-Up topic: reply: ['A-89', 'A-S-78', 'A-13'] # A-y, A-S-n, A-Enter threadTools: ['A-84'] # A-t category: newTopic: ['A-89', 'A-S-78', 'A-13'] # A-y, A-S-n, A-Enter selection: follow: ['13', '32'] # Enter, Space highlight: ['S-72'] # S-h area: next: ['S-74'] # S-j prev: ['S-75'] # S-k item: next: ['74'] # j prev: ['75'] # k navPills: next: ['76'] # l prev: ['72'] # h header: home: ['A-72', 'A-S-72'] # A-h, A-S-h unread: ['A-85', 'A-S-85'] # A-u, A-S-u recent: ['A-82', 'A-S-82'] # A-r, A-S-r popular: ['A-80', 'A-S-80'] # A-p, A-S-p users: ['A-83', 'A-S-83'] # A-s, A-S-s notifications: ['A-78', 'A-S-78'] # A-n, A-S-n chats: ['A-67', 'A-S-67'] # A-c, A-S-c profile: ['A-79', 'A-S-79'] # A-o, A-S-o body: focus: ['S-221', '27'] # S-], Esc scroll: pageDown: ['68'] # d pageUp: ['85'] # u top: ['84'] # t bottom: ['66'] # b
If I haven't missed anything the only Ctrl combinations should be C-i, C-Enter, C-S-Enter
-
And hard-coded
?
to show help -
woah that's a lot of key combinations! you really did quite a lot of work there
One thing I hate as an FF user is
alt-d
being re-routed... because I have a habit of using that to focus the address bar (instead ofctrl-L
- don't ask me why). I noticed you've re-routed alt-d for discard - does the key combination still do the expected behavior as long as the composer isn't open? If so then that's good enough for me -
@psychobunny Dammit, and I got confused for quite a bit of time why the address bar gets focused every time I discard ^^ Will have to add some
preventDefault
s...
To answer your question: it'll be so when I'm done with the prevents -
haha alright, looking forward to trying it out
-
Updated to 0.0.2-3: if anything is done by the actions the default-events get prevented now.
EDIT: Updated to 0.0.2-7: Added configuration (only selection-color configurable currently :P) -
@psychobunny said:
One thing I hate as an FF user is
alt-d
being re-routed... because I have a habit of using that to focus the address bar (instead ofctrl-L
- don't ask me why).God damnit @psychobunny, everyone knows legit programmers use F6 to access the address bar
-
@frissdiegurke Installed here, and wow, this is nice. First thing I tried was
hjkl
, so I'm glad those are implementedOne bug -- when I hit
?
to bring up the help, I can't use the keyboard to scroll itOtherwise really nice! Especially as I am on my laptop right now, and have no mouse
-
@julian said:
@frissdiegurke Installed here, and wow, this is nice. First thing I tried was
hjkl
, so I'm glad those are implementedOne bug -- when I hit
?
to bring up the help, I can't use the keyboard to scroll itOtherwise really nice! Especially as I am on my laptop right now, and have no mouse
Fixed. Maybe it was not the best idea to add an own scroll-area to the bootbox ^^
-
Actions are now customizable
EDIT: shortcuts, not actions
Will do some changes on the Settings-framework I've done and then I'll send you a pull-request to add into core -
Customizable actions? Congratulations you've won plugin weekend rofl
-
@psychobunny XD, I've coded for to long, I ment shortcuts ^^
-
haha yeah I figured
Retiring this and linking it to your repo
https://github.com/psychobunny/nodebb-plugin-mousetrap -
@frissdiegurke said:
Fixed. Maybe it was not the best idea to add an own scroll-area to the bootbox ^^
Ah, I remember why I did that:
within Vanilla theme there is no scrolling otherwise, it gets cut off by screen height @psychobunny could you fix that please? -
Sorry @frissdiegurke what do you mean?
-