Git Product home page Git Product logo

blitzkrieg's People

Contributors

lovac42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

blitzkrieg's Issues

Feature Request : move card to other deck by drag and drop

in the browse mode, is much more convinent making it possible drag and drop the left panel item due to your add-ons. it is fantastic. I am really thankful to you.

Like that,
moving the card by drag and drop could be possible?
I just thought of it. and i really need this.

.37 failed. And how do I get around.

Hello, how are you!?
I know that the addon was designed for an earlier version (at least that's what I understood with my google translator english), maybe for this reason it is generating the error below when opening the panel in version .37 (because there was no no other addon installed to generate conflict and I want to believe that I didn’t shit in some configuration).

Anki 2.1.37 (6d596c8f) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-12-17 10:21:28

Caught exception:
Traceback (most recent call last):
  File "aqt\progress.py", line 52, in handler
  File "aqt\browser.py", line 1066, in deferredDisplay
  File "C:\Users\thereArePyramidsInBosnia\AppData\Roaming\Anki2\addons21\564851917\main.py", line 55, in replace_buildTree
    decksTree(self,root)
  File "C:\Users\thereArePyramidsInBosnia\AppData\Roaming\Anki2\addons21\564851917\tree.py", line 164, in decksTree
    expanded=tree.node_state.get("group").get('deck',True)
AttributeError: 'NewSidebarTreeView' object has no attribute 'node_state'

However, all Blitzkrieg functions run perfectly when I click on the panel holding the "Shift" key. (At least I haven't noticed any errors yet.)

Note: The shift key is pressed when clicking on the panel, not when starting the application. I imagined, when using shift on the panel, addons that change characteristics of this part would not be loaded, however the functions worked without the error.

See you! Thanks for the tool! It's too useful!

Browser Freezing

Hello
My browser freezes and throws an error when I click on a specific tag with large amount of notes (~48000) as shown in the gif below
2020-01-29_20-30-31

However, clicking a tag with fewer notes (~803) and then clicking the last one works fine

2020-01-29_20-31-05

Debug info:
Anki 2.1.20 (23f13a31) Python 3.8.0 Qt 5.14.0 PyQt 5.13.2
Platform: Windows 10
Flags: frz=True ao=True sv=2

Caught exception:
Traceback (most recent call last):
File "aqt\progress.py", line 73, in handler
File "aqt\browser.py", line 755, in _onSearchActivated
File "aqt\browser.py", line 766, in search
File "aqt\browser.py", line 168, in search
File "aqt\browser.py", line 189, in endReset
File "aqt\progress.py", line 163, in finish
File "aqt\progress.py", line 197, in _closeWin
AttributeError: 'NoneType' object has no attribute 'cancel'

anki v2.1.15 and Blitzkrieg v0.1.3 do not work well together.

Anki Version 2.1.15 (442df9d6)
(Qt 5.12.1 PyQt 5.11.3)
and
"Blitzkrieg II - Advanced Browser Sidebar [BETA4]" v0.0.4 work fine together.

After update to Blitzkrieg v0.1.3 I heve got the following error:
error

(If I upgrade to Anki v2.1.19, the Anki does not start.)

Addon not processing some cards

Dragging the tags in the following cards has no effect.
Browser's selection.zip

Trying to convert them to decks throws the following error
Anki 2.1.15 (442df9d6) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=True sv=2

Caught exception:
File "C:\Users\John Smith\AppData\Roaming\Anki2\addons21\564851917\sidebar21.py", line 237, in
self._onTreeItemAction(item,"Convert",self._onTreeTag2Deck))
File "C:\Users\John Smith\AppData\Roaming\Anki2\addons21\564851917\sidebar21.py", line 271, in _onTreeItemAction
callback(item)
File "C:\Users\John Smith\AppData\Roaming\Anki2\addons21\564851917\sidebar21.py", line 406, in _onTreeTag2Deck
tag2Deck(tag)
File "C:\Users\John Smith\AppData\Roaming\Anki2\addons21\564851917\sidebar21.py", line 386, in tag2Deck
cids = f.findCards("tag:"+tag)
File "anki\find.py", line 43, in findCards
<class 'Exception'>: invalidSearch

Uppercase – lowercase sorting

This is one of the most universally applicable add-ons and adds a lot of functionality.

I used to employ uppercase tags for subject-matter distinctions (e.g. "Economics", "Politics", "Languages::Legalese") and lowercase tags for more work-in-process related tags (e.g. "add", "redact", "leech").
In the sidebar, vanilla Anki sorts all lowercase tags behind all uppercase tags.

I would be grateful if there was an option to reenable this behaviour with Blitzkrieg.

Blitzkrieg turning off by itself.

I installed blitzkrieg on anki 2.1.26(I know,not supported yet). It works fine,but everytime I exit anki and then restart anki,it turns off and refuses to turn on. Is there any way to not have it turn off?

Feature request

It would be awesome if you made a version or an option that did not mess with tags so that better tags could continue to be used, but did allow you to change the color and edit the other sidebar items like the decks and flags etc.

why commit 8a60110 (improved zip packer security)?

This not an "issue" but I'm curious. How does the commit 8a60110 which removes from .main import * from your __init__.py and adds echo from .main import * >>%REPO%/__init__.py to your build script improve the security? A short hint would be great. Thanks.

Cards not being counted by Clozes

I am on anki 2.1.35, and Blitzkrieg add on causes some of my cards to be counted by the actual number of cards rather than the number of clozes. Is there a way I can fix this or revert to an earlier version of anki that will fix this without the add on? I have tried everything I know how to do.

iconFromRef() deprecated

When I run anki 2.1.20 in a terminal with your addon and open the browser I get "iconFromRef() deprecated" many times over in my terminal.

 

Background:

 

my fix:

change one line in patch_sidebar.py from

return QVariant(self.iconFromRef(item.icon))

to

return QVariant(theme_manager.icon_from_resources(item.icon))

and put from aqt.theme import theme_manager to the top. So far I haven't noticed a problem.

 

my debug info :

Anki 2.1.20 (47a1bf8b) Python 3.8.1 Qt 5.14.1 PyQt 5.14.1
Platform: Linux
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-02-18 19:36:49


===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Blitzkrieg II - Advanced Browser Sidebar BETA6 ['564851917', 2020-02-03T19:54, 'None', '']

===IDs of active AnkiWeb add-ons===
564851917

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

Finally: Thank you very much for sharing this add-on.

missing "leech" tag in 2.1

First of all: Thanks for this great add-on.

Blitzkrieg seems to remove the leech tag from the sidebar.

You have at tree.py#L79:

for t in TAGS:
    if t.lower() == "marked" or t.lower() == "leech":
        continue

The same if-loop was in the method aqt.Browser.browser._userTagTree for 2.0 since 2.0 put the marked and leech tag prominently on top.

But _userTagTree in 2.1 removed this if loop, see dae-browser.py#L883.

I think the 2.0 solution was better. Leeches are a problem so they should be more visible. As far as I see in 2.1 there's no prominent place for leeches - there's also nothing in the _cardStateFilters for the drop-down menu "Filters" next to the browser.searchEdit.lineEdit.

Incompatible with 2.1.17 beta 3

According to the beta page, "add-on authors will need to modify their code to work with the new implementation. "

Debug info:
Anki 2.1.17 (da942617) Python 3.8.0 Qt 5.14.0 PyQt 5.13.2
Platform: Windows 10
Flags: frz=True ao=True sv=2

Caught exception:
Traceback (most recent call last):
File "aqt\progress.py", line 72, in handler
File "aqt\browser.py", line 1001, in deferredDisplay
File "C:\Users\John Smith\AppData\Roaming\Anki2\addons21\564851917\main.py", line 26, in replace_buildTree
self.sidebarTree.clear()
RuntimeError: wrapped C/C++ object of type SidebarTreeView has been deleted

bug report

Anki 2.1.43 (0fbae6bc) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-06-21 20:57:26

Caught exception:
Traceback (most recent call last):
  File "aqt\progress.py", line 53, in handler
  File "C:\Users\xx299\AppData\Roaming\Anki2\addons21\564851917\patch_old_anki.py", line 32, in deferredDisplay
    root = self.buildTree()
  File "C:\Users\xx299\AppData\Roaming\Anki2\addons21\564851917\main.py", line 50, in replace_buildTree
    self._stdTree(root) #2.1.17++
AttributeError: 'AdvancedBrowser' object has no attribute '_stdTree'

in 2.36 beta build 2 the Blitzkrieg add on presents that error, Will you update for the Anki 2.36?

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.36 (e0550b60) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-11-12 12:36:08

Caught exception:
Traceback (most recent call last):
File "aqt\progress.py", line 53, in handler
File "aqt\browser.py", line 1074, in deferredDisplay
File "C:\Program Files\Anki-Portable\Anki.dados\addons21\564851917\main.py", line 55, in replace_buildTree
decksTree(self,root)
File "C:\Program Files\Anki-Portable\Anki.dados\addons21\564851917\tree.py", line 164, in decksTree
expanded=tree.node_state.get("group").get('deck',True)
AttributeError: 'NewSidebarTreeView' object has no attribute 'node_state'

Option to Show All Cards Under Parent Tag?

Hi!

I don't know if this is an intended feature or not, but I cannot see cards with multiple tags in the parent tag. For instance if my card is labeled A::B::C. I can only see the card shown when I click on C in the browser. I would like the card to show when I select both A and B tags.

Is this at all possible to configure or setup as an option?

Thank you very much!

Broken as of Anki 2.1.24 beta 5

Hi. Biltzkrieg seems to be broken as of the latest beta.
Debug info:
Anki 2.1.24 (0c5f22f4) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-04-13 09:36:47

Caught exception:
Traceback (most recent call last):
File "aqt\progress.py", line 43, in handler
File "aqt\browser.py", line 1086, in deferredDisplay
File "C:\Users\John Smith\AppData\Roaming\Anki2\addons21\564851917\main.py", line 54, in replace_buildTree
decksTree(self,root)
File "C:\Users\John Smith\AppData\Roaming\Anki2\addons21\564851917\tree.py", line 177, in decksTree
rootNode.tooltip="Total: %d decks"%browser.col.decks.count()
AttributeError: 'DeckManager' object has no attribute 'count'

Some tags disappear when addon is enabled

Hi I am having an issue with the Blitzkrieg Beta 8. Some of my tags just randomly disappear. When I disable this addon and enable Hierarchical tags, they come back. I have attached some screenshots below to show you what I mean. I am using Anki 2.1.25. It was working when I was using Anki 2.1.22. Please let me know what I can do to solve this.

With Hierarchical Tags enabled
image

With Blitzkrieg Beta 8 enabled
image

Here are all my addons
image

Blitzkrieg II - Advanced Browser Sidebar [BETA6]

I recently came across this problem where I rename the tag and then it disappears like if the name was let's say Actions_NB and then I rename it to Actions_nB
the tag then disappears completely From Anki, Please fix it...

Error undoing a deletion (CTRL+Z)

Anki 2.1.25 (898801eb) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-04-30 14:25:40

Caught exception:
Traceback (most recent call last):
File "aqt\main.py", line 992, in onUndo
File "aqt\gui_hooks.py", line 1872, in call
File "lib\site-packages\anki\hooks.py", line 583, in runHook
File "D:\Anki\Anki.2.1.data\addons21\564851917\main.py", line 76, in onRevertedState
tok in browserInstance.sidebarTree.node_state.keys():
AttributeError: 'NoneType' object has no attribute 'sidebarTree'

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.