Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Keyboard Shortcuts #23

Open
raman325 opened this issue Aug 13, 2020 · 10 comments
Open

[Feature Request] Keyboard Shortcuts #23

raman325 opened this issue Aug 13, 2020 · 10 comments
Labels
enhancement New feature or request

Comments

@raman325
Copy link

This has to be one of the best Trello clones I have seen to date, well done! I was wondering if you were planning to support Trello's keyboard shortcuts as well? https://trello.com/shortcuts

@nickbe
Copy link

nickbe commented Aug 18, 2020

It's at least an idea to think about in the future. Right now there are other priorities. But I'll add that to the list of more important suggestions right away.

@nickbe nickbe added the enhancement New feature or request label Aug 18, 2020
@svogt
Copy link

svogt commented Oct 21, 2020

Hi,
first of all, thanks for an awesome looking Trello clone.
This is the no #1 reason for me to not switch over yet. I wonder (as I'm not a JS dev, nor experienced with React) is this hard to implement or does it take much time / effort? It really seems to be a quick win as the basic "actions" are already there, they somehow "just" need to be mapped to a keyboard shortcut.

@Glokta0
Copy link

Glokta0 commented Nov 17, 2020

+1 from here :) It looks like a really neat and excellent (and secure) tool! But shortcuts make it so much more efficient (even though
I wouldn't say that Trellos shortcuts utilize their max potential).
Thanks again for creating this tool!

@nickbe
Copy link

nickbe commented Nov 17, 2020

Personally I'm against keyboard shortcuts. As far as I'm concerned shortcuts never work as expected, because most of us have system wide shortcuts already capturing keys. Example Ctrl+n is taken as default by 3 programs here. Two of them cannot be configured otherwise.

But Maks will surely decide wether it's easy to implement or not.

@svogt
Copy link

svogt commented Dec 1, 2020

Personally I'm against keyboard shortcuts. As far as I'm concerned shortcuts never work as expected, because most of us have system wide shortcuts already capturing keys. Example Ctrl+n is taken as default by 3 programs here. Two of them cannot be configured otherwise.

But Maks will surely decide wether it's easy to implement or not.

Well, have you checked Trellos shortcuts? They work without any prefix, just normal letters and you can navigate through cards or hover with the mouse over the card. I don't see how those could conflict with any system wide shortcuts... They only work if you have focus on the current browser tab.

Other webtools like Gerrit or Discourse do it the same...

@GrahamJenkins
Copy link

Hey, checking out this project. First off, wow, it looks uncannily like Trello :-D I'm a long time user but have been looking for self hosted alternatives. I'm planning on launching this to give it a shot. Good work so far!

I wanted to add my +1 to keyboard shortcuts. I took a look at the demo and it's pretty nice. However, when I reached for my commonly used shortcuts, they were sadly missing. I would love to see this feature added when able. That said, while I don't develop in React, I might be able to hack together some of the functionality in the future. Any pointers welcome!

I will update this issue if/when I (or one of my devs) start development.

@GrahamJenkins
Copy link

Update: I am starting to use Planka for personal/business use. While development has not started, I'm trying to assign some "free" developer time towards implementing at least a barebones functionality for this.
Fork: https://github.com/TheGeekyNinja/planka
@nickbe is there anyone that you know who could point us in the right direction/preferred method to implement:

  1. Single key, event handle
  2. Card manipulation functions

The preferred solution would probably go something like this:

  1. Track a cardID whenever one is hovered over. Set it to null on blur
  2. Define a shortcuts object that maps keycodes to functions
  3. Functions to handle each keyboard shortcut
  4. Event handler

To be clear, I have not jumped into the code, and I have no clue when the team will have time/if it will happen yet. But this is something that I personally will put funding into to make happen.

@meltyshev
Copy link
Member

Hi @GrahamJenkins!

Planka uses react-beautiful-dnd for drag & drop and it looks like it already has keyboard events support: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/about/accessibility.md (but this is only for moving cards). Probably have to try to turn them on somehow or fix them if they don't work properly.

For custom shortcuts I would suggest to add a component (for example BoardShortcuts), listen events there (with some shortcuts hook) and trigger redux actions. Of course a hovered card should be stored in the redux state, perhaps in the Board model.

If you need help, you can contact me anytime via Telegram.

@GrahamJenkins
Copy link

Hi @GrahamJenkins!

Planka uses react-beautiful-dnd for drag & drop and it looks like it already has keyboard events support: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/about/accessibility.md (but this is only for moving cards). Probably have to try to turn them on somehow or fix them if they don't work properly.

For custom shortcuts I would suggest to add a component (for example BoardShortcuts), listen events there (with some shortcuts hook) and trigger redux actions. Of course a hovered card should be stored in the redux state, perhaps in the Board model.

If you need help, you can contact me anytime via Telegram.

Thanks for the info, sent you a short book on Telegram, but having some devs take a crack at this right now, will report back when we have something to share.

@ctheune
Copy link

ctheune commented Apr 2, 2024

I'm currently giving Planka a look as I'm really missing trello. The Trello keyboard shortcuts are definitely a big thing that I'm missing right away regarding smoothness of workflows.

The biggest one I'm missing is to hover over a card and:

  • use c to archive the card, and
  • press 1-6 to toggle the various labels
  • use a to assign the card someone

When doing large board cleanups this is a big big help to avoid massive click orgies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants