Comments (4)
Setting custom shortcuts keys and having multiple shortcuts for different colors will be added in the next update! I'm currently testing the new version and it will probably be uploaded within this month. (If you are impatient, you can download it already in the releases section but you'll miss out automatic updates)
However, the more complex features like text wrapping or custom classes will probably never be added.
from edit-field-during-review-cloze.
Sorry, but adding the custom classes will not be supported in the add-on as built-in. It would be quite difficult to add such various functionalities via the add-on config.
That said, the add-on exposes a lot of its functions so you should be able do this by adding a short script in your note type template:
<script>
if ( !EFDRC.myCustomScriptHasRun ){
EFDRC.myCustomScriptHasRun = True
EFDRC.registerShortcut('Ctrl+Shift+Q', () => {
EFDRC.wrap("<span class='className'>", "</span>")
})
}
</script>
Checking EFDRC.myCustomScriptHasRun
is set ensures that EFDRC.registerShortcut
is not run every time a new card is loaded.
from edit-field-during-review-cloze.
Got it, in this next release we can add customizable tags like:
<span class =" ">
or <div class =" ">
?
This would already be a great solution, because in "Custom styles (font color, background color, classes)" I would edit these tags, and in your addon I would configure the shortcuts.
from edit-field-during-review-cloze.
Thanks for the tip, I'll try.
from edit-field-during-review-cloze.
Related Issues (20)
- Modify font color HOT 2
- Bug report: undo shortcut does not work HOT 3
- A feature to change the modificator key.
- Iframe prevents changes being persistent HOT 1
- Incompatible with Anki 23.10 beta1 - Windows - Qt6 HOT 2
- Cannot set certain fields to be editable HOT 1
- After editing a card and reviewing it, Undo Review does not return me to the card. HOT 4
- Revealed hint fields are hidden again if any field is edited
- Error when pasting an image from the clipboard (Anki 23.10) HOT 2
- The plugin does not work properly in version 23.10.beat6 qt6. HOT 1
- Changes saved to both reversed cards HOT 1
- Audio keep replaying after clicking fields
- the letter s doesn't input when editing HOT 1
- Shows front side, not back side after editing back side. HOT 2
- A crown emoji pops up instead of te cloze deletion when the add-on is enabled HOT 1
- After pressing ctrl, text inside the first span moves slightly to the left. HOT 4
- Escape key to save changes [Suggestion] HOT 1
- Copy&Paste Problem HOT 2
- Stopped working on 2.1.64 Qt6 HOT 4
- Hotkey for CMD? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edit-field-during-review-cloze.