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
Qi Xiao
0a716b7109
Expose options as $opts in closures.
2016-09-15 00:00:52 +02:00
Qi Xiao
73d50f77cc
Eval and pass options to forms.
...
They are ignored for now, however.
2016-09-14 23:34:10 +02:00
Qi Xiao
8c8f11f35b
Fix the condition of showing scrollbar in nav mode.
2016-09-14 23:01:25 +02:00
Qi Xiao
c096bbff77
Use spaces and reverse color to draw scroll bar.
...
This has the advantage of always being free of gaps over using full
block characters.
2016-09-14 15:52:20 +02:00
Qi Xiao
b6183bacc3
Make le:complete-getopt write option descriptions.
2016-09-14 15:44:18 +02:00
Qi Xiao
49628c3524
Make edit.candidate implement eval.Value.
2016-09-14 15:43:50 +02:00
Qi Xiao
0a8ee17385
Parse desc keys in le:complete-getopt.
2016-09-14 15:27:45 +02:00
Qi Xiao
9a654e8b82
Add Stub.IntSignals to simplify INT signal capturing.
2016-09-14 14:56:00 +02:00
Yifan Gao
812fa60b63
README: build via homebrew ( #210 )
2016-09-14 12:40:34 +02:00
Qi Xiao
24da556dec
stub: Relay SIGINT onto a special channel.
2016-09-13 20:52:11 +02:00
Qi Xiao
1647926f75
Preliminary support for bg jobs.
...
This addresses #193 .
2016-09-13 12:02:30 +02:00
Qi Xiao
f71695575c
Editor.notify -> .Notify
2016-09-11 19:46:49 +02:00
Qi Xiao
17198dfa07
Make Editor.Notify concurrency-safe.
2016-09-11 19:43:50 +02:00
Qi Xiao
fc2a2c918c
Fix Editor.activeMutex.
2016-09-11 19:39:34 +02:00
Qi Xiao
b31e124a67
Add a forgotten file.
2016-09-11 19:17:59 +02:00
Qi Xiao
a3b02b0d42
Add eval.Editor; Evaler.store -> .Store.
2016-09-11 19:17:08 +02:00
Qi Xiao
4a3e3570e2
Fix coloring of command names.
2016-09-11 18:39:50 +02:00
Qi Xiao
dbd71abf79
Fix a comment.
2016-09-11 18:30:22 +02:00
Qi Xiao
66f295e12f
Color left hands of assignments.
2016-09-11 18:29:33 +02:00