Commit Graph

22 Commits

Author SHA1 Message Date
Cheer Xiao
d5ce9fe2e4 Add edit.writer.writes 2013-12-31 11:31:59 +08:00
Cheer Xiao
995900dadc Multi-column layout for completion menu 2013-12-31 11:31:54 +08:00
Cheer Xiao
c9f80cc70a Fix completion preview after spaces; clearer logic of completion preview 2013-12-30 16:18:24 +08:00
Cheer Xiao
6c2ef48063 Implement completion preview 2013-12-27 09:37:50 +08:00
Cheer Xiao
3569dcaea9 Correct comment. 2013-12-27 09:13:56 +08:00
Cheer Xiao
10224ade5b Move lexing from writer to editor 2013-12-26 20:39:59 +08:00
Cheer Xiao
4c3196d4f0 Dedicated struct for completion candidate; more stub 2013-12-26 20:16:17 +08:00
Cheer Xiao
fa7d8f5d18 Put tab completition state into dedicated struct 2013-12-25 16:43:52 +08:00
Cheer Xiao
6932fd9e32 Stub tab-completion 2013-12-24 19:01:01 +08:00
Cheer Xiao
43a865de8d Highlight [in]valid command names and variable names
A dedicated edit.Highlighter is implemented.
2013-11-19 20:28:45 +08:00
Cheer Xiao
6042e8f3ee edit/writer: When switching attr, clear attr first. 2013-10-28 10:37:36 +08:00
Cheer Xiao
ba15b37dc1 edit: Comment, cleanup 2013-10-03 22:10:57 +08:00
Cheer Xiao
b217131a13 edit: point -> dot, in spirit of acme (or maybe sam...) 2013-10-03 21:57:44 +08:00
Cheer Xiao
1598c02eaa eval: Keep the point as index into string 2013-10-03 21:52:46 +08:00
Cheer Xiao
5586825704 edit: Comments 2013-10-03 21:44:37 +08:00
Cheer Xiao
84ff82d249 edit: Implement point (cursor as seen by user) 2013-10-03 21:37:07 +08:00
Cheer Xiao
f142655b09 edit: Let the writer handle \n in text; drop unprintable runes 2013-10-03 21:29:46 +08:00
Cheer Xiao
4ef9564800 edit: Clear style after writing line 2013-09-23 16:34:00 +08:00
Cheer Xiao
916a977546 edit: Let writer keep a copy of the terminal file 2013-09-21 10:32:53 +08:00
Cheer Xiao
7b43256549 edit: Add a pos struct to storage position 2013-09-20 09:28:32 +08:00
Cheer Xiao
42e464ddae edit: Re-support tips
buffer now also keeps the position of the cursor.
2013-09-20 00:26:19 +08:00
Cheer Xiao
86b22ee87b edit: Factor buffer keeping & syncing to a struct writer 2013-09-19 18:36:47 +08:00