Commit Graph

66 Commits

Author SHA1 Message Date
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
Qi Xiao
2cdbf67147 Slightly simplify Repr. 2016-02-19 20:31:54 +01:00
Qi Xiao
7efeb9c56f Remove ContextualError. 2016-02-19 17:46:21 +01:00
Qi Xiao
ce4d6ff7f2 Disable a test failing on OS X. 2016-02-17 01:53:10 +01:00
Qi Xiao
be3ca4d050 Use "ls -A" to test against RootNames. 2016-02-17 01:47:44 +01:00
Qi Xiao
eebb759edb Fully cover util/exception.go. 2016-02-17 01:43:58 +01:00
Qi Xiao
31fb99daa7 Test against util.RootNames. 2016-02-17 01:41:00 +01:00
Qi Xiao
81422c1f70 Fix an incomplete database. 2016-02-17 01:40:46 +01:00
Qi Xiao
284b99c858 Fully cover util/strings.go. 2016-02-17 01:32:52 +01:00
Qi Xiao
7cb9a9496e util: Test Getwd thoroughly. 2016-02-17 01:27:51 +01:00
Qi Xiao
ffc1634ce5 util: GetHome now uses $HOME as override instead of fallback. 2016-02-17 01:23:36 +01:00
Qi Xiao
fe449c66bc Merge the print package into util. 2016-02-17 00:35:20 +01:00
Qi Xiao
5db90fd20f Merge *util packages into an util package. 2016-02-16 19:15:29 +01:00
Cheer Xiao
900d814edb Move util/deepprint{"" _test}.go into print package
This fully eliminates the util package.
2015-02-26 17:10:37 +01:00
Cheer Xiao
05e97720ca Move util/strings{"" _test} into dedicated strutil package 2015-02-26 17:04:07 +01:00
Cheer Xiao
876b7ac40c Move util/path.go into dedicated sysutil package 2015-02-26 16:50:20 +01:00
Cheer Xiao
48c9fbd1a2 Move util/ceildiv{"" _test} to edit/ 2015-02-26 15:32:49 +01:00
Cheer Xiao
d9e94440cb Move util/{after async_reader}.go to edit/ 2015-02-26 15:31:21 +01:00
Cheer Xiao
91af2a8e8c Don't use dashes in golang sources 2015-02-25 16:43:31 +01:00
Cheer Xiao
ab1afb975a golint fixes for util 2015-02-24 21:46:08 +01:00
Cheer Xiao
fd2e26700a Move error-related utilities from util to errutil 2015-02-09 12:28:36 +01:00
Cheer Xiao
b9dfd552b2 util.{Panic Recover} -> util.{Throw Catch} 2015-02-09 12:11:47 +01:00
Cheer Xiao
a1454e42c1 Fix a fmt call with missing arguments 2015-01-22 19:08:05 +01:00
Cheer Xiao
1ed20259e9 Add a "title" attribute to ContextualError 2015-01-20 20:22:20 +01:00
Cheer Xiao
1ad8fcaa1f **.go: xiaq/elvish -> elves/elvish 2014-10-29 20:50:10 +01:00
Guangyu Zhang
154517ceb0 eval symlink of ioutil.TempDir 2014-09-28 11:09:31 +08:00
Guangyu Zhang
e0212a7353 Add Mac OS X support 2014-09-28 10:29:20 +08:00
Cheer Xiao
176abcb0b1 Move util/socket.go to service/ 2014-09-21 17:52:24 +02:00
Cheer Xiao
ea9dabd261 Add util.NthRune 2014-09-21 13:26:47 +02:00
Cheer Xiao
a4cfc41673 Add util.SubstringByRune 2014-09-21 13:22:34 +02:00
Cheer Xiao
98c034f581 util/async-reader.go: set file back to blocking mode and sync properly 2014-03-17 22:47:09 +08:00
Cheer Xiao
0624368bcc Use util.AsyncReader to build a new async edit.Reader
Now we can start really dealing with signals!
2014-03-10 21:22:54 +08:00
Cheer Xiao
dddfda192f util/async-reader.go: Fix race condition by only spawning a single .run() 2014-03-10 21:21:05 +08:00
Cheer Xiao
6b7e1296c1 Add util.Find{FirstEOL LastSOL}; use it 2014-03-10 00:31:22 +08:00
Cheer Xiao
f50bfa6707 async-reader.go: Panic when failing to write to pipe 2014-03-09 16:20:05 +08:00
Cheer Xiao
e1b98bfc83 Add util.AsyncReader, to supersede util.TimedReader 2014-03-09 15:16:56 +08:00
Cheer Xiao
76f5d793d3 Add elvishd 2014-02-10 11:33:01 +08:00
Cheer Xiao
6ee8167250 util.GoPrint -> .DeepPrint 2014-02-06 20:50:17 +08:00