Add ability to insert clozes in note editor
Originally reported on Google Code with ID 1618
What steps will reproduce the problem?
1. Press plus symbol to insert new card
2. Change note type from basic to cloze
3. Insert text in to fields to have
What is the expected output? What do you see instead?
I don't understand how to input the clozes on my android phone, It's easy on the mac
app and ankiwed but there are no option under the menus to insert the clozes and if
i double press any words the get the android clipboard options: cut paste etc.
Does it happen again every time you repeat the steps above? Or did it
happen only one time?
yes always
What version of AnkiDroid are you using? (Decks list > menu > About > Look
at the title)
Ankidroid 2.0
On what version of Android? (Home screen > menu > About phone > Android
version)
Android version 2.3.5
If it is a crash or "Force close" and you can reproduce it, the following
would help immensely: 1) Install the "SendLog" app, 2) Reproduce the crash,
3) Immediately after, launch SendLog, 4) Attach the resulting file to this
report. That will make the bug much easier to fix.
Please provide any additional information below.
The answer to this could simply be that it's not possible to insert clozes within Ankidroid,
I'm hoping it's other wise.
Reported by talktoianobrien on 2013-01-19 17:36:19
Reported by nicolas.raoul on 2013-01-22 03:28:10
- Labels added: Type-Enhancement, Priority-High
- Labels removed: Type-Defect, Priority-Undecided
This isn't a bug. There is no button and you have to enter the text for the card in
the cloze format.
Ex:
"China is a {{c1::country}}"
Reported by Jamespkraus on 2014-06-14 15:40:38
For the usability issue, i guess changing the context action bar to add a "Cloze" action
together with the usual cut, copy, paste could work.
Reported by ospalh on 2014-07-30 09:56:52
I think this issue is the same as issue 2322 ( priority: Medium )
The only way to add a "effective" cloze card on ankidroid is follow the cloze format
indicated on:
http://ankisrs.net/docs/manual.html#cloze-deletion
Is this issue accepted?
The solution is similar to this post:
http://stackoverflow.com/questions/12995439/custom-cut-copy-action-bar-for-edittext-that-shows-text-selection-handles
Reported by zxcpoiu on 2015-04-10 10:52:26
Issue 2356 has been merged into this issue.
Reported by Houssam.Salem.Au on 2015-04-23 22:43:14
Issue 2322 has been merged into this issue.
Reported by Houssam.Salem.Au on 2015-04-23 22:43:34
Reported by Houssam.Salem.Au on 2015-04-23 22:44:20
- Status changed:
Accepted - Labels added: Priority-Medium
- Labels removed: Priority-High
PLEASE stop emailing me!
Reported by johnyabb on 2015-04-24 16:01:50
What's the status of this issue? It's a feature I'd really like to have, and I happen
to be an android developer.
Reported by lagos.tout on 2015-06-18 14:59:51
johnyabb: unclick the star button at the top of the issue if you want to be unsubscribed
lagos.tout: A simple GUI for inputting clozes would be useful. We'd definitely be interested
if you'd like to make a pull request. Perhaps before starting though, you could make
a sketch of how you think it should work?
Reported by perceptualchaos2 on 2015-06-19 01:03:37
perceptu: Ok. Should I post it on this thread?
Reported by lagos.tout on 2015-06-19 03:57:59
Maybe the forum would be better in order to engage more people
Reported by perceptualchaos2 on 2015-06-19 04:02:30
Are there any updates on the progress of implementing this feature?
@x1704e There has been no progress unfortunately. I've added the HelpWanted label to make this issue easier to find for new developers.
It will greatly make ankidroid, more independent.
In the desktop version of Anki you can use the keyboard shortcut control+shift+c to insert a new "{{c1::}}" around selected text (or just by itself if no text is selected). Is this possible on Android devices with a keyboard?
I downloaded AnkiDroid and this was the first (and only) problem I found with the app within half an hour... it's strange that this problem persists since two years now.
I'm no dev, but highlighting text and modifying it with some {{c1::}}" should definitely be possible. I have an app where you can select text, press a button named "bold", "italic" etc. and the selected part of the text gets the appropriate markup... but I guess nearly every app where you can input text and change its markup does that.
I think you can also change the context menu ("select all, copy, cut") that pops up when you select some text like this:
I think what you're looking for is TextView.setCustomSelectionActionModeCallback. This will allow you to create your own ActionMode.Callback for when the text is selected. stackoverflow
@Tj20 The issue is not that this is necessarily difficult, but that there are currently no developers who have time to work on this.
@eginhard does this need a core developer to look at it first or could anyone new the project pick it up?
I'm not an android dev, but if I would be happy to spend some time looking at this if you can give me some pointers on where to start.
Isn't this already fixed by #4606?