Damien Elmes
998a3c0f7f
add Rescheduled to Today section of sidebar
...
https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/105
2021-06-05 12:55:07 +10:00
cherryblossom
462da55fd5
fix documentation links
2021-06-03 16:51:03 +10:00
Damien Elmes
d38f57cf3c
Merge pull request #1213 from RumovZ/new-flags
...
Add pink, turquoise and purple flags
2021-06-02 11:22:26 +10:00
Damien Elmes
c80e852ada
prevent error storm when browser table encounters panic
2021-06-02 11:15:39 +10:00
RumovZ
d6d712c4a7
Rename violet to pink
2021-06-01 18:14:43 +02:00
Damien Elmes
b52ac3883e
Merge pull request #1209 from RumovZ/drop-saved-search
...
Drag & drop for saved search
2021-06-01 17:50:55 +10:00
Damien Elmes
ea60b73275
fix timebox causing crash
...
When a modal was created with another window as its parent, the other
window was being returned, when it was the current window that we
actually wanted. This caused nextCard() to be called again when it
presented the timebox modal, leading to a stack overflow.
https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/71
2021-06-01 15:35:18 +10:00
RumovZ
9e56a4421b
Add violet, turquoise and purple flags
2021-05-31 12:03:30 +02:00
Damien Elmes
0b6beaa1da
remove deck protobuf from frontend
...
Like the previous change, avoid exposing the protobuf as a public API
for now. It requires more thought, and is probably better done with
either extra helper accessors like decks.name(), or via a native class.
2021-05-31 16:31:06 +10:00
RumovZ
fb9cbf9816
Make a new item the current item after refresh
2021-05-30 10:46:59 +02:00
RumovZ
bf0dbeb5f0
Skip saving search if it already exists
2021-05-30 10:11:40 +02:00
RumovZ
a989b4e8e9
Enable drop to create saved search
2021-05-30 09:30:22 +02:00
RumovZ
0297a698e8
Fix renaming of unused tag
...
Unused tags can't be renamed, but since the CollectionOp returns success
in any case, the provisionally renamed sidebar item needs to be reset.
2021-05-28 19:18:21 +02:00
RumovZ
f443058209
Prevent sidebar toolbar from folding
...
If there is little space, Qt replaces some tools of the toolbar with an
expandable menu indicated by an arrow. But this arrow is invisible in
night mode.
2021-05-28 18:09:44 +02:00
RumovZ
99bc3c698f
Fix restoring current sidebar element for cards
2021-05-28 17:46:46 +02:00
Damien Elmes
4a0758b34f
always start in first sidebar mode
...
I didn't notice anyone objecting; let's see how this is received.
https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/35
2021-05-24 14:51:21 +10:00
Damien Elmes
1f7118a8e3
config updates by the frontend now skip undo by default
2021-05-24 14:50:46 +10:00
Damien Elmes
380317d701
Merge pull request #1186 from RumovZ/ctx-actions
...
Update context action states after card op
2021-05-24 10:49:23 +10:00
RumovZ
fb8194d82a
Remove browser.oneModelNotes()
2021-05-22 19:12:03 +02:00
RumovZ
fa81437ad6
Check notetype count in browser.onChangeModel()
2021-05-22 19:11:06 +02:00
RumovZ
bb829feeac
Update context action states after card op
2021-05-22 08:35:47 +02:00
Damien Elmes
8378ecc2d9
Merge pull request #1185 from RumovZ/scrolling
...
Scroll pixels instead of columns horizontally
2021-05-22 10:59:09 +10:00
Damien Elmes
80d32dc7c8
fix find&replace searching in incorrect field
2021-05-22 10:12:14 +10:00
RumovZ
c6d95a8e3d
Scroll pixels instead of columns horizontally
2021-05-21 18:59:53 +02:00
Damien Elmes
5427668303
expose undoable config changes to frontend; refresh sidebar
...
The browser header handling still needs updating
2021-05-21 17:50:41 +10:00
Damien Elmes
ba727735bd
report changed cards when changing deck/flag
...
+ fix repeated flag shortcut not toggling
2021-05-21 16:03:05 +10:00
RumovZ
71dd8edabd
Move flags into separate module
2021-05-20 10:26:18 +02:00
RumovZ
58243fad52
Remove redundant pylint exception
2021-05-19 19:44:49 +02:00
RumovZ
1c3134e9c2
Use dataclass instead of tuple for loaded flags
2021-05-19 19:17:43 +02:00
RumovZ
316beb6f63
Use custom flag labels for browser actions
2021-05-19 11:00:02 +02:00
RumovZ
9ebdb84512
Make sidebar flags renamable
2021-05-19 10:04:40 +02:00
Damien Elmes
0767754ca6
enable redo support
...
Also:
- fix issues where the Undo action in the Browse screen was not
consistent with the main window. The existing hook signature has been
changed; from a snapshot of the add-on code from a few months ago, it
was not a hook that was being used by anyone.
- change the undo shortcut in the Browse window to match the main
window. It was different because undoing a change in the editing area
could accidentally trigger an undo of an operation, but the damage is
limited now that (most) operations can be redone. If it still proves to
be a problem, perhaps we should just always swallow ctrl+z when an
editing field is focused.
2021-05-19 15:18:39 +10:00
Damien Elmes
f4ddf90399
Merge pull request #1170 from RumovZ/fix-columns
...
Fix column issues
2021-05-18 09:24:15 +10:00
Damien Elmes
c267a1d0e1
PreviewDialog was missing from top level browser module
2021-05-18 09:10:28 +10:00
RumovZ
0ef8a2e802
Set column sizes and indicator after state change
2021-05-17 20:13:45 +02:00
RumovZ
58a18eb261
Block events when restoring headers
...
Restoring headers after switching states was triggering
_on_column_toggled(), leading to unexpected results.
2021-05-17 20:07:52 +02:00
RumovZ
6f12d48ad5
Make failed sort column change a no-op
...
The previous behaviour when a non-sortable column was clicked was to
trigger the sorting routine, which was usually a no-op, but would
reorder rows if the configured sort column was hidden.
2021-05-17 18:33:59 +02:00
Damien Elmes
2e312eb13d
update find_duplicates to use QueryOp/CollectionOp
2021-05-08 16:58:18 +10:00
Damien Elmes
db415b08e4
move query_op into operations/, and add the ability to show progress
2021-05-08 16:35:43 +10:00
Damien Elmes
34c26a8b1c
split browser dialogs into separate files
2021-05-08 15:08:45 +10:00
Damien Elmes
d8cea1385c
the find_and_replace alias is not required
...
Was only added recently, so nothing should depend on it yet.
2021-05-08 14:34:57 +10:00
Damien Elmes
9c51aa5a64
move "find duplicates" into separate file
...
As far as I'm aware, no add-ons were extending that screen, so I've
dropped the old context object and the export in browser/__init__.py
2021-05-08 14:33:43 +10:00
Damien Elmes
6dd78b0ea5
Merge pull request #1159 from hgiesel/newapproach
...
Prefer idiomatic Svelte features over dynamic components
2021-05-08 11:35:31 +10:00
Henrik Giesel
755b39b59e
Check for id when inserting dynamic elements
...
* I'm not sure it behaved, if there were multiple elements
inserted by different add-ons into the same container
2021-05-07 16:50:17 +02:00
Damien Elmes
26e9fba1f7
update docstrings for latest black
2021-05-07 18:12:56 +10:00
Damien Elmes
4242d82adf
fix find&replace
2021-05-07 14:02:40 +10:00
Henrik Giesel
8c32691d30
Fix Preview Button after changing from f-string to normal string
2021-05-07 02:12:37 +02:00
Henrik Giesel
bb2fb8e9f5
Fix ButtonDropdown
2021-05-07 02:04:44 +02:00
Henrik Giesel
dd99524ae0
Enable setting of PreviewButton and hiding of cloze button again
2021-05-07 02:04:42 +02:00
Damien Elmes
e468daa060
undoing of notetype templates
2021-04-30 17:30:48 +10:00