cstef
4cc1ecaed9
Make Scrolling serializable
2024-02-27 18:33:13 +01:00
cstef
1625d0b603
Add serde feature
2024-02-27 18:33:13 +01:00
rhysd
39075bb641
run cargo doc check on CI
2023-11-29 22:01:33 +09:00
rhysd
8b092dcdcf
update changelog for v0.4.0 changes
2023-11-19 23:44:18 +09:00
rhysd
501e2b543d
bump up version to v0.4.0
2023-11-19 23:30:51 +09:00
rhysd
a9d981f2d8
run doc test for impl FromIterator for TextArea
2023-11-19 22:18:21 +09:00
rhysd
9e3df38b54
fix inser_str doesn't handle \r\n and ignores newline at end of input
2023-11-19 22:08:25 +09:00
rhysd
1194331a02
fix TextArea::set_yank_text doesn't support CRLF (\r\n) for newline
2023-11-18 18:28:32 +09:00
rhysd
306a976fc9
update block and style only when mode changed in vim example
2023-11-18 14:50:13 +09:00
rhysd
0a5c190780
Merge branch 'vim'
2023-11-17 23:56:29 +09:00
rhysd
fc08babaaf
add screencast of vim example
2023-11-17 23:54:23 +09:00
rhysd
9f206200e5
refactor Vim emulation as state machine
2023-11-17 23:23:55 +09:00
rhysd
7c66f3ad5a
make operator-pending mode variant of Mode
2023-11-17 21:22:36 +09:00
rhysd
ad8ad19e83
implement visual mode for vim example
2023-11-16 18:15:56 +09:00
rhysd
409185f653
rename modal example to vim
...
since operator-pending mode is Vim-specific
2023-11-16 15:59:06 +09:00
rhysd
b2cee69cdd
implement operator pending mode and gg in modal example
2023-11-16 15:46:48 +09:00
rhysd
13ce6aa6d5
fix selected text is not deleted on paste
2023-11-15 01:57:48 +09:00
rhysd
8e3a432ecc
add Key::Copy, Key::Cut, Key::Paste support
2023-11-15 01:29:44 +09:00
rhysd
523a888f26
implement TextArea::select_all
...
but it is not assigned to default key shortcuts because C-a is already
in use.
2023-11-15 00:11:18 +09:00
rhysd
9d03463237
test positions after undo/redo
2023-11-13 20:32:15 +09:00
rhysd
bae9d4cee3
refactor undo/redo implementation
2023-11-13 19:29:43 +09:00
rhysd
cb868a19b6
add sanity test for all combination of key inputs
2023-11-13 00:19:17 +09:00
rhysd
18610dc58c
measure and monitor coverage with codecov
2023-11-12 23:27:55 +09:00
rhysd
f0370e850c
add more tests for deleting text
2023-11-12 23:06:25 +09:00
rhysd
f28f417e06
fix insert_char and set_yank_text does not consider newline
2023-11-12 23:06:02 +09:00
rhysd
a54ce36d22
refactor text selection and add more tests ( fix #6 )
2023-11-12 18:22:17 +09:00
pm100
5a2649abe9
implement select ( #45 )
...
* select, second go using new multiline code
* implemented internal delete_str, added tests
* delete_str_internal must not put non deleted strings into history. Ie ctrlc should not change history
* delete_str was taking lines out in the non delete case
* corrected comment
* fixes after feedback. Plus multichar bugs. change modal sample
2023-11-10 21:10:04 +09:00
rhysd
9ec2f32edf
fix disabling/enabling raw mode in editor example ( fix #44 )
2023-11-06 19:21:31 +09:00
rhysd
2740b89a51
update changelog for v0.3.1 changes
2023-11-05 01:09:31 +09:00
rhysd
efdfc13445
simplify unit tests for DisplayTextBuilder
2023-11-04 19:48:28 +09:00
rhysd
2e6697e54a
perfer for to while
2023-11-04 19:36:33 +09:00
rhysd
4d16fcb8fa
Merge branch 'issue-43' ( fix #43 )
2023-11-04 19:31:07 +09:00
rhysd
25bfdbc42b
refactor building display text and add tests where start offset is not zero
2023-11-04 19:29:54 +09:00
rhysd
37d42cd545
fix start offset of line text is always zero when calculating tab width
2023-11-04 19:29:49 +09:00
rhysd
0b4c5ee137
use io::Result<T> instead of Result<T, io::Error> in bench
2023-11-03 23:54:27 +09:00
rhysd
06f676014b
fix dummy backend for benchmark and add insert::long::* benches
2023-11-03 23:51:19 +09:00
rhysd
069e1351a7
add insert_delete fuzzing target
2023-11-03 23:10:48 +09:00
rhysd
217c5079f0
fix pasting yanked text when it contains multiple lines
2023-11-03 02:39:58 +09:00
rhysd
b6056484d8
suppress clippy warning caused by * 1
2023-11-03 02:35:12 +09:00
rhysd
a2e6aedbb7
Merge branch 'multiline' ( fixes #42 )
2023-11-03 02:33:36 +09:00
rhysd
a7731be860
add tests for multi-bytes characters
2023-11-03 02:31:27 +09:00
rhysd
2e51246ba5
fix start position of EditKind::DeleteChunk is wrong when it is used in undo
...
this needs some refactoring later
2023-11-03 02:15:40 +09:00
rhysd
6d68ba128d
add --why to cargo watch commands
2023-11-02 22:55:28 +09:00
rhysd
1283081f82
keep yanked lines in Vec
2023-11-02 22:54:28 +09:00
rhysd
9db8a3d31a
test TextArea::undo after insert_str and delete_str
2023-11-02 21:08:21 +09:00
rhysd
b324ccd9fd
allow TextArea::delete_str to delete across newlines
2023-11-02 21:01:27 +09:00
rhysd
8bc9ff4dba
add tests for TextArea::insert_str
2023-11-01 21:32:15 +09:00
rhysd
2a447d45c2
add EditKind::InsertChunks and EditKind::DeleteChunk edit kinds
2023-11-01 20:15:42 +09:00
Linda_pp
1330c55e4e
Merge pull request #40 from fritzrehde/main
...
Fixed some spelling mistakes
2023-10-31 18:31:23 +09:00
fritzrehde
addf3e9656
fixed some spelling mistakes
2023-10-30 12:02:23 +01:00