Commit Graph

10591 Commits

Author SHA1 Message Date
Damien Elmes
19f62e8d41 require consecutive match when filtering (#786) 2013-05-23 14:38:47 +09:00
Damien Elmes
d74338b6e9 allow font sizes > 20 in browser (#492) 2013-05-23 14:12:04 +09:00
Damien Elmes
eb1793ba38 send old backups to trash as well 2013-05-23 14:04:40 +09:00
Damien Elmes
aa0cac1ed3 send to trash when deleting profile 2013-05-23 14:03:21 +09:00
Damien Elmes
2655dcf649 move unused media to trash too 2013-05-23 13:42:31 +09:00
Damien Elmes
97a342ae23 when media deleted during sync, move to trash instead of deleting 2013-05-23 13:38:51 +09:00
Damien Elmes
ecf9776f90 add a hack to prevent double newlines when deleting formatting
prior to this change, if you entered an empty field, turned on bold,
typed some text, and then backspaced over the text, it would expand
to two lines and the formatting would not go away
2013-05-23 12:31:49 +09:00
Damien Elmes
34b7eaf4c9 replace implicit styling at the top, and catch style missing case 2013-05-23 12:00:28 +09:00
Damien Elmes
b1ae088042 can't assign tuple to bs attrs without breaking later code 2013-05-23 11:37:14 +09:00
Damien Elmes
6eada1e7c4 don't hide hr in preview when not type answer card 2013-05-23 11:11:25 +09:00
Damien Elmes
56b0908bb1 fix dialog size issue in deckconf 2013-05-23 11:09:54 +09:00
Damien Elmes
d72fb35825 need to order cards after import for sibling spacing (#464) 2013-05-22 13:16:12 +09:00
Damien Elmes
41d7f716bb profile name in title bar 2013-05-22 13:04:45 +09:00
Damien Elmes
04b010a6d1 make sure we focus first field when adding next note (#605) 2013-05-22 12:54:29 +09:00
Damien Elmes
e61e849e09 Merge branch 'findhook' 2013-05-22 12:35:05 +09:00
Damien Elmes
ce1199e9cb Merge branch 'addhook-search' of git://github.com/valgaav/anki into findhook
Conflicts:
	anki/find.py
2013-05-22 12:34:21 +09:00
Damien Elmes
ddc01ad8e8 log deletions in text file 2013-05-22 12:27:37 +09:00
Damien Elmes
30507d9e29 when enter hit, close completer and don't complete (#763) 2013-05-22 12:03:30 +09:00
Damien Elmes
eb3df9a067 if add selected when card is filtered, use home deck as default (#748) 2013-05-22 11:51:42 +09:00
Damien Elmes
ad1e2a0291 add warning when over 25 decks 2013-05-22 11:44:18 +09:00
Damien Elmes
8594c65510 treat preview window as a separate main window 2013-05-22 10:08:39 +09:00
Damien Elmes
d44348ea47 remove broken accelerator from preview button; add tooltip 2013-05-22 10:04:34 +09:00
Damien Elmes
4f073f0b85 fix upgrading of latex references 2013-05-22 09:46:09 +09:00
Damien Elmes
918694a096 more media regexp fixes
- split quoted and unquoted image case into separate regexps, since we can't
  include a group reference inside a character set
- disallow spaces in the non-quoted case
- this should fix matching on images with other attributes again
2013-05-22 09:45:58 +09:00
Damien Elmes
35764757eb we shouldn't quote when adding media
- utf8/unicode is valid in the src string, provided we escape quotes
- and we escape when setting fields in the editor, leading to double escaping
  if we do that
- and we strip quotes when adding
2013-05-22 09:19:33 +09:00
Damien Elmes
26f513a7a7 strip all non-src elements when copying&pasting images between fields 2013-05-22 09:09:50 +09:00
Damien Elmes
81b4e521cc fix float issue in stats
[Beta Testing #23]
2013-05-22 08:56:15 +09:00
Damien Elmes
ea2dfaf59c more exporting fixes
- make sure we default to last saved export location
- make sure we filter out backslash
- use fname not initial_path, because we're not passing in a path
2013-05-21 11:53:02 +09:00
Damien Elmes
246bd27eb3 Merge pull request #29 from hans/patch/618
default to deckname.apkg on single deck export (#618)
2013-05-20 18:15:21 -07:00
Damien Elmes
35563bebc2 Merge pull request #30 from hoelzro/master
Add editFocusGained hook
2013-05-20 18:14:15 -07:00
Rob Hoelz
822e93c1d8 Add editFocusGained hook 2013-05-21 00:19:43 +02:00
Damien Elmes
b34404aa08 turn off autojunking
seems to give better results on long passages, eg
https://anki.tenderapp.com/discussions/ankidesktop/1108-the-typing-diffs-are-sometimes-less-than-helpful
2013-05-20 19:21:08 +09:00
Damien Elmes
1b12ff6fe5 add real example to card layout, and move hr like during review 2013-05-20 18:21:14 +09:00
Damien Elmes
d90652d0d6 a hack to ensure hr falls before answer comparsion 2013-05-20 17:56:01 +09:00
Damien Elmes
c3b0ae37aa experimental type answer refactor
- when answer not correct, show both the given and correct string in separate
  markup. we use red/green for the given string to indicate what was correct,
  but we use grey rather than red on the correct string to indicate what was
  missing, as red is misleading
- colours can now be customized in css with .typeGood, .typeBad and
  .typeMissing
- answer now shown in monospace so given/correct lines up; can be customized
  with code#typeans
- do away with 'correct answer was' text that people didn't like
2013-05-20 17:46:42 +09:00
Damien Elmes
f10b336fb9 need to strip trailing <br /> when saving fields 2013-05-20 15:38:05 +09:00
Hans Engel
58ee373a4f Escape deck characters as necessary in suggested deck export path 2013-05-19 08:34:55 -07:00
Hans Engel
9707786eea default to deckname.apkg on single deck export (#618) 2013-05-18 09:24:53 -07:00
Damien Elmes
85cb7ef47e ignore _ in field references (#803) 2013-05-18 18:57:24 +09:00
Damien Elmes
7ae90d7f7d prioritize html over images to fix MS issue (#449)
this means that copying&pasting images on linux/firefox will redownload the
image which is wasteful, but Windows users make up the majority of the
userbase
2013-05-18 18:38:32 +09:00
Damien Elmes
f97abacb4a add mature today stat 2013-05-18 18:37:17 +09:00
Damien Elmes
e2d50fbf71 safe mode won't work on 4.7 2013-05-18 18:19:35 +09:00
Damien Elmes
9ca8c660b0 make sure to update order when adding/deleting/changing option groups (#675) 2013-05-18 18:17:58 +09:00
Damien Elmes
3326254eec fix cloze+latex issue in media check, and duplicate answers (#757, #758)
we were replacing spans with spaces during review but not during media check.
just strip the tags instead, which makes the media check consistent and
doesn't result in multiple identical answers
2013-05-18 18:07:34 +09:00
Damien Elmes
85dfa4e5a4 ensure fmax>=fmin when rescheduling 2013-05-17 16:27:58 +09:00
Damien Elmes
201b54777a leave new cards alone when exporting, so order is preserved (#447) 2013-05-17 16:22:11 +09:00
Damien Elmes
4aa634bc44 need greedy match on images 2013-05-17 16:20:27 +09:00
Damien Elmes
61f69fd346 convert about to webview so we can scroll if too small 2013-05-17 16:09:24 +09:00
Damien Elmes
ebba215a9a cloze deletion tweaks (#601)
- allow creation of cloze deletion when note type not selected; warn with
tooltip. prevents selection from getting lost
- warn before adding cloze note type with no deletions
2013-05-17 15:57:22 +09:00
Damien Elmes
205c6d4c38 add a 'safe mode' (#797) 2013-05-17 15:32:22 +09:00