rhysd
5b08d16214
implement text search in editor example
2022-07-08 10:05:53 +09:00
rhysd
460c51a796
fix warnings when no feature is enabled
2022-07-07 23:03:01 +09:00
rhysd
4bd2b0819d
search rest of current line on search_forward/search_back
2022-07-07 20:08:45 +09:00
rhysd
043f5b9525
fix rendering cursor at end of line
2022-07-07 15:49:53 +09:00
rhysd
0ed3dc2081
add match_current parameter to search_forward/search_back
2022-07-07 13:02:06 +09:00
rhysd
68a18b2ae0
highlight searched text
2022-07-01 23:10:34 +09:00
rhysd
5914238724
implement minimal text search
...
- Set query with `TextArea::set_search_pattern`
- Move cursor to next match `TextArea::search_forward`
- Move cursor to previous match `TextArea::search_back`
2022-07-01 23:10:34 +09:00
rhysd
b5a475ba65
forbid unsafe code and debug prints
2022-07-01 23:08:22 +09:00
rhysd
6badc119be
add docs.rs badge to readme
2022-06-29 12:52:18 +09:00
rhysd
6a5e92c10e
update changelog for v0.1.2 changes
2022-06-25 11:53:33 +09:00
rhysd
8f632d5ef5
bump up version to v0.1.2
2022-06-25 11:42:58 +09:00
rhysd
f8c12a8bf6
include all features at building doc on docs.rs
2022-06-25 11:41:33 +09:00
rhysd
db0a6c9cc9
fix Vim-like key mappings usage in doc
2022-06-24 14:52:42 +09:00
rhysd
9f54a6758e
rename set_hard_tab/hard_tab to set_hard_tab_indent/hard_tab_indent
2022-06-22 22:50:49 +09:00
rhysd
08bcc50e11
support hard tab indent by TextArea::set_hard_tab
2022-06-22 09:01:22 +09:00
rhysd
fdd48efb39
update changelog for v0.1.1 changes
2022-06-21 16:02:34 +09:00
rhysd
1ec2b04884
bump up version to v0.1.1
2022-06-21 15:54:45 +09:00
rhysd
bccf8e5413
fix hard tabs are not rendered ( fix #1 )
2022-06-21 12:42:04 +09:00
rhysd
35f141e770
describe how to report bugs in contribution guide and add missing Jump(row, col) to readme
2022-06-21 12:37:13 +09:00
rhysd
b001959b77
add CursorMove::Jump(row, col) to jump cursor to arbitrary position
2022-06-20 20:18:36 +09:00
rhysd
51a75a86bf
add TextArea::yank_text and TextArea::set_yank_text for operating yanked text
2022-06-20 00:36:11 +09:00
rhysd
12140e4167
tweak examples section style in readme
2022-06-20 00:35:49 +09:00
rhysd
a852f84fbc
add changelog for v0.1.0 release
2022-06-19 21:27:30 +09:00
rhysd
96ea719eea
add badges to README
2022-06-19 21:18:15 +09:00
rhysd
c6609056b2
run CI on Windows and macOS as well as Linux
2022-06-19 21:13:46 +09:00
rhysd
279473013b
release v0.1.0
2022-06-19 20:56:37 +09:00
rhysd
da83cee419
add package metadata to Cargo.toml
2022-06-19 20:56:37 +09:00
rhysd
e357799759
rename multi example to split
2022-06-19 20:45:35 +09:00
rhysd
f93e90fc3f
add screenshot of examples to README
2022-06-19 20:40:46 +09:00
rhysd
7a6fc78dae
at least 3 lines height to variable example and tweak some variable names
2022-06-19 11:42:43 +09:00
rhysd
08caec05d6
render cursor position in editor example
2022-06-18 19:17:19 +09:00
rhysd
f10b5d52be
remove unnecessary layout calculation from examples
2022-06-18 16:21:05 +09:00
rhysd
3ba3a559ca
add an example for simple textarea with variable height
2022-06-18 15:52:31 +09:00
rhysd
2f98482ef4
remove Ctrl+V shortcut for paste
2022-06-18 15:29:46 +09:00
rhysd
5e7d4daf5b
do not remove yanked text after paste
2022-06-18 15:25:24 +09:00
rhysd
8ca7cb427c
fix delete_line_by_end and delete_line_by_head don't remove newline
2022-06-18 15:21:31 +09:00
rhysd
6822fa499f
support F1, F2, ... keys
2022-06-18 00:08:54 +09:00
rhysd
f9a07f6c33
derive Arbitrary to generate better random inputs on fuzzing
2022-06-17 13:21:02 +09:00
rhysd
30bd068b34
handle Key::Char('\n' | '\r') as Key::Enter
2022-06-17 12:52:13 +09:00
rhysd
f166eb794f
fuzzing tests
2022-06-17 12:51:22 +09:00
rhysd
3e09d9a300
improve message in error example and remove unnecessary block in single input example
2022-06-17 10:54:11 +09:00
rhysd
5fde013747
add single_line example
2022-06-17 02:07:12 +09:00
rhysd
f7e56c61b1
simplify minimal example
2022-06-16 21:07:35 +09:00
rhysd
d4978cd82c
add multi example
2022-06-16 21:01:02 +09:00
rhysd
8278e1b85a
add missing Key::Esc variant
2022-06-16 20:18:29 +09:00
rhysd
2f38bc46a5
allow to change cursor style
2022-06-16 19:40:34 +09:00
rhysd
b7facac135
return if text was modified or not from methods to edit text
2022-06-15 20:16:47 +09:00
rhysd
6ebd099f28
add text editor example
2022-06-15 10:28:05 +09:00
rhysd
c019f10431
implement FromIterator for TextArea
2022-06-14 22:23:10 +09:00
rhysd
c1598c5600
add TextArea::is_empty()
2022-06-14 16:49:42 +09:00