1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-03 22:35:50 +03:00
Граф коммитов

116 Коммитов

Автор SHA1 Сообщение Дата
rhysd
fd174b316e use single atomic u32 value instead of two atomic u16 values
to ensure load/store row and col atomically
2022-07-11 10:55:48 +09:00
rhysd
61ce49b331 separate widget implementation to src/widget.rs 2022-07-11 10:55:48 +09:00
rhysd
44bf996941 separate implementation for highlighting to src/highlight.rs 2022-07-11 03:06:43 +09:00
rhysd
876ebf96cb separate text search implementation to src/search.rs 2022-07-11 01:50:46 +09:00
rhysd
f5e3347e4c update changelog for v0.1.4 changes 2022-07-11 01:07:54 +09:00
rhysd
bd131d9773 bump up version to v0.1.4 2022-07-11 01:01:44 +09:00
rhysd
aaabfe1613 fix cursor position after undo delete_line_by_head 2022-07-10 22:05:08 +09:00
rhysd
db83c4d14a add benchmark suites for text search 2022-07-10 21:54:17 +09:00
rhysd
b4ececff71 add benchmark to insert lines randomly 2022-07-09 22:11:11 +09:00
rhysd
ee72b48fea add first benchmark 2022-07-09 18:44:00 +09:00
rhysd
2ed0df07cf add project-local cargo aliases 2022-07-09 17:44:37 +09:00
rhysd
8ec321f9dd fix cursor line style is not applied when cursor is at end of line 2022-07-09 12:39:55 +09:00
rhysd
ea377db4ee prefer Into::into to From::from 2022-07-09 12:38:05 +09:00
rhysd
e11a97ce49 update changelog for v0.1.3 changes 2022-07-08 18:30:44 +09:00
rhysd
dd59e8edb4 bump up version to v0.1.3 2022-07-08 17:50:22 +09:00
rhysd
259a626c97 Merge branch 'search' 2022-07-08 17:44:38 +09:00
rhysd
fee107847e use ↓/↑ instead of ^←/^→ to search next/previous in editor example 2022-07-08 17:40:59 +09:00
rhysd
81da9ce094 describe usage for text search in document 2022-07-08 17:40:59 +09:00
rhysd
e78171913a fix CI failure since termion does not support Windows 2022-07-08 12:53:46 +09:00
rhysd
1db4830a3c fix cursor position on searching backward 2022-07-08 12:50:59 +09:00
rhysd
358e9dbc52 search forward/back with ^N/^P in editor example 2022-07-08 12:43:07 +09:00
rhysd
5aa25ea24d show 'match not found' error in search box title in editor example 2022-07-08 12:17:53 +09:00
rhysd
dd409d6c4d fix search text highlight on zero width match 2022-07-08 12:17:53 +09:00
rhysd
8320fcdbb8 add tests and document for text search 2022-07-08 12:17:53 +09:00
rhysd
86bd8dd6ef report pattern error in title of search box in editor example 2022-07-08 10:22:54 +09:00
rhysd
7bc9a959f2 keep undo history on closing search box in editor example 2022-07-08 10:12:49 +09:00
rhysd
8008c0ebda fix search_forward/search_back should finally match to the cursor position 2022-07-08 10:06:26 +09:00
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