Gonçalo Silva
3bb813895e
Fix warning when opening file
...
set/clear text should count as a single user action.
2019-07-25 00:18:33 +01:00
Gonçalo Silva
128ce54761
Handle inline code correctly
...
Inline code shouldn't have its "paragraph-background" set, as it's not a
block-level element.
2019-07-25 00:18:33 +01:00
Gonçalo Silva
b4696cda30
Don't scroll when opening documents, only when pasting text
2019-07-25 00:18:33 +01:00
Gonçalo Silva
05cdfe0599
Use CommonMark's regexp for autolink / autoemail
...
Ref: https://github.com/commonmark/commonmark.js/blob/master/lib/inlines.js#L62-L64
Also avoids special handling in stats counter.
2019-07-25 00:18:33 +01:00
Manuel Genovés
63ff2659fc
There is no necessity to strip + signs from URIS
...
Closes #171
2019-07-25 00:18:33 +01:00
Manuel Genovés
53a9f4ebbd
manage open_file errors
2019-07-25 00:18:33 +01:00
Manuel Genovés
3cae19c0cc
catch exporting errors.
...
Fixes #164
2019-07-25 00:18:33 +01:00
Manuel Genovés
3e661b8d9d
support https in the alt link markdown query
2019-07-25 00:18:33 +01:00
Manuel Genovés
300c386631
Added handling of alternate form of urls
2019-07-25 00:18:33 +01:00
Manuel Genovés
26077831fa
fix typo in tutorial file
2019-07-25 00:18:33 +01:00
Gonçalo Silva
7c3d4d9364
Adjust regex tests for CommonMark, improve inline regexp
2019-07-25 00:18:33 +01:00
Gonçalo Silva
23cddba0d0
Add shortcut for find and replace
...
Also renames "search" to "find" as most other Gtk apps.
2019-07-25 00:18:33 +01:00
Gonçalo Silva
859ad84524
Improve handling of bold italic
...
**_bolditalic_** and other mixed combinations now work.
2019-07-25 00:18:33 +01:00
Gonçalo Silva
7ea8f67216
Add code highlighting
...
Removes previously added indent. Reused for math.
2019-07-25 00:18:33 +01:00
Gonçalo Silva
bd2d78b86a
Add format inserts to the undo stack as single actions
...
Also fixes undoing list items.
2019-07-25 00:18:33 +01:00
Gonçalo Silva
0b6e84bf8c
Add search and replace to the undo stack as a single action
...
This is specially important for search and replace *all*.
2019-07-25 00:18:33 +01:00
Gonçalo Silva
aa3f5c3430
Remove unused file, reformat helpers
2019-07-25 00:18:33 +01:00
Gonçalo Silva
e3b99e823b
Undo support for begin-user-action and end-user-action
...
Allows keeping track of multiple changes within a single action together.
2019-07-25 00:18:07 +01:00
Gonçalo Silva
d9014b12e7
Open preview links in the browser
2019-07-25 00:18:07 +01:00
Gonçalo Silva
efb1a02f30
Use file name for link description and image caption
2019-07-25 00:18:07 +01:00
Gonçalo Silva
ef4009fcd6
Keep file:// prefix for drag & droped files
2019-07-25 00:18:07 +01:00
Gonçalo Silva
7c6d2c12a3
Fix erroneous unescaping of link uris
...
Unescaped links won't work when containing special characters.
2019-07-25 00:18:07 +01:00
Gonçalo Silva
1cc2fc5a4c
Fix presenting window after drag & drop
2019-07-25 00:18:07 +01:00
Manuel Genovés
adcb73b129
fix small regex errors in header queries
2019-07-25 00:18:07 +01:00
Manuel Genovés
0bdb9e54ec
initial collection of tests for markup_regex
...
(bold and headers)
2019-07-25 00:18:07 +01:00
Manuel Genovés
c8ea808623
fix math REGEX expression
2019-07-25 00:18:07 +01:00
Gonçalo Silva
cb3da0331e
Remove uberwriter.in given bin/uberwriter
2019-07-25 00:18:07 +01:00
Gonçalo Silva
ab383db98a
Update shebangs to use env
2019-07-25 00:16:26 +01:00
Gonçalo Silva
55e5cd3856
Use `selection_bound` instead of `insert` to markup/scroll
2019-07-25 00:16:26 +01:00
Gonçalo Silva
3fa56afaef
Reduce sync scrolling precision
...
High precision leads to micro-scrolling, and 1e-4 is more than enough.
2019-07-25 00:16:26 +01:00
Gonçalo Silva
55d82856c2
Fix list markup parsing
...
Subsequent list items were being erroneously discarded.
2019-07-25 00:16:26 +01:00
Gonçalo Silva
931d92bdfd
Move markup to a worker process
...
A worker thread works in practice, but the GIL takes a significant toll
as the code is computationally heavy. The result is a hogged UI,
specially when other threads are involved (eg. stats counter).
A worker process is faster, hogs the UI significantly less, at the cost
of slightly higher memory usage.
As side-effects:
- UberWriter can now comfortably handle much larger documents
- Text selection is much more responsive
2019-07-25 00:16:26 +01:00
Gonçalo Silva
bb279d0379
Move stats counting to a worker process
...
A worker thread works in practice, but the GIL takes a significant toll
as the code is computationally heavy. The result is a hogged UI,
specially when other threads are involved (eg. markup handler).
A worker process is faster, hogs the UI significantly less, at the cost
of slightly higher memory usage.
2019-07-25 00:16:26 +01:00
Gonçalo Silva
0d87299040
Fix paragraph counting
...
Markdown requires at least 2 newlines to form a paragraph.
2019-07-25 00:16:26 +01:00
Gonçalo Silva
3f4f8292ca
Use markup regexp for character count
...
Deferring to Pandoc is not without its faults. It still requires
processing (eg. horizontal rules turning into 72 dashes). It is
significantly slower and resource hungry.
On the reverse, the markup regexps have improved over time and are able
to handle the task.
2019-07-25 00:16:26 +01:00
Gonçalo Silva
aae38ddb5f
Prevent scroll when only one of the text view or preview are scrollable
2019-07-25 00:16:26 +01:00
Gonçalo Silva
d78602c4db
Fix synchronized scrolling without MathJax
2019-07-25 00:16:26 +01:00
Gonçalo Silva
df79f9329e
Rename WebView to PreviewWebView
2019-07-25 00:16:26 +01:00
Gonçalo Silva
0b13fdddc5
Remove unused offset in markup handler
2019-07-25 00:16:26 +01:00
Gonçalo Silva
eec633437b
Improve inline preview
...
- Uses commonly defined regexp
- Removed dependency on gnome-web-photo, use WebView instead
- Improved lexicon rendering
2019-07-25 00:16:26 +01:00
Gonçalo Silva
8e97b7ae2c
Quality of life improvements for regexp
...
Includes:
* Moving them into an independent file
* Using named groups for clarity
* Support for multi-line list items
* Better handling of block markup at start / end of document (eg. hr)
* Better handling of the separation around block items (eg. space around a list)
2019-07-25 00:16:26 +01:00
somas95
ada47cc89a
Merge pull request #172 from UberWriter/add-code-of-conduct-1
...
Create CODE_OF_CONDUCT.md
2019-07-18 21:22:50 +02:00
somas95
edc4cad961
Create CODE_OF_CONDUCT.md
2019-07-18 20:57:45 +02:00
somas95
6340c15c85
Delete ISSUE_TEMPLATE.md
2019-07-12 09:29:07 +02:00
somas95
47116eaf8c
Update issue templates
2019-07-12 09:28:47 +02:00
Manuel Genovés
213ff104e5
Update license
2019-07-05 20:47:49 +02:00
Bilal Elmoussaoui
5f0d9570cf
Build system: init porting to meson
2019-07-01 12:49:15 +02:00
Bilal Elmoussaoui
16b5e8821f
Build system: init porting to meson
2019-07-01 12:43:26 +02:00
somas95
68af5b3161
Merge pull request #165 from goncalossilva/patch-2
...
Remove unused NUMERICLIST
2019-05-25 12:45:42 +02:00
somas95
09e4b91b42
Update README.md
2019-05-24 08:30:50 +02:00