Giter VIP home page Giter VIP logo

anki-field-autocomplete's People

Contributors

abdnh avatar acecodes avatar anking-forrest avatar ankingmed avatar bluegreenmagick avatar clantant avatar risingorange avatar sartak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

anki-field-autocomplete's Issues

Not a real problem, but a bug.

Problem description

I just typed "" at one field and this error happens. If I close the window of the "error", just keeps it fine. Yesterday the same happened with the " symbol.
Not a real problem.

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • [x ] I've restarted Anki to see if it helps
  • [x ] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • [ x] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

2.1.47

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.47 (dc156f34) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2021-09-07 00:54:01

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 41, in cmd
File "aqt\webview.py", line 142, in _onCmd
File "aqt\webview.py", line 589, in onBridgeCmd
File "aqt\hooks_gen.py", line 4000, in call
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\511710206\webview.py", line 26, in handle_bridge_commands
if handle_autocomplete(cmd, editor):
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\511710206\webview.py", line 65, in handle_autocomplete
nids = col.find_notes(query)
File "anki\collection.py", line 503, in find_notes
File "anki_backend\generated.py", line 762, in search_notes
File "anki_backend_init
.py", line 131, in _run_command
anki.errors.SearchError:

Invalid search: ⁨the escape sequence ⁨\ ⁩ is not defined. If you want to search for a literal backslash </code>, prepend another one: \.⁩


Browser: Icon doesn't change color when enabled

Problem description

Hi! First of all, thanks for the addon! It is veeery useful!

When toggling on/off in the browser, the icon doesn't react however and remains black. Toggling works fine though and the problem only exists in the browser view, while adding a card, the icon reacts normally.

Any suggestions how to fix this?

Checklist

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

2.1.54

no new line possible with activated add-on

Problem description

  • With the activated add-on, I entered a citation that I haven’t used before into the field. At the end of the citation I tried to press Enter for a new line to enter a second citation. Nothing happens, except a no results output. Obviously the add-on takes the manually entered text (>140 characters) as a search query. One would expect that Enter is still possible as input in the field and that the add-on does not have to be deactivated first. The add-on could, for example, no longer understand the input as a search query after a certain input length and allow normal field behaviour.

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • [x ] I've restarted Anki to see if it helps
  • [x] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [x ] I've tried to disable other add-ons to see if there are any interactions present
  • [x ] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

2.1.57 (5cdfa7a6)⁩

Error message (if any)

None received

Happened again, even after update.

Happened again, even after update.

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.47 (dc156f34) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2021-09-07 00:54:01

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 41, in cmd
File "aqt\webview.py", line 142, in _onCmd
File "aqt\webview.py", line 589, in onBridgeCmd
File "aqt\hooks_gen.py", line 4000, in call
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\511710206\webview.py", line 26, in handle_bridge_commands
if handle_autocomplete(cmd, editor):
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\511710206\webview.py", line 65, in handle_autocomplete
nids = col.find_notes(query)
File "anki\collection.py", line 503, in find_notes
File "anki_backend\generated.py", line 762, in search_notes
File "anki_backend_init
.py", line 131, in _run_command
anki.errors.SearchError:

Invalid search: ⁨an opening double quote " was found, but there was no second one to close it. If you want to search for a literal ", prepend a backslash: ".⁩

I tested it with all addons disabled... This time, the symbol was ' and ". You can reproduce if you type ';" (single quote and after a double quote).
Also, the add-on really stop working, now it's a real bug

Originally posted by @gustavosmendes in #3 (comment)

No longer works on 23.12.1

Problem description

First off, thanks for the great plugin! ❤️

Sadly, it seems that it no longer works on Anki 23.12.1. I don't get any errors on start-up, but the "A" button no longer appears for fields, nor does F4 work.

Checklist

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

23.12.1

Error message (if any)

None

Pre-defined field values to choose from

Would it be possible for you to enhance this add-on so that it can use as a source fields from multiple note types or predefined list from some configuration file?

Current situation is:

"These values will be only from the exact note type and field that you're typing into."

Maybe for someone is an advantage but for other users it might be a limitation. User if wants to use this in another note type needs to first create some notes and add some values so that they can be searched for after that. Otherwise it finds nothing. With predefined values in configuration, it wouldn't be a problem anymore.

Besides when database is big it works slowly on slow computers. That is the biggest drawback.

This Idea can be done as a separate add-on if you don't want to mess with the code of this add-on.

This issue was discussed here:
https://www.reddit.com/r/Anki/comments/c4pvaf/addon_request_predefined_field_values_to_choose/

And here is the mentioned in above discussion pull request:
glutanimate/anki-addons-misc#102

Obviously, the idea of using a list in some configuration file is just a proposal. What is important for me is the end effect, which is unifying all these names used in "part of speech" field so that they are the same across different note types and decks.

Actually I can use find and replace to unify already made notes to one standard but anyway, such functionality seems to me useful.

For the record - already reported here
sartak/anki-editor-autocomplete#3

Not working on 2.1.46

Hi!

I just tested the adddon here in Anki 2.1.46, but nothing happens. I see the config options under Anking in the menubar, but nothing shows up in the add note screen.

Here is my addons list:
image

Thanks,

Display last used items first?

Is there any possibilty that the items that show up upon clicking the field displays the last used items first?
It don't see a specific order actually, or maybe this feature is available but overlooked the activating button?

thanks

Interface elements often do not show up

Problem description

  • The interface elements of the add-on are repeatedly not displayed next to the edit field for no apparent reason, regardless of whether an existing note at it’s edit view is displayed in the browser or a new note is to be added. The problem occurs again and again and cannot be reproduced by certain actions.

Checklist

  • [x] I've restarted Anki to see if it helps
  • [x ] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [x ] I've tried to disable other add-ons to see if there are any interactions present
  • [x ] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

2.1.60 (Qt5) on macOS Monterey (12.6.3)

Error message (if any)

  • none

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.