Commit Graph

789 Commits (master)
 

Author SHA1 Message Date
Gonçalo Silva 828f4b0bf1
Remove unused NUMERICLIST 2019-05-22 19:30:36 +01:00
Manuel Genovés e63f9b4b72 localization 2019-05-18 20:14:38 +02:00
Manuel Genovés 335cdf8e09 Merge branch 'master' of https://github.com/wolfv/uberwriter 2019-05-18 19:48:35 +02:00
Manuel Genovés c4b00f1014 add script to update po files 2019-05-18 19:48:31 +02:00
Manuel Genovés 7e0de3d4d1 update pot file 2019-05-18 19:47:00 +02:00
somas95 82a95492ee Update uberwriter-vi.po (POEditor.com) 2019-05-18 19:33:19 +02:00
somas95 76aef04369 Update uberwriter-tr.po (POEditor.com) 2019-05-18 19:33:17 +02:00
somas95 748f473ac0 Update uberwriter-sv.po (POEditor.com) 2019-05-18 19:33:14 +02:00
somas95 dd23cbb426 Update uberwriter-es.po (POEditor.com) 2019-05-18 19:33:12 +02:00
somas95 266279e883 Update uberwriter-si.po (POEditor.com) 2019-05-18 19:33:10 +02:00
somas95 9075fad5e4 Update uberwriter-ru.po (POEditor.com) 2019-05-18 19:33:07 +02:00
somas95 abe3813d34 Update uberwriter-pt_BR.po (POEditor.com) 2019-05-18 19:33:05 +02:00
somas95 6c41f8a5fd Update uberwriter-pl.po (POEditor.com) 2019-05-18 19:33:02 +02:00
somas95 661e311059 Update uberwriter-it.po (POEditor.com) 2019-05-18 19:32:59 +02:00
somas95 41ed2c5319 Update uberwriter-hu.po (POEditor.com) 2019-05-18 19:32:57 +02:00
somas95 7c3f92b82b Update uberwriter-de.po (POEditor.com) 2019-05-18 19:32:55 +02:00
somas95 ff8bebcd8b Update uberwriter-fr.po (POEditor.com) 2019-05-18 19:32:53 +02:00
somas95 e2544ceebf Update uberwriter-en_GB.po (POEditor.com) 2019-05-18 19:32:50 +02:00
somas95 bced0277e0 Update uberwriter-cs.po (POEditor.com) 2019-05-18 19:32:48 +02:00
somas95 de6d25cbe8 Update uberwriter-zh_TW.po (POEditor.com) 2019-05-18 19:32:46 +02:00
somas95 53a5593f72 Update uberwriter-zh_CN.po (POEditor.com) 2019-05-18 19:32:43 +02:00
somas95 da6550cbee Update uberwriter-ca_ES.po (POEditor.com) 2019-05-18 19:32:41 +02:00
somas95 26ad6c087f Update uberwriter-eu.po (POEditor.com) 2019-05-18 19:32:39 +02:00
Manuel Genovés f0f2f05670 Merge branch 'master' 2019-05-18 18:51:45 +02:00
somas95 3d2fd337d6
Merge pull request #163 from goncalossilva/fix.preview_math_jump
Fix preview jump when working with math
2019-05-18 18:48:36 +02:00
Gonçalo Silva 832b3e3d38 Remove unused file 2019-05-17 06:59:50 +01:00
Gonçalo Silva 21387ea6a7 Fix scroll jump when previewing documents with math
MathJax loads asynchronously and can alter the height of the document.
Altering the height alters the scroll.

