Skip to content

Allow to open the same window multiple time (browsers, adding note, etc...)

License

Notifications You must be signed in to change notification settings

Arthur-Milchior/anki-Multiple-Windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open multiple instances of the same window

Rationale

May be you want to have a "add" window for each type of Note, so you won't have to regularly change note type.

Maybe you want to see simultaneusly the result of multiple searchs in the browser.

May be you started a note. Then you have an idea for another note, but don't want to submit the first note already. Thus you need to note adders.

May be you want to see multiple time the about window (even if I must confess I don't understand why you would want that). Anyway, this add-on allow you to open most windows multiple time.

Usage

To open a new window of a kind, just do what you need to open the window.

If you want that some kind of window is opened only once, read section "configuration".

Advice

Add Cards

Currently, when you change the note type of an «add cards» windows, all types are changed. In order to fight this undesired behavior, you should also install Add-On number 424778276

Browser's column

The list of column used in the browser are saved when the browser closed. It means that when you open a browser, it will have the same column as the last browser window you closed. So:

  1. if you care about which column you have, pay attention to the order in which you close your window. Be sure that the last browser closed is the one you want to save
  2. If you want that all browsers have the same columns, put those columns, close the browser, and then open as many browser as you want.

I do realize that this rule is a little strange; it was created assuming there is a single browser, and I prefer not to change it.

Warnings

It may be the case that when you change the configuration about a window which is already opened, you'll see a message error. It should not create real trouble. Please report otherwise.

Internal

This may only works with windows which uses aqt's dialog manager. In general, they are big windows, whose have no direct effect on the window calling it. I.e. it won't work with a prompt asking you to confirm/cancel something, or to say «ok». It should work with the browser.

This add-on redefine:

  • aqt.__init__'s class DialogManager. More precisely, the new class inherits from the last one. When a window may be opened a single time, the former method is called.
  • aqt.editcurrent's method EditCurrent.onReset is redefined. Thus this add-on may be incompatible with other add-on changing this.

Configuration

In the map "multiple", add «, "windowName" : false», where windowName is the name of the window you want to see open only once.

The most standard windows name are:

  • AddCards
  • Browser
  • EditCurrent
  • DeckStats
  • About
  • Preferences

By default, you can't open the two last ones more than once. Because this would make no sens. You can change the configuration if for some reason you want to do it.

Version 2.0

Please use add-on Multiple 'Add' and 'Browser' Windows, with addon numbers instead.

Links, licence and credits

Key Value
Copyright Arthur Milchior [email protected]
Based on Anki code by Damien Elmes [email protected]
Requested by ijgnord on reddit
Original idea by Webventure, addon number 969743069
License GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
Source in https://github.com/Arthur-Milchior/anki-Multiple-Windows
Addon number 354407385

About

Allow to open the same window multiple time (browsers, adding note, etc...)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages