Commit Graph

1939 Commits

Author SHA1 Message Date
Qi Xiao
a356967a32 Remove auto-use'ing. 2016-10-10 00:55:52 +08:00
Qi Xiao
ea08e1d891 Remove unreachable code. 2016-10-09 23:19:48 +08:00
Qi Xiao
3cdc462dda glob/parse_test.go: Fix a wrong call to Errorf. 2016-10-09 23:18:27 +08:00
Qi Xiao
8411fcfa29 In "use", make namespace before evaluating source.
This fixes #229.
2016-10-09 22:52:02 +08:00
Qi Xiao
b29c3f7fba The == builtin now requires at least 2 arguments. 2016-10-09 22:20:57 +08:00
huiyiqun
4715b96de3 fix #231: Node of next token may be nil, check it (#234) 2016-10-09 16:23:22 +08:00
Qi Xiao
bcd3339710 Get rid of (*EvalCtx).errorf. 2016-10-08 18:56:56 +08:00
Qi Xiao
e117ccd17f Add instruction for cn.dl.elvish.io 2016-10-08 13:17:01 +08:00
Qi Xiao
13358b3e8c Finer control over uploading from Travis. 2016-10-08 05:27:25 +02:00
Qi Xiao
b240fb39f1 Update wcwidth implementation. 2016-10-08 01:28:42 +08:00
Qi Xiao
1e0bc746b8 Add "wcswidth" builtin. 2016-10-07 19:23:35 +08:00
Qi Xiao
b873d7ec7a Move Wcwidth from edit to util; Wcwidths -> Wcswidth 2016-10-07 19:21:01 +08:00
Qi Xiao
10a5f0bde7 Refresh dir preview when changing filter in nav mode. 2016-10-04 00:50:50 +08:00
Qi Xiao
fed66d6fc1 Store schema version and don't upgrade DB if up-to-date. 2016-10-04 00:13:11 +08:00
Qi Xiao
1dae07a181 Use a transactio for adding command; report possible error. 2016-10-03 23:26:05 +08:00
Qi Xiao
ad969f08be Polish completion listing rendering. 2016-10-03 23:00:22 +08:00
Qi Xiao
aed4820f6d Split the completion column margin to both sides. 2016-10-03 22:45:52 +08:00
Qi Xiao
3e7ed66964 Use black-on-white for completion listing.
This addresses #184.
2016-10-03 22:06:36 +08:00
Qi Xiao
614f929918 Don't make completion listing needlessly tall. 2016-09-27 21:09:21 +02:00
Qi Xiao
45ae52a449 The println builtin is now called echo. 2016-09-22 12:24:00 +02:00
Qi Xiao
0a77a9b66b Allow newlines in map literals.
This fixes #216.
2016-09-19 16:33:25 +02:00
Qi Xiao
1cbeff11b9 Fix test case. 2016-09-19 16:29:30 +02:00
Qi Xiao
a9123a53c6 Don't use SQL "LIKE" for filtering in loc mode.
This fixes #218.
2016-09-19 16:24:16 +02:00
Qi Xiao
d53b02809e In "if", only reset verdict to true when nothing was executed. 2016-09-16 21:57:51 +02:00
Qi Xiao
fb0498f251 Update README.md
Add IMs.
2016-09-16 21:47:02 +02:00
Qi Xiao
acea50125c Add a sample for map usage. 2016-09-16 21:25:34 +02:00
Qi Xiao
3c89cffdcf eval: predReturn -> verdict 2016-09-16 17:33:39 +02:00
Qi Xiao
8c2f11f924 Don't set predReturn = true for "for" and "try" controls. 2016-09-16 17:30:17 +02:00
Qi Xiao
bff4b529eb Document the oddity of keys like Alt-a. 2016-09-16 16:40:09 +02:00
Qi Xiao
7bdca02695 Normalize Ctrl-{a-z} to upper case; Ctrl-{I,J} to {Tab,Enter}. 2016-09-16 16:01:22 +02:00
Qi Xiao
66473a0ce2 edit: Reorganize. 2016-09-16 13:43:49 +02:00
Qi Xiao
6d2b42c4d3 edit: Reorganize. 2016-09-15 22:54:32 +02:00
Qi Xiao
1e07108639 eval: Test return values in eval_test.go. 2016-09-15 20:31:20 +02:00
Qi Xiao
0b854da23e Fix broken test. 2016-09-15 20:11:12 +02:00
Qi Xiao
593f12f15f Indicate false predReturn with ✗. 2016-09-15 18:28:46 +02:00
Qi Xiao
da456b7f5c Makefile: Use "=" in call to test. 2016-09-15 16:24:25 +02:00
Qi Xiao
2cfcfd942b Update Makefile.
Skip vendored dependencies when testing; only upload binaries built by
go 1.7.
2016-09-15 16:18:03 +02:00
Qi Xiao
e6648ffd92 Vendor go-sqlite3; require go 1.6. 2016-09-15 15:59:56 +02:00
Qi Xiao
4fa61a44e5 Move the getopt package into tree. 2016-09-15 15:48:56 +02:00
Qi Xiao
a8dead083d Refresh navigation after Page{Up,Down}.
This fixes #37.
2016-09-15 15:44:24 +02:00
Qi Xiao
a1ddd23029 Improve complGetopt slightly. 2016-09-15 15:42:39 +02:00
Qi Xiao
3fdd289105 Builtin == now throws when given 0 argument. 2016-09-15 15:31:08 +02:00
Qi Xiao
d38f5feefc Small reorganization. 2016-09-15 15:30:37 +02:00
Qi Xiao
ea3360c3b1 Get rid of edit.BoundFunc.
Editor builtins now implement eval.FnValue directly, and there is a
quick path in (*Editor).CallFn to skip redirections when calling an
editor builtin.
2016-09-15 15:22:47 +02:00
Qi Xiao
b65825b471 README: e:PATH -> E:PATH 2016-09-15 15:20:26 +02:00
Qi Xiao
94964acdf7 edit: Reorganize 2016-09-15 14:54:43 +02:00
Qi Xiao
e42d700d39 Fix the completion for "$@". 2016-09-15 13:33:16 +02:00
Qi Xiao
9f22efe8db Builtins print{,ln} now accept option sep for seperator. 2016-09-15 12:16:30 +02:00
Qi Xiao
29752726be Support options in eval.WrapFn; use it in the splits builtin. 2016-09-15 03:25:58 +02:00
Qi Xiao
83f68a6ab3 Builtins now accept options as well. 2016-09-15 02:45:44 +02:00