Damien Elmes
0acf9b38a4
support rtl text in sort field in browser
2018-08-08 10:39:54 +10:00
Damien Elmes
9c85e17628
Merge pull request #245 from glutanimate/fix-findreplace-showinfo-focus
...
Set showInfo parent explicitly in in browser find and replace
2018-07-26 16:31:13 +10:00
Damien Elmes
5f9a8f7960
Merge pull request #244 from glutanimate/fix-togglefield-reset
...
Make sure to end model reset when prematurely returning from toggleField
2018-07-26 16:25:01 +10:00
Glutanimate
7ea02d5ea9
Set showInfo parent explicitly in in browser find and replace
...
Fixes an issue where focus would be passed over to mw after longer
find and replace processing times.
2018-07-25 12:00:08 +02:00
Glutanimate
308c23fcba
Make sure to end model reset when prematurely returning from toggleField
...
Fixes an issue where Anki would stall after trying to remove the
last browser column.
2018-07-25 11:52:21 +02:00
Glutanimate
da42ae7396
Add a hook to browser.onContextMenu for add-on authors
...
This will grant add-on authors more flexibility in implementing
custom context menu actions.
2018-07-25 11:40:49 +02:00
Damien Elmes
b599b6b26c
select current card when browser opened
...
https://anki.tenderapp.com/discussions/beta-testing/1208-no-way-to-know-which-card-im-seeing-anymore
2018-07-23 12:50:10 +10:00
Damien Elmes
475e2ab398
leave space after deck:current
...
https://anki.tenderapp.com/discussions/ankidesktop/28662-add-space-after-deckcurrent
2018-07-23 11:01:21 +10:00
Damien Elmes
6669f1ba10
fix card info dialog size not being remembered
2018-06-25 11:56:27 +10:00
Damien Elmes
1b20dc3311
fix field getting overwritten when showing duplicates
2018-04-30 14:51:28 +10:00
Damien Elmes
c87b9be73a
ignore delete key if card list is not focused
...
https://anki.tenderapp.com/discussions/beta-testing/1004-ctrl-delete-erases-my-cards
2018-03-01 13:31:52 +10:00
Damien Elmes
a617be1779
prevent find duplicates scrolling to top on link click
2018-02-03 17:11:32 +10:00
Damien Elmes
118326df1e
remove format literals so we can support python 3.5
2018-01-16 16:07:30 +10:00
Damien Elmes
405cea6a60
add context menu to browser
2017-12-14 14:49:51 +10:00
Damien Elmes
7981db1466
more raw string literals
2017-12-13 14:34:54 +10:00
Damien Elmes
bc65baeff7
cgi.escape is deprecated
2017-12-11 16:20:00 +10:00
Damien Elmes
c451141f97
play question audio when preview set to 'show both sides'
2017-12-04 12:45:22 +10:00
Damien Elmes
fcccf12ba6
night mode
2017-12-04 12:20:56 +10:00
Damien Elmes
5bd2e10f3c
close preview window on collection close
2017-09-08 19:44:13 +10:00
Damien Elmes
35923630bf
make sure we update preview buttons at after state determined
...
fixes duplicate calls and inability to reveal answer of last card
2017-09-08 19:43:35 +10:00
Damien Elmes
38688ef8ef
prepareQA hook
...
see updated docs on https://apps.ankiweb.net/docs/addons21.html
2017-09-06 13:02:00 +10:00
Damien Elmes
27b42fcac9
use readable name instead of mid in browser searches
...
mid should no longer be required now that note type names are made
unique
2017-09-02 16:15:01 +10:00
Damien Elmes
a0afec9938
escape ideographic space
2017-09-02 16:10:19 +10:00
Damien Elmes
3b79204924
update self.card on multiple selection
...
fixes
https://anki.tenderapp.com/discussions/beta-testing/713-anki-210-beta-13#comment_43315776
2017-08-31 20:38:12 +10:00
Glutanimate
fc59fab967
Assign "both sides" toggle to hotkey, refresh preview on toggle
2017-08-29 16:41:01 +02:00
Damien Elmes
29d6d93881
option for showing both sides in preview screen
2017-08-28 22:16:05 +10:00
Damien Elmes
b28eb4fba6
add collection/deck shortcuts, refresh when saved changes
2017-08-28 21:43:44 +10:00
Damien Elmes
4467b7c991
restore marking support
...
maybe multiple mark types would make sense in the future, but for now
let's stick to what will work in the older clients
2017-08-16 20:30:29 +10:00
Damien Elmes
8ab5a3a176
use callback when closing windows
...
remove the old forceClose hack in favour of a callback when closing, so
all windows have a chance to save properly before the collection is
unloaded
also:
- fix a warning shown when opening about screen
- require a call to editor.cleanup() when closing a window, to make sure
any pending js callbacks don't try to fire on a deleted object
- make sure we gc webview when closing editcurrent
- main.py still needs refactoring to make use of the change
2017-08-16 12:48:15 +10:00
Damien Elmes
265bef2b68
likewise for manage note types
2017-08-15 18:49:41 +10:00
Damien Elmes
29dc4f298a
add 'clear unused tags' back to menu
...
users who only use the sidebar may miss it
2017-08-15 18:48:22 +10:00
Damien Elmes
b558712976
filter menu tweaks
...
- make the chunking and menu code more generic
- decks and note types now chunk menus too
- chunked menu now shows start and end prefix
2017-08-15 18:41:36 +10:00
Damien Elmes
1b53ad4555
dock tweaks
...
- add frame to tree because dock widget has no frame on Windows, looking
odd
- remove the title bar
2017-08-15 15:19:22 +10:00
Damien Elmes
f693edb328
make sure dock widget doesn't start out floating
2017-08-15 14:54:13 +10:00
Damien Elmes
a16aa73d6e
switch to svg images for better hidpi rendering
2017-08-15 13:54:58 +10:00
Damien Elmes
44c764b895
fix sidebar showing, tweak icons
2017-08-14 16:57:43 +10:00
Damien Elmes
c8127ee606
hideable sidebar
...
- rely on restoreGeom() to preserve visibility
- case-insensitive sort on tags
2017-08-13 19:11:40 +10:00
Damien Elmes
71101d041a
ditch marked tag in favour of card flags
...
Users can now mark individual cards with one of four different coloured
flags, instead of relying on a tag that applied to the whole note.
- replaced marking functionality in reviewer and browser with new
flag options
- added flag:x search
- marked and leech tags now show in normal tag list in filter screen,
instead of being treated specially
- the other clients will need updating to set and shown the flags, but
flags set in the beta should be preserved by the other clients
2017-08-12 16:08:10 +10:00
Damien Elmes
3014839d29
browser -> browse
2017-08-11 22:04:06 +10:00
Damien Elmes
ba16b8714b
remove images and move away from qt resources
...
- the bulk of image use is in webviews, so we move almost all used
images to web/imgs, as it's easier to manage
- change AnkiWebView to always use the local media server as a base, as
much of the UI has come to depend on it
- remove images from a few areas, as they felt dated
- delete a bunch of unused images
- href=# links were being opened in a browser window, so the code now
ignores them - the HTML should really be updated to return false in the
onclick handler
- update a few icons
2017-08-11 20:59:43 +10:00
Damien Elmes
2415611450
remove sidebar in browser
...
use a pop-up menu instead, which saves a lot of screen real estate and
should be more intuitive for new users
also:
- add options to manage note types and clear unused tags in the relevant
submenus
- shuffle a few shortcut keys
- remove the old favourites code - saving and removing now done via the
menu
- individual card templates now searchable
2017-08-11 19:10:39 +10:00
Damien Elmes
6c765d7302
remove toolbar in browser in favour of menu items
2017-08-11 14:40:51 +10:00
Damien Elmes
55b782581d
global reviewer override, fix fading in previewer/clayout
...
you can use the debug console to define custom html/css/js to be added
to the bottom of the reviewer on all note types, so to increase the fade
time on the question you'd use
mw.col.conf["reviewExtra"]="<script>qFade=500;</script>"
mw.col.setMod()
also make sure the fading for question/answer is used correctly in
previewer, and use answer fading in clayout to speed it up
2017-08-10 21:39:04 +10:00
Damien Elmes
85d4511766
hide sound tags in preview screen
2017-08-10 21:11:38 +10:00
Damien Elmes
9af28b7159
proper fix for preview window's 'please select 1 card' message
...
setting self.card to None caused the following:
https://anki.tenderapp.com/discussions/beta-testing/661-anki-210-beta-7#comment_43180378
2017-08-10 19:32:19 +10:00
Damien Elmes
f3f90842dc
move the inline css and some more js into separate files
...
- stdHtml() css= arg now takes a list of files like js=
- the files are loaded in the head of the document so that styling
that comes later in the document can easily override it
fixes:
https://anki.tenderapp.com/discussions/beta-testing/661-anki-210-beta-7/page/1#comment_43164447
https://anki.tenderapp.com/discussions/beta-testing/661-anki-210-beta-7#comment_43177130
2017-08-10 19:02:32 +10:00
Damien Elmes
c668efa4b4
work around adjustHeightToFit() crashing on Linux
2017-08-10 15:03:05 +10:00
Damien Elmes
4dae8ef661
make sure we adjust browser toolbar height
2017-08-10 14:36:55 +10:00
Damien Elmes
016338fa07
delete preview timer ref
2017-08-08 20:02:37 +10:00
Damien Elmes
23f8e15816
give the preview window the same treatment
...
different approach to timer handling so that it's more responsive when
the user clicks a navigation button
2017-08-08 16:28:53 +10:00