Qi Xiao
|
6d3e56b4a1
|
edit: Move more setup into edit/tty.Setup.
The utility of concatenating multiple errors has changed slightly.
|
2017-12-17 02:59:04 +00:00 |
|
Qi Xiao
|
81617e8ef2
|
Fix minor issues found by gofmt, go vet, and misspell.
|
2017-12-14 01:28:07 +00:00 |
|
Qi Xiao
|
457e2e7626
|
util: Make test pass on Windows.
|
2017-12-08 00:52:21 +00:00 |
|
Qi Xiao
|
c44e2d7321
|
Use build tags in a more compact way.
|
2017-12-08 00:45:10 +00:00 |
|
Qi Xiao
|
a490b57911
|
util: Add ClaimFile, a utility for getting log file.
|
2017-12-07 02:00:18 +00:00 |
|
Qi Xiao
|
a4c4c75aec
|
util: Export SetOutput; clarify condition for closing old output.
|
2017-12-07 02:00:18 +00:00 |
|
Qi Xiao
|
fab99616fb
|
util: Append, not truncate, log files.
|
2017-12-06 23:16:03 +00:00 |
|
Qi Xiao
|
d677f88a09
|
Fix test on Unix.
|
2017-12-06 17:59:55 +01:00 |
|
Qi Xiao
|
b74b4ab87e
|
sys/ and util/: Fix test cases on Windows.
|
2017-12-05 23:20:12 +00:00 |
|
Qi Xiao
|
9fe0250955
|
Use os/exec.LookPath to fix external command search on Windows.
|
2017-12-05 00:48:38 +01:00 |
|
Tw
|
2a579f0d0c
|
use proper print in pprinter
Signed-off-by: Tw <tw19881113@gmail.com>
|
2017-11-23 10:28:56 +01:00 |
|
Qi Xiao
|
41018bd1ab
|
util: Thrown.Error -> .Wrapped; implement Error()
|
2017-09-29 22:14:55 +08:00 |
|
Qi Xiao
|
e57f018199
|
util: Fix signature of ThrowsAny.
|
2017-09-29 22:03:54 +08:00 |
|
Qi Xiao
|
bfbf6ca757
|
util: Add ThrowsAny, along with test cases.
|
2017-09-29 22:02:44 +08:00 |
|
Qi Xiao
|
02db4f012c
|
util: Add WithTempDir.
|
2017-09-21 00:10:03 +01:00 |
|
Qi Xiao
|
4f572d0095
|
Add util.PprintError.
|
2017-07-14 00:06:37 +01:00 |
|
Qi Xiao
|
ec8aca54f5
|
Enhance ScanIntoOpts, and rename to ScanOptsToStruct.
|
2017-07-13 22:29:28 +01:00 |
|
Qi Xiao
|
e99031f3e2
|
Use understore in filenames.
|
2017-06-26 19:47:10 +02:00 |
|
Qi Xiao
|
830b7fe9c9
|
Experimental support for subseq matcher in compl mode.
|
2017-05-24 01:25:10 +01:00 |
|
Qi Xiao
|
4a8d3adaad
|
util: Fix getwd_test.go.
|
2017-05-23 17:30:55 +01:00 |
|
Qi Xiao
|
7727601313
|
Add a helper function for testing in a tempdir.
|
2017-05-23 05:40:49 +01:00 |
|
Qi Xiao
|
3d001ead25
|
In tests that chdir, remember to go back.
|
2017-05-23 05:27:48 +01:00 |
|
Qi Xiao
|
45a0f1e1ad
|
util: Add helpers for testing throws.
|
2017-05-21 02:08:18 +01:00 |
|
Qi Xiao
|
16bc9c5a81
|
util.AllExecutables -> EachExecutable; callback instead of channel.
|
2017-02-09 15:57:16 -08:00 |
|
Qi Xiao
|
571e0879d0
|
Make util.Pprinter take an indent string.
|
2017-01-29 18:20:35 +00:00 |
|
Qi Xiao
|
ddbbfb9d33
|
Clean up exception representation.
Exceptions are now already represented by eval.Exception, which consist of an
error and a traceback. eval.Error is dropped.
|
2017-01-29 02:30:04 +00:00 |
|
Qi Xiao
|
568d664ded
|
util.Exception -> .Thrown
|
2017-01-29 00:51:22 +00:00 |
|
Qi Xiao
|
ee81f0680c
|
Use specific error types for parse, compile and eval.
Generic error types in util are ditched.
|
2017-01-28 14:39:52 +00:00 |
|
Qi Xiao
|
beaae2a9e6
|
Test util.DeepPrint on maps correctly; fix a text.
|
2016-10-15 13:38:40 +08:00 |
|
Qi Xiao
|
38001c0d0c
|
util: Support overriding wcwidth; control chars now have 0 width.
|
2016-10-14 17:52:35 +08:00 |
|
Qi Xiao
|
92ca5f5bc7
|
util: Add a test.
|
2016-10-14 00:36:09 +08:00 |
|
Qi Xiao
|
7054a4f0fe
|
Store a util.Traceback in util.PosError.
|
2016-10-13 23:03:17 +08:00 |
|
Qi Xiao
|
4d7d8d8911
|
util.RootStar -> FullNames
|
2016-10-13 17:02:42 +08:00 |
|
Qi Xiao
|
5fe031b9b4
|
Don't treat the U+25a0 - U+0x27bf as emojis.
This fixes #271.
|
2016-10-13 13:54:35 +08:00 |
|
Qi Xiao
|
ec84f39a8b
|
Don't show column number in traceback.
|
2016-10-11 23:01:31 +08:00 |
|
Qi Xiao
|
258059b490
|
Make util.Traceback a singly-linked list; fix TracebackError formatting.
|
2016-10-11 22:11:42 +08:00 |
|
Qi Xiao
|
4266dee6d9
|
Introduce util.TracebackError and use it in eval.
There is little functionality change ATM though; only one entry of
traceback is shown.
|
2016-10-11 21:12:11 +08:00 |
|
Qi Xiao
|
67c0dedb02
|
Make error traceback more pretty.
|
2016-10-11 20:26:42 +08:00 |
|
Qi Xiao
|
b240fb39f1
|
Update wcwidth implementation.
|
2016-10-08 01:28:42 +08:00 |
|
Qi Xiao
|
b873d7ec7a
|
Move Wcwidth from edit to util; Wcwidths -> Wcswidth
|
2016-10-07 19:21:01 +08:00 |
|
Qi Xiao
|
261e43abac
|
Fix context in exception traceback.
|
2016-06-22 01:03:44 +02:00 |
|
Qi Xiao
|
70d9428e68
|
Add a missing space to the pprint of PosError.
|
2016-03-30 18:33:24 +02:00 |
|
Qi Xiao
|
b56aa4dd47
|
Move things.
|
2016-02-28 01:56:17 +01:00 |
|
Qi Xiao
|
f2e51fbd71
|
Add util.MatchSubseq.
|
2016-02-27 18:48:42 +01:00 |
|
Qi Xiao
|
6b625c0e8d
|
New builtin "tilde-abbr".
|
2016-02-23 13:29:10 +01:00 |
|
Qi Xiao
|
c67ad408ee
|
Fix util.RootStar.
|
2016-02-23 03:02:23 +01:00 |
|
Qi Xiao
|
cea7d7675c
|
Implement an "all" modifier for wildcards; fix tests.
|
2016-02-23 02:45:35 +01:00 |
|
Qi Xiao
|
cffc728530
|
Don't search whenever external command contains /.
This fixes #150.
|
2016-02-22 23:46:18 +01:00 |
|
Qi Xiao
|
d2d119af7f
|
Move functionality of edit/search.go to util.
|
2016-02-21 14:32:13 +01:00 |
|
Qi Xiao
|
169b9917e3
|
Refine evaler's error reporting.
|
2016-02-20 00:48:13 +01:00 |
|