Blaž Hrastnik
|
9275021497
|
ui: prompt: Better unicode support
We copied over eval_movement from wezterm, that already solves most of
our problems. self.cursor is now byte-based.
|
2021-06-20 16:38:58 +09:00 |
|
Benoît CORTIER
|
42142cf680
|
Fix panic when entering unicode in command prompt
It was attempted to use `String::insert` and `String::remove` to insert
without taking care of unicodes.
Fixes https://github.com/helix-editor/helix/issues/282
|
2021-06-18 10:08:32 +09:00 |
|
Ivan Tham
|
124514aa70
|
Add cursor kind to separate hidden cursor from pos
Now IME cursor position should be correct since we can still set cursor
position without drawing the cursor.
|
2021-06-15 23:46:21 +08:00 |
|
Ivan Tham
|
002f1ad397
|
Add filter ability to picker
Inspired by doom emacs. Able to filter picker options multiple times.
|
2021-06-15 12:00:31 +08:00 |
|
Ivan Tham
|
1bda454149
|
Add ctrl-w for prompt
|
2021-06-15 01:06:53 +09:00 |
|
Blaž Hrastnik
|
d545e61644
|
ui: Prompt should figure out a reasonable column width
Fixes #192
Refs #225
|
2021-06-13 22:28:18 +09:00 |
|
Wojciech Kępka
|
d8b5d1181f
|
Add Copy derive to PromptEvent
|
2021-06-13 20:48:18 +09:00 |
|
Wojciech Kępka
|
b500a2a138
|
commands: Add more write commands
|
2021-06-13 20:48:18 +09:00 |
|
Blaž Hrastnik
|
83723957fe
|
Fix crash when too many completions available
Refs #81
|
2021-06-08 21:58:26 +09:00 |
|
Kevin Sjöberg
|
3494bb8ef0
|
Refactor index assignment
Co-authored-by: Ivan Tham <pickfire@riseup.net>
|
2021-06-06 21:48:19 +09:00 |
|
Kevin Sjöberg
|
a4ff8cdd8a
|
Allow moving backwards in completions
|
2021-06-06 21:48:19 +09:00 |
|
Kevin Sjöberg
|
145bc1970a
|
Trigger directory completion upon pressing Enter
|
2021-06-06 21:48:19 +09:00 |
|
Kirawi
|
c17dcb8633
|
Fixing Multiple Panics (#121)
* init
* wip
* wip
|
2021-06-05 12:49:19 +09:00 |
|
Blaž Hrastnik
|
c0332bd935
|
Fix split sizes getting out of sync with the terminal size, refs #69
|
2021-06-03 10:28:49 +09:00 |
|
Blaž Hrastnik
|
a2147fc7d5
|
Change help prompt styling
|
2021-06-01 12:00:25 +09:00 |
|
Blaž Hrastnik
|
d708efe275
|
Fix cursor positioning for prompts
|
2021-05-29 00:06:23 +09:00 |
|
Blaž Hrastnik
|
094203c74e
|
Update deps, introduce the new tree-sitter lifetimes
|
2021-05-28 00:00:51 +09:00 |
|
Blaž Hrastnik
|
ff4c1d05de
|
Replace the Clear widget with buffer.clear/clear_with.
|
2021-05-09 18:13:50 +09:00 |
|
Blaž Hrastnik
|
1255bcb8a3
|
Simplify the compositor callback.
|
2021-05-09 18:02:31 +09:00 |
|
Blaž Hrastnik
|
0fe19ae472
|
clippy lint
|
2021-05-08 18:26:49 +09:00 |
|
Blaž Hrastnik
|
d24844b73d
|
ui: Render command mode doc text if available.
|
2021-05-08 17:33:06 +09:00 |
|
Blaž Hrastnik
|
f0712479cb
|
Define text color (mostly) in theme.toml.
|
2021-05-07 17:42:09 +09:00 |
|
Blaž Hrastnik
|
f87dee926a
|
Simplify prompt autocompletion rendering code.
|
2021-05-07 17:31:28 +09:00 |
|
Blaž Hrastnik
|
fd4fd12fa3
|
clippy lint
|
2021-05-06 17:20:00 +09:00 |
|
Blaž Hrastnik
|
0e9ecccfc1
|
clippy: Drop or-patterns for now because they're not on stable rust yet
|
2021-04-06 19:51:15 +09:00 |
|
Blaž Hrastnik
|
ceea5eacd8
|
clippy lint
|
2021-03-31 23:42:16 +09:00 |
|
Blaž Hrastnik
|
ad3325db8e
|
minor: Remove a few unwraps.
|
2021-03-26 11:03:14 +09:00 |
|
Blaž Hrastnik
|
698e4ddea4
|
clippy: Factor out a Completion type.
|
2021-03-22 13:16:56 +09:00 |
|
Blaž Hrastnik
|
cbcacb1063
|
Merge some imports.
|
2021-03-22 12:40:07 +09:00 |
|
Blaž Hrastnik
|
a32806b490
|
Improve completion: src/<tab> will now correctly complete to src/main.rs
|
2021-03-21 14:13:49 +09:00 |
|
Blaž Hrastnik
|
8ba1e15d29
|
Expose doc.syntax() via accessor.
|
2021-03-18 14:53:29 +09:00 |
|
Blaž Hrastnik
|
857bce0e30
|
ui: Rework command mode, implement file path completion.
|
2021-03-01 18:02:31 +09:00 |
|
Blaž Hrastnik
|
d4b85ce18d
|
popup: wip work on completion popups
|
2021-02-09 15:40:47 +09:00 |
|
Blaž Hrastnik
|
777a80917d
|
Address clippy lints.
|
2021-01-08 16:37:36 +09:00 |
|
Blaž Hrastnik
|
3d3295bb75
|
ui: buffer picker on ctrl-b
|
2020-12-21 16:26:22 +09:00 |
|
Blaž Hrastnik
|
7c75ec04e8
|
File picker mockup, reuses the line editor work done on Prompt.
|
2020-12-17 18:08:16 +09:00 |
|
Blaž Hrastnik
|
8f0b28aeb8
|
Make the select prompt interactive.
|
2020-12-15 19:29:56 +09:00 |
|
Blaž Hrastnik
|
f92998a14b
|
Prompt needs to close on enter.
|
2020-12-14 15:59:48 +09:00 |
|
Blaž Hrastnik
|
ca809617b2
|
Take prompt length into account.
|
2020-12-14 15:58:03 +09:00 |
|
Blaž Hrastnik
|
ed6a4c4bd2
|
wip: Use prompt for interactive commands.
|
2020-12-14 14:12:54 +09:00 |
|
Blaž Hrastnik
|
07801b60bc
|
Remove the prompt on ESC.
|
2020-12-13 13:57:28 +09:00 |
|
Blaž Hrastnik
|
7dc24a25ba
|
Move ui modules under a ui:: namespace.
|
2020-12-13 13:44:51 +09:00 |
|