Commit Graph

404 Commits

Author SHA1 Message Date
Qi Xiao
64c9bf842d edit: Hide errors at the end. 2016-02-16 14:47:14 +01:00
Qi Xiao
b86ff2eb06 Show parser errors as well. 2016-02-16 14:32:35 +01:00
Qi Xiao
9ca0f83256 Show content of compiler error. 2016-02-16 13:55:10 +01:00
Qi Xiao
a016fb8cbe Add an XXX about concurrency-safety. 2016-02-16 13:04:43 +01:00
Qi Xiao
4a5f836626 Show output of key-bound function in notification. 2016-02-16 12:13:35 +01:00
Qi Xiao
5000c60813 add Eval.Struct, use it to wrap structs. 2016-02-15 22:36:37 +01:00
Qi Xiao
fa8a69c5d3 edit: Fix interface of BindingTable. 2016-02-15 18:34:31 +01:00
Qi Xiao
a8635caab7 Use \e[2m (dim) as the style for completion and history. 2016-02-15 13:37:08 +01:00
Qi Xiao
d1fbe07f46 edit: Insert history in a separate goroutine. 2016-02-15 09:56:44 +01:00
Qi Xiao
0afe57b179 Parse G3 arrow keys. 2016-02-14 18:31:36 +01:00
Qi Xiao
b9a2693e57 edit: Only write bufListing when necessary. 2016-02-14 17:52:06 +01:00
Qi Xiao
a1abcdff28 Disable mouse tracking for now. 2016-02-14 15:35:32 +01:00
Qi Xiao
09c91f2628 edit: Break mode-changing sequences apart. 2016-02-14 15:35:07 +01:00
Qi Xiao
0e981ee6de Preliminary parsing of control structures. 2016-02-14 15:29:00 +01:00
Qi Xiao
fe2b07e936 Add a history listing mode. 2016-02-14 07:52:31 +00:00
Qi Xiao
d377d89dcb Fix logger prefixes. 2016-02-13 21:40:54 +01:00
Qi Xiao
4ed010ab7d Edit: Update the render algorithm.
The old erase sequence is restored and explained in the comment. Some
unncessary sequences are suppressed.
2016-02-13 21:38:33 +01:00
Qi Xiao
725d1d48c8 Fix last commit. 2016-02-13 21:06:35 +01:00
Qi Xiao
8e728ef076 Allow setting log file at runtime. 2016-02-13 21:05:35 +01:00
Qi Xiao
9483c60f19 edit: Simplify the erase sequence. 2016-02-13 20:54:39 +01:00
Qi Xiao
fee18f2543 edit: Use %+v to print mouse event. 2016-02-13 20:37:21 +01:00
Qi Xiao
089d4ad79c edit: read "normal" mouse event as well. 2016-02-13 20:37:02 +01:00
Qi Xiao
874855e967 edit: fix addTip. 2016-02-13 20:35:06 +01:00
Qi Xiao
3c718a9bff edit: Adjust reader logic to deal with CSI starter. 2016-02-13 20:19:14 +01:00
Qi Xiao
26c4eba04c Initialize currentSeq properly. 2016-02-13 19:43:49 +01:00
Qi Xiao
1dd89b8fe6 edit: Support multi-line tips.
The line-cutting strategy has also been refined.
2016-02-13 19:40:43 +01:00
Qi Xiao
55e3f4b029 pushTip -> addTip; make it nicer to use. 2016-02-13 19:27:21 +01:00
Qi Xiao
c08ae1ea54 edit: More small refactor. 2016-02-13 19:21:29 +01:00
Qi Xiao
4586199219 edit: Small refactor. 2016-02-13 19:17:20 +01:00
Qi Xiao
011f4dcaa2 Fix select-history-next. 2016-02-13 16:45:16 +01:00
Qi Xiao
2be8cef135 Fix compilation. 2016-02-13 16:42:08 +01:00
Qi Xiao
0785b4a847 Use pushTip for mouse event. 2016-02-13 16:41:25 +01:00
Qi Xiao
2c97375636 Consider bufNoti when calculating the height of bufListing. 2016-02-13 16:40:02 +01:00
Qi Xiao
213e43ee1b Implement notification.
This fixes #122.
2016-02-13 16:35:16 +01:00
Qi Xiao
d7cbcffdbf Remove per-session history.
This fixes #116.
2016-02-13 15:12:19 +01:00
Qi Xiao
90ab0ee6c2 Implement lastAmongDup in the session history too.
This fully fixes #116.
2016-02-13 01:02:13 +01:00
Qi Xiao
b7d473b92e edit: history -> historyState 2016-02-13 00:58:33 +01:00
Qi Xiao
939bd0e505 Only select unique histories from the storage.
This addresses #116.
2016-02-13 00:51:03 +01:00
Qi Xiao
c6bcb714c1 edit: Account for multi-width runes in delta drawing.
This fixes #117.
2016-02-12 20:30:10 +01:00
Qi Xiao
1e51776176 edit: Use a fixed timeout for runes in escape sequences. 2016-02-12 20:11:56 +01:00
Qi Xiao
7da398faef Fix parsing of unmodified function keys. 2016-02-12 19:52:11 +01:00
Qi Xiao
e1f8f4b675 Read mouse event.
This fixes #107. Now we can use elvish on touch screens! :D
2016-02-12 19:46:44 +01:00
Qi Xiao
7205edeb61 edit: Redesign the interface of reader. 2016-02-12 19:13:16 +01:00
Qi Xiao
1c98a9b97f Cleanups. 2016-02-12 13:31:24 +01:00
Qi Xiao
67d09b41b8 Refresh dir preview after cd'ing in navigation mode.
This fixes #111.
2016-02-12 12:28:58 +01:00
Qi Xiao
13143c4f2d Add editor builtin "redraw". 2016-02-12 12:04:20 +01:00
Qi Xiao
7bf9af9f5a Do a full refresh after running function from the editor.
This fully resolves #89.
2016-02-12 12:02:48 +01:00
Qi Xiao
b617aeca1d Add an accept-completion editor builtin. 2016-02-12 03:54:08 +01:00
Qi Xiao
dd0032eb07 Expose the key binding as a map-like value. 2016-02-12 03:44:08 +01:00
Qi Xiao
e49d44c090 edit: Make the name part of a builtin. 2016-02-12 03:20:10 +01:00