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

keyboard shortcuts for bullets/numbers/indent #1473

Closed
dae opened this issue Nov 2, 2021 · 7 comments · Fixed by #1546
Closed

keyboard shortcuts for bullets/numbers/indent #1473

dae opened this issue Nov 2, 2021 · 7 comments · Fixed by #1546

Comments

@dae
Copy link
Member

dae commented Nov 2, 2021

https://forums.ankiweb.net/t/shortcuts-for-starting-bulleted-numbered-list-increasing-decreasing-indent/14572

@kleinerpirat
Copy link
Contributor

kleinerpirat commented Nov 2, 2021

Here's what would feel the most intuitive to me:

  • while in a list (i.e. one of the list buttons is active), Tab indents and Shift+Tab outdents the current item
    • when the first item is maximally outdented and there's no content before the list, Shift+Tab brings you to the previous field
  • Enter on an empty list item moves the cursor outside the list and deletes that empty item
    • To tab out of a field, you'd hit Enter twice to get out the list and then hit Tab to switch fields.

Everyone knows this behaviour from Word etc., and it still allows for keyboard-only editing.

@hgiesel
Copy link
Contributor

hgiesel commented Nov 2, 2021

Not sure about Tab. If at some point we allow indenting paragraphs (normal text), we'd have problems with Tab.
Another option would be to Ctrl+[ and Ctrl+].

@dae
Copy link
Member Author

dae commented Nov 3, 2021

Yeah, I'm not sure overriding tab there is the best idea. Users are used to using Tab to switch between fields, and making it behave differently depending on where the cursor is would probably cause frustration.

@jonasfagerlund
Copy link

Bear notes use:

⌘L - Unordered list
⇧⌘L - Ordered list

Might be an option.

@dae
Copy link
Member Author

dae commented Nov 19, 2021

That'll conflict with the card layout button

@TessTrella
Copy link

Is it possible to make the keyboard shortcuts configurable by the user?
If people are using Anki to study a foreign language, the more shortcuts you add, the more likely they will interfere with an existing key binding.
(For example, I just upgraded to Version ⁨2.1.49 (dc80804)⁩, and now I'm no longer able to type certain characters in French because of a conflicting shortcut.)
I'm not familiar with the codebase, so I'm not sure how difficult it would be to allow configuration of the shortcuts.

@dae
Copy link
Member Author

dae commented Nov 24, 2021

It's not trivial, but may come at one point. In the mean time the conflict will be addressed on Anki's end: https://forums.ankiweb.net/t/option-i-shortcut-conflicts-with-language-input/15206

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

Successfully merging a pull request may close this issue.

5 participants