Commit Graph

463 Commits

Author SHA1 Message Date
Damien Elmes
46a771def3 fix clock off message 2013-12-06 13:27:13 +09:00
Damien Elmes
5bc25e494c add fixme 2013-12-02 10:26:18 +09:00
Damien Elmes
9b02f71abf friendly msg for 10053 error 2013-11-27 23:02:03 +09:00
Damien Elmes
0372f30220 adjust media regexp to not trigger on mce_src
otherwise pasting the following will cause an error:

<img src="..." mce_src="/foo.png">
2013-11-27 19:24:41 +09:00
Damien Elmes
1f05392113 change default import mode to ignore updates 2013-11-26 18:19:54 +09:00
Damien Elmes
dc2fd097d8 if unrecognized url pasted in, paste as text
this fixes pasting a url copied from the location bar in chrome
2013-11-26 17:57:14 +09:00
Damien Elmes
dd1899bcc6 cascading column resize must be set after resize 2013-11-26 04:57:39 +09:00
Damien Elmes
6ed971cb6b we need to retry when we get BadStatusLine
this is caused by the http keep alive being closed by the server
2013-11-26 02:43:59 +09:00
Damien Elmes
fb8cb34532 fix clayout switching back to original tab when flipping 2013-11-18 10:29:40 +09:00
Damien Elmes
ae8074ec01 make sure we reset odue when rescheduling as new
if we fail to do this for a relearning card, it sticks around
until it causes problems later
2013-11-17 16:03:58 +09:00
Damien Elmes
0389eebc43 ask people to check media when media sanity occurs 2013-11-14 12:12:37 +09:00
Damien Elmes
8812472b53 catch "no such file or directory" error when connecting with no net
soren reports it happening on his computer; can't repro it here

also make sure exception is always converted to string in reliable way
2013-11-14 11:14:21 +09:00
Damien Elmes
f6b9dadf13 catch invalid file encodings in media check & sync 2013-11-13 17:19:25 +09:00
Damien Elmes
ef9157a8ee don't open log for export or upgrade, only regular+sync 2013-11-13 16:48:22 +09:00
Damien Elmes
9f548ad85a recover from a corrupt prefs.db that fails to load at all 2013-11-13 15:29:50 +09:00
Damien Elmes
9c678c32ad further simplify augmented httplib2 conn_request 2013-11-13 15:15:03 +09:00
Damien Elmes
927e618f53 disable plastique theme on osx as possible crash fix 2013-11-13 14:56:37 +09:00
Damien Elmes
3dbc6fa0dd strip out buggy retry code
it assumed there'd be at least one retry, and was trying to return
response that was initialized
2013-11-08 01:14:49 +09:00
Damien Elmes
be81d282ac catch temp folder issue when importing 2013-11-07 21:57:23 +09:00
Damien Elmes
5dfe95aa67 move debug logging into libanki
we want to be able to log the initial automatic sync, which
happens before the debug logging was set up in ankiqt

also skip the flush, as it should eventually get written
2013-11-04 23:04:27 +09:00
Damien Elmes
2e22b6218b don't close log on profile close
we want the log to stick around for syncs, and if the user
changes to another profile the log will be closed then
2013-11-04 06:35:30 +09:00
Damien Elmes
1d2ef1dbfb seeking on win32 is slow, so keep file handle around 2013-11-03 18:39:03 +09:00
Damien Elmes
3348b091d0 tweak logging
- log only sched getCard(), not all getCard calls
- don't log sched.today unless it's changed
2013-10-30 22:42:32 +09:00
Damien Elmes
41a5f4eb4e work around a font issue on osx10.9 2013-10-26 10:53:27 +09:00
Damien Elmes
1fe04a29b2 change env var name 2013-10-23 16:04:44 +09:00
Damien Elmes
82a54c780f catch invalid temp folder and other tweaks
- tweak sync code so that a failure in loading the collection
  won't leave the app with an unopen collection
- don't show corrupt collection message when the error is not
  a db error
- catch the temp folder issue when loading the collection. i suspect
  this was the issue that was causing some people to end up with
  an open anki instance with no collection loaded
