Alexandre Bury
|
755854963f
|
Fix clippy warnings
|
2018-05-17 17:35:57 -07:00 |
|
Alexandre Bury
|
b1e9afe0ff
|
Add vpv example
|
2018-04-10 11:46:02 -07:00 |
|
Alexandre Bury
|
063589b0cd
|
Move Counter to utils module
|
2018-04-10 11:45:36 -07:00 |
|
Alexandre Bury
|
fd09b5f806
|
Use Vec2 in backend methods
|
2018-04-02 18:08:12 -07:00 |
|
Alexandre Bury
|
c626779d8a
|
Fix simple LinesIterator
Was stopping at the first empty line.
|
2018-02-19 19:55:31 -08:00 |
|
Alexandre Bury
|
62260a025e
|
Rustfmt
|
2018-02-16 17:21:24 -08:00 |
|
Alexandre Bury
|
6b6398f109
|
Fix clippy warnings
|
2018-02-16 17:20:13 -08:00 |
|
Alexandre Bury
|
d33fb39cd9
|
Replace AsSpannedStr with Into<SpannedStr>
|
2018-02-16 17:16:01 -08:00 |
|
Alexandre Bury
|
d0a186d01e
|
Move show_spaces option to spans::LinesIterator
|
2018-02-16 17:10:29 -08:00 |
|
Alexandre Bury
|
2760e92ce6
|
Use spans::LinesIterator from simple::LinesIterator
|
2018-02-16 17:04:39 -08:00 |
|
Alexandre Bury
|
0ff08f3a9f
|
Add Row::overall_indices
|
2018-02-16 16:56:25 -08:00 |
|
Alexandre Bury
|
7772cd146d
|
Add AsSpannedStr trait
For nicer calls to resolve
|
2018-02-16 16:32:54 -08:00 |
|
Alexandre Bury
|
25e65a87e8
|
Remove attribute type from spans::LinesIterator
|
2018-02-16 16:05:15 -08:00 |
|
Alexandre Bury
|
c220cc679a
|
Remove attribute type from SpannedText
|
2018-02-16 15:35:51 -08:00 |
|
Alexandre Bury
|
7218b6c879
|
Add SpannedStr and SpannedText
|
2018-02-16 14:11:33 -08:00 |
|
Alexandre Bury
|
fac6312227
|
Fix more clippy warnings
|
2018-01-22 16:42:51 -08:00 |
|
Alexandre Bury
|
5dfdeab6ae
|
Fix clippy warnings
|
2018-01-22 14:47:56 -08:00 |
|
Alexandre Bury
|
da8310b076
|
Rustfmt
|
2018-01-22 14:37:27 -08:00 |
|
Alexandre Bury
|
3674c118cb
|
Rustfmt
|
2018-01-22 11:55:56 -08:00 |
|
Alexandre Bury
|
39405ba1ec
|
Refactor spans and markup
We now use mostly indexed spans into a source string.
Indexed Spans can still be resolved to a string slice when needed.
|
2018-01-15 13:53:27 -08:00 |
|
Alexandre Bury
|
4879d8cc71
|
Fix ending newline problem
|
2018-01-11 00:16:13 +01:00 |
|
Alexandre Bury
|
afb224b860
|
Protect against empty spans
|
2018-01-11 00:12:21 +01:00 |
|
Alexandre Bury
|
890b3f13e1
|
TextView: print styled spans of text
|
2018-01-10 23:58:29 +01:00 |
|
Alexandre Bury
|
6f468658e1
|
Add Plain markup implementation
|
2018-01-10 14:44:27 +01:00 |
|
Alexandre Bury
|
59d67e891c
|
Keep StyledString markup-agnostic, push trait to methods
|
2018-01-10 14:02:54 +01:00 |
|
Alexandre Bury
|
7ecf5f540b
|
Add markup::{Markup, StyledString}
|
2018-01-10 13:54:32 +01:00 |
|
Alexandre Bury
|
4383526ec0
|
Fix some clippy warnings
|
2018-01-09 15:20:07 +01:00 |
|
Alexandre Bury
|
f8588e74c1
|
Rustfmt
|
2018-01-09 15:17:49 +01:00 |
|
Alexandre Bury
|
ed94078218
|
Add span tests from markdown
|
2018-01-09 10:32:52 +01:00 |
|
Alexandre Bury
|
a2244f0ac1
|
Add markdown parser
|
2018-01-08 17:18:35 +01:00 |
|
Alexandre Bury
|
b59e480f60
|
Add missing imports
|
2018-01-08 13:15:28 +01:00 |
|
Alexandre Bury
|
c4670e5262
|
More utils re-organization
|
2018-01-08 12:33:43 +01:00 |
|
Alexandre Bury
|
7ac003c4de
|
Re-organize utils module
|
2018-01-08 12:07:07 +01:00 |
|
Alexandre Bury
|
943da46e82
|
Add SpanListIterator
|
2018-01-08 01:25:30 +01:00 |
|
Alexandre Bury
|
1acde148be
|
Implement From<Effect> and From<ColorStyle> for Style
|
2018-01-07 15:08:25 +01:00 |
|
Alexandre Bury
|
e4cd68a4eb
|
Rustfmt
|
2017-12-30 23:03:42 +01:00 |
|
Alexandre Bury
|
f90621811c
|
More rustfmt
|
2017-10-14 21:18:50 -07:00 |
|
Alexandre Bury
|
aaf41f3ec4
|
Add mouse support to EditView
|
2017-10-12 17:38:21 -07:00 |
|
Alexandre Bury
|
a4ca7bbf1e
|
Rustfmt
|
2017-10-12 16:43:59 -07:00 |
|
Alexandre Bury
|
b021458352
|
Use more elegant saturating_sub
|
2017-08-01 09:47:08 -07:00 |
|
Alexandre Bury
|
d2f2f642c1
|
Protect LinesIterator from zero width
Fixes #147
|
2017-08-01 09:44:40 -07:00 |
|
Alexandre Bury
|
cdb3df7fc8
|
Merge branch 'master' into refview
|
2017-03-25 15:01:57 -07:00 |
|
Constantin Berhard
|
36d5aa016a
|
use Iterator::sum() for summing instead of fold
|
2017-03-06 22:46:16 +01:00 |
|
Alexandre Bury
|
5f5fb4e502
|
Add comments
|
2017-03-06 10:38:18 -08:00 |
|
Alexandre Bury
|
30cac851e7
|
Fix utils::prefix
And add a few tests
|
2017-03-06 10:34:58 -08:00 |
|
Constantin Berhard
|
dc7754d38f
|
fix #113
|
2017-03-06 15:32:03 +01:00 |
|
Alexandre Bury
|
b63762d441
|
View::find_any now takes a closure instead of returning reference
Also updated Finder::find and find_id.
|
2017-02-07 15:49:06 -08:00 |
|
Robin Stumm
|
99fa86bec9
|
return length and width from utils::prefix() (renamed from utils::prefix_length()) as per df835d1
|
2017-02-01 20:47:33 +01:00 |
|
Alexandre Bury
|
df835d1a10
|
utils::prefix_length: move current_width out of the scan loop
To prepare returning both length and width.
|
2017-01-31 16:31:34 -08:00 |
|
Alexandre Bury
|
06ce7b570f
|
Fix clippy warnings
|
2017-01-19 11:12:12 -08:00 |
|