I’m experiencing an issue with tab indentation in Anki (version 25.02 038d85b1).
Problem Description:
The tab key indentation currently only works within lists
When editing regular text, pressing tab switches to the next input field instead of creating an indent
The system displays the message “Indent/unindent currently only works with lists”
Solutions Attempted:
Customizing keyboard shortcuts - unsuccessful
Attempting to modify behavior through JavaScript code - unsuccessful
Searching for relevant editor plugins - no suitable solutions found
Environment Details:
Anki Version: 25.02 (038d85b1)
Operating System: macOS
Use Case: Exporting notes from MarginNote3 to Anki
Desired Functionality: I would like to be able to use the tab key for indentation when editing regular text, rather than having it switch between fields.
Questions:
Is there a way to modify the default tab key behavior in this version of Anki?
Are there alternative keyboard shortcuts or tools that can achieve similar indentation functionality?
If direct modification isn’t possible, what are some recommended workarounds?
I appreciate any assistance or guidance the community can provide. Thank you in advance for your help!
The primary focus of this post is specifically about the tab indentation functionality, and I’ve included the software version and all attempted solutions for clarity. Please let me know if any other details would be helpful in resolving this issue.
Thank you for your response and suggestions. I followed the links you provided and installed the plugin developed by glutanimate (https://ankiweb.net/shared/info/295889520). However, I’ve encountered some additional issues:
While the plugin does provide indentation functionality, it only works through button clicks
The keyboard shortcuts mentioned in the plugin documentation aren’t working on my system (macOS)
I still cannot achieve direct indentation using the Tab key
I believe that Anki, as a mature editor, should provide more flexible user customization options, such as allowing users to configure the behavior of the Tab key (switching between fields vs. text indentation). This would enable users to choose the most suitable method based on their personal preferences and workflows.
Are there any other plugins or solutions available that might achieve this functionality?
It doesn’t only work with button clicks. You should read Configuration from the addon website I provided above. E.g. you can change it to ctrl+l and it will work.
Regarding Tab: I’m not sure if this is possible without modifying ankis code. I’m surprised this even works for you:
It shouldn’t work – the default is Ctrl+Shift+.. If you managed to change it with something like the addon that @Hossein provided, then the same config should work for the addon I mentioned too.
I’ve created a small add-on that enables indentation with the Tab and outdentation with Shift + Tab. I’ve uploaded it to a GitHub Gist—you can download it by clicking the Download ZIP button. Inside the archive, you’ll find the indent_with_tab.ankiaddon file, which you can install to try it out. Hope this helps!