Ensure MathJax is either unused or finished loading before reading
scroll from the preview.
2019-05-17 06:59:41 +01:00
Manuel Genovés b55f4dbecd Added @goncalossilva to the contributor's list 2019-05-12 21:26:44 +02:00
Manuel Genovés 7e34e9cc62 Merge branch 'master' 2019-05-12 21:24:30 +02:00
Manuel Genovés 6b4fcabb57 Merge branch 'master' 2019-05-12 21:18:19 +02:00
somas95 a0638f6912
Merge pull request #161 from goncalossilva/patch-1
Fix file paths
2019-05-12 21:12:04 +02:00
somas95 6206e58c4f
Merge pull request #160 from goncalossilva/ft.dual_pane
Dual pane preview
2019-05-12 21:10:53 +02:00
Gonçalo Silva c5abc531e0 Fix scrolling glitch during preview
Typing while in preview mode would occasionally lead to a scrolling
glitch, where scroll would briefly be at 0, before jumping to the
location it was supposed to be in in the first case.

This happened due to the async nature of JS calls, in the following
scenario:
1. Load
2. Read started
3. Read finished
4. Read started
5. Load
6. Read finished

The results from op 4 would be invalid due to loading in-between, and
handling the result in 6 would set the wrong scroll value.

This change ensures results are discarded whenever we are waiting for
them and a new load starts.
2019-05-08 04:11:35 +01:00
Gonçalo Silva e39694571d
Fix file paths
`path_to_file`'s argument is an absolute path, which already contains a leading `/`. Having an additional slash (ie. `file:////some/path`) actually breaks things, eg. the export flow using local assets.
2019-05-08 03:12:59 +01:00
Manuel Genovés bc24251461 even with master 2019-05-04 21:15:24 +02:00
Gonçalo Silva 16382d9574 Remove non-Python requirements from requirements.txt 2019-05-04 16:34:12 +01:00
Gonçalo Silva 250519f319 Improve gspell_view encapsulation inside TextView 2019-05-04 16:33:09 +01:00
Gonçalo Silva c2d0bde9f8 Replace set_value(X, type(Y)) with set_type(X, Y) for Settings 2019-05-04 16:33:09 +01:00
Gonçalo Silva 939edcc762 Allow disabling scroll sync 2019-05-04 16:33:09 +01:00
Gonçalo Silva db652ef84f Ensure text view is focused when toggling preview
Consistent with other menu options.
2019-05-04 16:33:09 +01:00
Gonçalo Silva a0a19ffbe7 Replace get_value(X).get_Y() with get_Y(X) for Settings 2019-05-04 16:33:09 +01:00
Gonçalo Silva c2a43c374a Remove unused class 2019-05-04 16:33:09 +01:00
Gonçalo Silva e80b61cf9d Work-around for unwanted scroll while resizing the editor
The problem: When a TextView *with vertical margins set* is resized, it
scrolls upwards automatically. It's not entirely clear why this happens,
but removing the top/bottom margins fixes the issue entirely.

The work-around: enforcing the scroll scale between a resize starting
and the UI becoming idle again. This is a hack, and the experience is
not great (the scroll is visibly unstable for a few ms), but it patches
and old bug in UberWriter.

The better solution: Figuring out how to prevent it from happening,
either by somehow ensuring the TextView does not do this, or by
approaching the layout differently where the margin is not set on the
TextView itself.
2019-05-04 16:33:09 +01:00
Gonçalo Silva 7a2e6d5d8f Fix unwanted scroll while resizing the preview 2019-05-04 16:33:09 +01:00
Gonçalo Silva 7ff1df4371 Optimize markup update on margin/indent change
Updating text tags is expensive, so avoid it unless necessary.

A place where this was felt was when pasting large text.
2019-05-04 16:33:09 +01:00
Gonçalo Silva e533bf190d Remove unused vadjustment property 2019-05-04 16:33:09 +01:00
Gonçalo Silva ebbbd73056 Disable search during full-width preview 2019-05-04 16:33:09 +01:00
Gonçalo Silva 8ae2dfcb0b Fix preview CSS 2019-05-04 16:33:09 +01:00
Gonçalo Silva 86cffc40ec Improve full-width preview workflow 2019-05-04 16:33:09 +01:00
Gonçalo Silva dc0652e3ed Improve documentation for the new preview 2019-05-04 16:33:09 +01:00