2013-10-22 15:30:53 +09:00
Damien Elmes
553a908839 skip startup sync when restoring from backup 2013-10-22 14:57:56 +09:00
Damien Elmes
a9c9452271 bury card option 2013-10-22 14:28:45 +09:00
Damien Elmes
004998c8ec env var to skip expensive closing during dev 2013-10-22 14:28:17 +09:00
Piotr Kubowicz
b0a24a14ff Fixed the translation in the warning about system clock 2013-10-21 09:52:54 +02:00
Damien Elmes
184ea3503a use file system encoding for cmdline args
thanks to to wlhunag for the initial patch!
2013-10-21 09:22:14 +09:00
Damien Elmes
4a9c08014e return of the evil bytestring windows exceptions 2013-10-20 11:01:57 +09:00
Damien Elmes
4841858f14 update about 2013-10-20 10:42:08 +09:00
Damien Elmes
58f13f1e9a display time difference & more info in clock off msg; i18n it 2013-10-20 10:26:11 +09:00
Damien Elmes
bab63de768 silly me, we were overriding retries in the aqt monkeypatch 2013-10-20 10:25:25 +09:00
Damien Elmes
d6f9fb4ab0 fix invalid translation 2013-10-20 10:02:29 +09:00
Damien Elmes
0ac8789ad5 encode to utf8 before writing log 2013-10-18 15:21:54 +09:00
Damien Elmes
0fbc94c186 more logging tweaks
- disable in browser, note.cards()
- in getCard() we want the calling frame, not us
- log current day
- show card/note id in card info stat
2013-10-18 14:20:20 +09:00
Damien Elmes
b99533a5ad add logging to some scheduling and syncing code 2013-10-18 11:52:21 +09:00
Damien Elmes
9baa3e197a add option to disable burying of reviews 2013-10-18 10:38:29 +09:00
Damien Elmes
9cb1d19dc2 try to work around the qbytearray issue
https://anki.tenderapp.com/discussions/ankidesktop/3369-bug-report-for-restoring-from-backup
2013-10-18 07:53:53 +09:00
Damien Elmes
5bf0a31c51 catch 413 error and don't trigger on file line numbers
fixes spurious proxy auth required msg
2013-10-14 11:18:52 +09:00
Damien Elmes
2f3f285528 clarify 409 msg 2013-10-10 11:48:38 +09:00
Damien Elmes
d503b62cd1 fix display of non-latin tags 2013-10-08 07:42:06 +09:00
Damien Elmes
3ed2861115 include platform in cv 2013-10-06 04:37:39 +09:00
Damien Elmes
9524dbed96 give note types unique name when adding/importing (#325) 2013-10-04 09:00:08 +09:00
Damien Elmes
174914b7dc scroll to newly added column in browser (#978) 2013-10-04 08:43:46 +09:00
Damien Elmes
0f7000db83 refactor second instance detection
- get rid of shared memory check as it was causing problems when an existing
  session was forcefully closed; instead we rely on the socket
- include a hash of the user's name in the key so that multiple users can run
  anki at the same time
2013-10-04 07:37:19 +09:00
Damien Elmes
f64c07ca40 show sync username in prefs screen 2013-10-04 06:09:36 +09:00
Damien Elmes
f29a04ae29 bump sync ver to 7 and change meta return value
- /sync/meta now returns a dictionary
- it includes the following extra fields
- msg: if non-empty, show this message at the end of the sync
- cont: if false, show above message and abort sync
- uname: the user's email address, so it can be stored by the local client to
  show users who have forgotten which email address they used. in the future
  this will be saved only when logging in, so do a conditional access on it
2013-10-04 06:09:28 +09:00
Damien Elmes
b55761190f option to tag notes in find dupes function 2013-10-04 00:07:11 +09:00
Damien Elmes
3d33436a86 move version number into libanki 2013-10-02 03:50:19 +09:00
Damien Elmes
e7be6fd4be make sure we decode full traceback on addon err (#954) 2013-09-20 15:02:46 +09:00
Damien Elmes
fe3ce87020 make sure we escape html chars after type ans comp. (#960) 2013-09-20 14:57:05 +09:00
Damien Elmes
7eabc36468 remember window size for deck&model selection (#931) 2013-09-20 14:51:12 +09:00
Damien Elmes
2fff30db2f prioritize urls over text; fixes linux fm drop (#945) 2013-09-20 14:41:56 +09:00
Damien Elmes
bd8707f54c support import of renamed .apkg files 2013-09-11 15:56:59 +09:00
Damien Elmes
c1827e0561 unbury from overview shouldn't unbury all decks 2013-09-11 15:33:27 +09:00
Damien Elmes
b49d52393e add tags column in browser 2013-09-04 03:21:19 +09:00
Damien Elmes
463fec1158 setdestroyonexit (#907) 2013-09-04 03:15:35 +09:00
Damien Elmes
31c42a4f75 fix import when dyn deck selected (#959) 2013-09-04 03:13:02 +09:00
Damien Elmes
4fe76257f1 about about and available languages 2013-08-22 15:54:33 +09:00
Damien Elmes
afde11671e rework sibling handling and change bury semantics
First, burying changes:

- unburying now happens on day rollover, or when manually unburying from
  overview screen

- burying is not performed when returning to deck list, or when closing
  collection, so burying now must mark cards as modified to ensure sync
  consistent

- because they're no longer temporary to a session, make sure we exclude them
  in filtered decks in -is:suspended

Sibling spacing changes:

- core behaviour now based on automatically burying related cards when we
  answer a card

- applies to reviews, optionally to new cards, and never to cards in the
  learning queue (partly because we can't suspend/bury cards in that queue at
  the moment)

- this means spacing works consistently in filtered decks now, works on
  reviews even when user is late to review, and provides better separation of
  new cards

- if burying new cards disabled, we just discard them from the current queue.
  an option to set due=ord*space+due would be nicer, but would require
  changing a lot of code and is more appropriate for a future major version
  change. discarding from queue suffers from the same issue as the new card
  cycling in that queue rebuilds may cause cards to be shown close together,
  so the default burying behaviour is preferable

- refer to them as 'related cards' rather than 'siblings'

These changes don't require any changes to the database format, so they
should hopefully coexist with older clients without issue.
2013-08-10 15:56:26 +09:00
Damien Elmes
8a4fbcc430 unbury in deckbrowser, not deckduelist() (#946) 2013-08-08 15:19:57 +09:00
Damien Elmes
f6c19ca0b4 don't die if autojunk unavailable (#952) 2013-08-08 10:56:44 +09:00
Damien Elmes
ed5df2b251 bump version 2013-07-24 01:05:06 +09:00
Damien Elmes
0254a25c23 unused media tooltip patch from julien baley (removed redundant .finish()) 2013-07-24 01:04:37 +09:00
Damien Elmes
36e877fe12 work around crash on close when card layout opened on windows (#940) 2013-07-23 22:35:00 +09:00
Damien Elmes
402ec3a0b8 don't try to download local image urls 2013-07-18 20:44:33 +09:00
Damien Elmes
9ccb21fe09 fix incorrect code that was not restoring clipboard 2013-07-18 19:56:47 +09:00
Damien Elmes
70008a8f40 remove filtered deck restriction on stats 2013-07-18 19:01:39 +09:00
Damien Elmes
99c90b929b warn when prefs.db corrupt and catch another case 2013-07-18 18:59:14 +09:00
Damien Elmes
6f66f11572 Merge pull request #40 from steveaw/add-hooks3
Add hooks for context menus
2013-07-16 19:08:59 -07:00
Damien Elmes
4c671b3676 work around linux crash on paste
https://anki.tenderapp.com/discussions/ankidesktop/2019-inaccessible-firewall-blocked-media-url-paste-hangs-anki-for-a-minute-until-a-network-is-unreachable-like-message-appears
2013-07-17 10:19:09 +09:00
steveaw
e5bc1650f9 Add hooks for context menus 2013-07-16 17:42:50 +10:00
Damien Elmes
ffff271362 make sure we strip <!--anki--> 2013-07-11 21:22:51 +09:00
Damien Elmes
f7c841fba2 Revert "when target add deck changed, switch review deck too (#695)"
This reverts commit db262031c3.

This addresses issue #929
2013-07-11 18:17:26 +09:00
Damien Elmes
3007d884b8 if there's no html and we have an image, use that (#915) 2013-07-11 17:43:18 +09:00
Damien Elmes
e2d2b759a4 refactor media downloading on paste/drop
- use html as the first choice for incoming drops/pastes
- when filtering incoming html, automatically localize any remote image
  references
- add a special case for pasting/dropping from google images when html
  stripping is on
- move filtering code into editor
2013-07-11 17:21:16 +09:00
Damien Elmes
a1ca03ee17 allow urllib2 to be passed unicode data to send (#923) 2013-07-03 04:48:52 +09:00
Damien Elmes
2754ead0a4 don't bug out if cloze:text is invalid (#925) 2013-07-03 04:27:46 +09:00
Damien Elmes
2047e5c93c don't send old backups to the trash (#912) 2013-07-03 03:41:41 +09:00
Hans Engel
c916fa533f Handle invalid import file argument in both launch cases (single-profile and multi-profile launch) (#924) 2013-06-29 15:08:37 -07:00
Soren Bjornstad
b5521af059 fix incorrect instructions to "maintenance" menu
(on finding an empty card, tells user to go to old location of the empty
cards tool)
2013-06-25 10:59:00 -05:00
Damien Elmes
1a9ef3734e bump version 2013-06-14 13:15:18 +09:00
Damien Elmes
077d6b8187 Revert "force webkit to output <br> when enter pressed, instead of div"
This reverts commit e63c8e5619.
2013-06-14 13:11:48 +09:00
Damien Elmes
24995de437 Revert "need to strip trailing <br /> when saving fields"
This reverts commit f10b336fb9.
2013-06-14 13:11:26 +09:00
Damien Elmes
49ea66bca9 Revert "add a hack to prevent double newlines when deleting formatting"
This reverts commit ecf9776f90.
2013-06-14 13:11:04 +09:00
Damien Elmes
e7ec4edf92 fix sync error message bug 2013-06-14 13:06:56 +09:00
Damien Elmes
b71282ea0b bump version 2013-06-12 11:22:27 +09:00
Damien Elmes
c0e061a9f4 make sure we show correct version when nothing typed in 2013-06-12 11:22:13 +09:00
Damien Elmes
5ec30e6858 allow apostrophe when renaming deck 2013-06-12 11:12:03 +09:00
Damien Elmes
f80d01dc4f update about 2013-06-12 10:50:57 +09:00
Damien Elmes
426eff4cff prioritize images over html for now
when a user copies an image from the browser to the clipboard, we need to do
this so the image pastes, as we currently don't support images derived from
html pastes (issue 92)
2013-06-10 16:04:58 +09:00
Damien Elmes
51121f6e86 escape image links in clayout and preview as well (#903) 2013-06-10 15:28:34 +09:00
Damien Elmes
c7b31d28e4 fix unicode error on export (#904) 2013-06-10 15:19:44 +09:00
Damien Elmes
9d173f4c83 default to allowing HTML on import 2013-06-10 15:03:26 +09:00
Damien Elmes
8fd4ae7a89 include pyqtconfig until add-ons have a chance to update 2013-06-10 15:03:19 +09:00
Damien Elmes
dbd60dba4b fix error when opening card layout 2013-06-07 09:51:26 +09:00
Damien Elmes
daca1af693 compare typed answer in nfc form 2013-06-05 18:39:42 +09:00
Damien Elmes
55ca4b42bb bump version 2013-06-03 17:53:01 +09:00
Damien Elmes
161f8bcb31 Merge branch 'master' of github.com:dae/anki 2013-06-02 10:26:22 +09:00
Soren Bjornstad
222b90e640 fix "save image" creating a folder instead of an image 2013-06-01 13:48:24 -05:00
Damien Elmes
9101867224 only show browser close menu item on mac 2013-05-31 14:16:37 +09:00
Damien Elmes
122c5c8f4c ensure we have access to col when removing notes while syncing 2013-05-31 10:42:24 +09:00
Damien Elmes
19a48fec6a Revert "remember tags when add cards window opened (#632)"
This reverts commit ddc85b3a39.
2013-05-30 10:55:39 +09:00
Damien Elmes
be78c3f9e3 better msg when media sanity fails 2013-05-30 10:54:55 +09:00
Damien Elmes
ff8b58de21 include full traceback on sync error 2013-05-29 09:32:49 +09:00
Damien Elmes
1a06402f53 merge 'limit to tags' and 'cram' custom study optionts (#584) 2013-05-27 13:50:01 +09:00
Damien Elmes
ddc85b3a39 remember tags when add cards window opened (#632) 2013-05-27 12:52:24 +09:00
Damien Elmes
78155afb09 we shouldn't be quoting sound tags 2013-05-27 12:15:21 +09:00
Damien Elmes
444f99b7ba pass enter back to qwidget so add tags dialog can close on enter 2013-05-27 11:37:35 +09:00
Damien Elmes
9c24c41b90 we do need to quote when adding media
contrary to commit 3576475, we do need to quote when adding media on windows
as well, as it seems webkit can not handle all representations variants when
passed unicode

as we're stripping # and % when adding characters, hopefully that's the last
of it!
2013-05-27 11:26:02 +09:00
Damien Elmes
4f738fd8cf don't die if appdata not defined 2013-05-24 13:56:50 +09:00
Damien Elmes
8b0fc36b29 turn timebox into confirmation dialog (#883) 2013-05-24 12:53:41 +09:00
Damien Elmes
4d2ed10c94 fix toolbar alignment issues (#191) 2013-05-24 12:40:41 +09:00
Damien Elmes
48f40c4884 ignore sticky fields when checking if blank (#843) 2013-05-24 12:04:28 +09:00
Damien Elmes
e6ecbfd086 allow multiple spaces in type answer 2013-05-24 11:01:24 +09:00
Damien Elmes
952f0cf6bd mention agpl3 in about 2013-05-24 10:54:33 +09:00
Damien Elmes
cc73a3bb42 work around broken images when pasting/attaching on linux 2013-05-24 10:50:15 +09:00
Damien Elmes
97a92e5ea9 translation issues 2013-05-24 10:46:44 +09:00
Damien Elmes
b253a1736d tweak unused media msg 2013-05-24 10:35:18 +09:00
Damien Elmes
b151b049f5 fix unicode error on export 2013-05-24 10:32:21 +09:00
Andreas Klauer
4b0f31676c repeating timers would randomly start firing every 100ms indefinitely 2013-05-24 02:08:36 +02:00
Damien Elmes
7787427a50 make sure we use correct extension when exporting 2013-05-23 15:32:47 +09:00
Damien Elmes
46fea20985 shortcut key for history button 2013-05-23 14:44:00 +09:00
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
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
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
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
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
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
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
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
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
85dfa4e5a4 ensure fmax>=fmin when rescheduling 2013-05-17 16:27:58 +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
Damien Elmes
a492e95aed remove pyqtconfig usage (#831) 2013-05-17 15:17:04 +09:00
Damien Elmes
dd4bae6e8d disable dragging of images in review window (#420)
webkit's default behaviour is to remove them from the media folder otherwise,
which we don't want
2013-05-17 15:01:01 +09:00
Damien Elmes
e367d04a08 print to console when existing copy running 2013-05-17 14:32:57 +09:00
Damien Elmes
dd9f1c53be shortcut to jump to tags entry 2013-05-17 14:32:50 +09:00
Damien Elmes
400571306a better warning when apkg invalid 2013-05-17 14:22:49 +09:00
Damien Elmes
0afce5f19a support unc pathnames again
Turns out that WebKit does support UNC pathnames in the base tag, but it is
picky about the leading number of slashes.
2013-05-17 14:12:59 +09:00
Damien Elmes
273cb74e3d separate messages for 50x errors 2013-05-17 13:58:38 +09:00
Damien Elmes
da66844f6b canonify tags when saving, and strip quotes (#794) 2013-05-17 13:51:49 +09:00
Damien Elmes
e63c8e5619 force webkit to output <br> when enter pressed, instead of div
this should make it easier for mobile clients to convert into newlines
2013-05-17 13:22:58 +09:00
Damien Elmes
c45525179b replacement order must be reversed 2013-05-17 11:46:51 +09:00
Damien Elmes
faddc59232 handle % as well (#823) 2013-05-17 11:38:34 +09:00
Damien Elmes
93717df30b fix pasting/attaching with unicode chars (#813, #867)
- treat # specially instead of quoting entire string, as urllib unfortunately
  can't handle utf8 quoted text
- make sure we pass utf8 to quote() in _addMedia()
2013-05-17 11:34:15 +09:00
Damien Elmes
2ac2619527 don't shorten deck descriptions anymore (#467) 2013-05-16 18:05:10 +09:00
Damien Elmes
69e38b18e1 strip implicit span from copy&paste (#777) 2013-05-16 17:46:48 +09:00
Damien Elmes
23b5cbd13a clearer options group warning (#661) 2013-05-16 16:50:48 +09:00
Damien Elmes
bbe248698a correctly decode %-escaped utf8 when pasting (#865) 2013-05-16 16:41:20 +09:00
Damien Elmes
1efb03f16d allow a few more audio formats in paste 2013-05-16 16:28:45 +09:00
Damien Elmes
518a61732e fix main window coming to top after paste on win (#456) 2013-05-16 16:26:31 +09:00
Damien Elmes
e47da34cbc fix drag&drop of images with # char (#867) 2013-05-16 16:22:23 +09:00
Damien Elmes
1fb0c73e91 fix crash on linux when pasting invalid url (#858) 2013-05-16 16:21:41 +09:00
Damien Elmes
3f6266a712 fix duplicate search in browser (#855) 2013-05-16 14:17:28 +09:00
Damien Elmes
254a2ecad6 allow canceling of note type selection (#849) 2013-05-16 13:56:21 +09:00
Damien Elmes
47e7f28779 make sure windows that are minimized are restored (#853) 2013-05-14 21:18:30 +09:00
Damien Elmes
3e08f09b07 export filename check should be on basename 2013-05-14 20:47:31 +09:00
Damien Elmes
7ca86e2dd7 make desktop folder if missing (#851) 2013-05-14 18:24:05 +09:00
Damien Elmes
ab198c46be unify pre-check, sanity-check and upload error messages 2013-05-14 15:41:18 +09:00
Damien Elmes
79d4451299 move full sync into preferences, and remove maintenance menu 2013-05-14 15:27:40 +09:00
Damien Elmes
e913c75fd7 perform basic check prior to syncing 2013-05-14 15:10:58 +09:00
Damien Elmes
d2535fd6cb run basic integrity check prior to full up 2013-05-13 19:36:09 +09:00
Damien Elmes
ac7bd4f736 fix i18n issue 2013-05-13 13:58:41 +09:00
Damien Elmes
ce99114dc3 more robust desktop location detection 2013-05-12 17:24:01 +09:00
Damien Elmes
f6f6537967 fix regression caused by preview code
we shouldn't blank out self.card when multiple cards selected, as a number of
other routines take it to mean the most recently selected card.
2013-05-10 15:02:58 +09:00
Damien Elmes
058f19b18d update obsolote activated() signals 2013-05-10 14:49:21 +09:00
Damien Elmes
4884d0edf7 handle chrome's newlines in url issue and make sure to clean up progress 2013-05-09 15:34:16 +09:00
Damien Elmes
dbfe9529f9 fix race in preview mode, and fix preview shortcut keys in qt5 2013-05-09 15:32:30 +09:00
Damien Elmes
c8fd2e2f87 future imports must go at top 2013-05-07 18:30:17 +09:00
Damien Elmes
13cbade4a3 use future division in those aqt files too 2013-05-07 15:27:35 +09:00