Commit Graph

1411 Commits

Author SHA1 Message Date
Qi Xiao
34c0d96830 Query HOME consistently.
A bug with osutil.Getcwd was also fixed. This fixes #91.
2016-02-11 23:43:48 +01:00
Qi Xiao
7f5f96ca0f When starting ReadLine, reset old buffer of the writer.
This fixes #101.
2016-02-11 23:15:17 +01:00
Qi Xiao
6d2d63387d Support completion ~uname/...
This fixes #86.
2016-02-11 23:03:01 +01:00
Qi Xiao
4ac2572555 Add a test case against parse.Parse. 2016-02-11 22:59:21 +01:00
Qi Xiao
9cbec16054 Report multiple errors in ReadLine. 2016-02-11 21:45:27 +01:00
Qi Xiao
6450900774 Change uploading URL. 2016-02-11 21:16:34 +01:00
Qi Xiao
4d92824da6 Trivial control flow change. 2016-02-11 21:06:47 +01:00
Qi Xiao
9f4bea6717 Don't write margin after last column in completion listing.
This fixes #106.
2016-02-11 21:06:04 +01:00
Qi Xiao
dad3ddd86e Update comment. 2016-02-11 20:28:18 +01:00
Qi Xiao
00b2f372bc Use basic readline when stdin is not tty or editor errored.
This fixes #78.
2016-02-11 19:32:40 +01:00
Qi Xiao
6836681021 Instead panicking, propagate errors when reading terminal. 2016-02-11 19:27:35 +01:00
Qi Xiao
9a77f61287 Fix eval tests. 2016-02-11 19:11:38 +01:00
Qi Xiao
72f92911e2 Put myself in foreground after pipeline finishes.
This fixes #105.
2016-02-11 18:59:18 +01:00
Qi Xiao
a21f2a1bb7 Handle SIGINT when waiting for tasks to exit.
Tasks are given 50ms to exit. If they didn't, they are left running but has a
special "still running" exit status.

This mitigates #100.
2016-02-11 15:55:22 +01:00
Qi Xiao
655688e719 Use channel, not shared array to collect exit status.
Don't communicate by sharing memory, share memory by communicating.
2016-02-11 15:32:44 +01:00
Qi Xiao
bf10f121d7 eval.getHome -> osutil.GetHome 2016-02-11 00:12:48 +01:00
Qi Xiao
0150905b68 Remove Esc from the default binding of insert mode. 2016-02-10 23:57:28 +01:00
Qi Xiao
4f74be8c1e Add a trailing space when completing file name. 2016-02-10 23:56:33 +01:00
Qi Xiao
8a18ca4fa1 Implement an Indexer -> Caller adapter.
This fixes #90.
2016-02-10 22:01:56 +01:00
Qi Xiao
5e02996838 Fix outdated error message. 2016-02-10 21:52:48 +01:00
Qi Xiao
d41b8d8605 Really quit on SIGQUIT. 2016-02-10 21:49:39 +01:00
Qi Xiao
7578b4cf63 Quit on SIGQUIT. 2016-02-10 21:48:08 +01:00
Qi Xiao
018de2ad8b EvalInteractive now uses a closed channel for input.
This prevents commands like `from-json` from hanging elvish when they appear
as the first form of a pipeline.
2016-02-10 21:46:02 +01:00
Qi Xiao
2fb73f4680 parse: Implement tryAssignment by tracking ps.errors. 2016-02-10 21:33:56 +01:00
Qi Xiao
a672ff29c3 linux -> Linux 2016-02-10 01:18:06 +01:00
Qi Xiao
be9d9c6d09 Update README.md.
Added a section on prebuilt binaries; move the section on name to the end.
2016-02-10 01:16:31 +01:00
Qi Xiao
a560be7206 Don't reveal token in Travis builds. 2016-02-10 01:01:00 +01:00
Qi Xiao
be7c2ae710 Let Travis upload built binary to my VPS. 2016-02-10 00:53:23 +01:00
Qi Xiao
5841d45251 Give up the attempt of using Travis to upload artifacts. 2016-02-09 23:54:28 +01:00
Qi Xiao
841cc51898 This is the 5th attempt to get Travis to work. 2016-02-09 23:45:22 +01:00
Qi Xiao
497df320bf Attempt to fix .travis.yml again. 2016-02-09 23:29:30 +01:00
Qi Xiao
5ee101319b Fix .travis.yml (again). 2016-02-09 23:25:10 +01:00
Qi Xiao
133fb465f9 Try to fix the "travis" target. 2016-02-09 23:20:31 +01:00
Qi Xiao
ccb4ca16f9 Generate artificat on Travis-CI. 2016-02-09 23:11:31 +01:00
Qi Xiao
6dd37b5c10 Merge pull request #102 from zhsj/fix-rc
Initialize editor before loading rc.elv
2016-02-09 21:03:39 +01:00
Shengjing Zhu
b526a592f3 Initial editor beforce load rc.elv
Now we can define bind in rc.elv
2016-02-10 03:15:47 +08:00
Qi Xiao
431e5b5fd7 Put go dumpstackOnQuit() in main. 2016-02-09 18:39:24 +01:00
Qi Xiao
9bb9afb251 Improve signal handling. 2016-02-09 18:38:26 +01:00
Qi Xiao
307f7fe6f0 Add a builtin -sleep. 2016-02-09 18:18:18 +01:00
Qi Xiao
a768ba8f40 Fix last commit... 2016-02-09 18:08:39 +01:00
Qi Xiao
67b9de70ce eval: When compounding, reuse vs with caution.
This fixes #99.
2016-02-09 18:07:06 +01:00
Qi Xiao
c0c8295c2f Fix .travis.yml 2016-02-09 12:30:17 +01:00
Qi Xiao
ebd0666d51 Build for OSX in Travis. 2016-02-09 12:27:45 +01:00
Qi Xiao
90684d9365 Merge pull request #97 from zhsj/dockerfile
update Dockerfile
2016-02-09 11:20:20 +01:00
Qi Xiao
63c9a4a45a Merge pull request #98 from zhsj/readme
fix readme doc
2016-02-09 11:20:08 +01:00
Shengjing Zhu
cd990e812e fix readme doc
wrong example of modifying env:PATH
2016-02-09 17:15:33 +08:00
Shengjing Zhu
b3ba476c05 update Dockerfile
google/golang-runtime is deprecated.
2016-02-09 16:43:58 +08:00
Qi Xiao
6097cfd76d eval: Introduce (*Port).Fork. 2016-02-09 01:40:36 +01:00
Qi Xiao
4ff3f771d1 eval: Don't close ports in (*Evaler).Eval. 2016-02-09 01:34:19 +01:00
Qi Xiao
d373d6398d Remove generate from the all target of Makefile 2016-02-09 01:24:21 +01:00