Commit Graph

3739 Commits

Author SHA1 Message Date
Tobias Klauser
a78f675a47 sys: use unix.IoctlGetWinsize and unix.Winsize (#792)
Use the IoctlGetWinsize function and Winsize type from
golang.org/x/sys/unix in sys.GetWinsize instead of duplicating it.
2019-01-29 18:01:58 -08:00
Qi Xiao
6fe68e3744 edit/completion: Deduplicate candidates.
This fixes #791.
2019-01-26 08:22:40 -08:00
pltrz
1875b1a7ad fix inconsistent example filename in learn/fundamentals page (#790) 2019-01-22 01:09:59 +00:00
Qi Xiao
d939a10903 Remove accidentally commited test program. 2018-12-17 23:59:28 +00:00
Qi Xiao
d262a8c61c Fix test on Windows (for real). 2018-12-17 23:13:32 +00:00
Qi Xiao
dd8a5769f5 newedit: Fix test on Windows.
Windows doesn't allow colons in filenames.
2018-12-16 20:10:04 +00:00
Qi Xiao
5c99af44ff newedit: Set up dependencies for the highlighter. 2018-12-16 13:27:53 +00:00
Qi Xiao
eaca2e36d9 tt: Call t.Helper. 2018-12-16 12:51:22 +00:00
Qi Xiao
efb8be3f4e Add builtins only-{bytes,values}.
This fixes #784.
2018-12-16 10:40:10 +00:00
Qi Xiao
1ce9b3933c newedit: Complete the test on SIGHUP; fix name for test on SIGINT. 2018-12-09 12:31:29 +00:00
Qi Xiao
c47df5ea18 newedit/highlight: Test that out-of-order updates are dropped correctly.
This package now has 100% test coverage!
2018-12-09 12:19:40 +00:00
Qi Xiao
10ef6ccc5f newedit/highlight: Test Highlighter instead of highlight.
Also fixed a bug where the state of the highlighter is never correctly
maintained.
2018-12-09 12:03:10 +00:00
Qi Xiao
eb7d704110 newedit/core: Highlighter.LateUpdates also deliver styled.Text.
Although the result is not used, it makes Highlighter.LateUpdates and
Prompt.LateUpdates identical.
2018-12-08 14:10:11 +00:00
Qi Xiao
28cbb3112e newedit/highlighter: Highlighter now relays late updates. 2018-12-08 13:47:33 +00:00
Qi Xiao
25bdb6ecd7 newedit/highlight: Make Highlighter opaque. 2018-12-07 20:19:58 +00:00
Qi Xiao
4aecff3af1 newedit/highlight: hlDep -> Dep. 2018-12-07 20:18:13 +00:00
Qi Xiao
2029ee781d newedit: Change Highlighter to allow late updates.
It is now an interface instead of a callback, in a similar fashion to
Prompt.

The call site of the highlighter has also been moved out of the render
function to prepare for relaying late updates..
2018-12-06 23:15:53 +00:00
Qi Xiao
3dae357e5e newedit/highlight: Support dependencies as callbacks. 2018-11-25 23:01:10 +00:00
Qi Xiao
6daca30365 Implement Ranger for *diag.SourceRange and *eval.CompilationError. 2018-11-20 23:22:51 +00:00
Qi Xiao
ee5b34ef00 newedit/highlight: Elide parse errors at the end. 2018-11-20 21:53:46 +00:00
Qi Xiao
65508e728f parse: Name chain shift: ErrorEntry -> Error -> MultiError.
The Error type now implements the error interface.
2018-11-19 23:05:05 +00:00
Qi Xiao
11e8629cb2 _tools/elvdoc: Support -R, like grep. 2018-11-19 22:18:41 +00:00
Qi Xiao
53feefe839 util: Remove unused function InTempDir. 2018-11-19 20:50:52 +00:00
Qi Xiao
c42b121428 newedit: Add common buffer builtins to the default binding. 2018-11-19 20:03:09 +01:00
Qi Xiao
22f9583850 newedit: Rename buffer builtins. 2018-11-19 20:02:49 +01:00
Qi Xiao
78deffb73e Change the elvdoc comment to //elvdoc: instead of //elvish:doc- 2018-11-19 19:54:05 +01:00
Qi Xiao
095c180f8f newedit: Add elvdoc for buffer builtins. 2018-11-19 19:48:08 +01:00
Qi Xiao
6849703416 newedit: Add move- and kill- builtin functions. 2018-11-19 16:15:38 +01:00
Qi Xiao
05391c31a0 newedit: Reorganize builtin functions. 2018-11-19 12:27:11 +01:00
Qi Xiao
b544378b37 _website/home.js: Make the expand button toggle expansion. 2018-11-18 17:24:34 +01:00
Qi Xiao
cd73e5742b newedit: Use username, not name, in default rprompt. 2018-11-18 16:58:05 +01:00
Qi Xiao
c38a6131d7 newedit/core: Relay late [r]prompt updates. 2018-11-18 16:52:47 +01:00
Qi Xiao
21860df2ce newedit: Add $edit:commit-eof~. 2018-11-18 16:24:12 +01:00
Qi Xiao
bacedb1b7d newedit/core: Support returning an error from the handler. 2018-11-18 16:19:28 +01:00
Qi Xiao
7fafb12511 Update xiaq/persistent. 2018-11-18 15:59:06 +01:00
Qi Xiao
5979fd5c4f eval/vars: Cleanups. 2018-11-18 15:23:31 +01:00
Qi Xiao
6a0267a6b6 eval/vars: Always guard variable access with mutexes. 2018-11-18 15:13:50 +01:00
Qi Xiao
cbc62505af newedit: Small refactor. 2018-11-17 19:12:26 +01:00
Qi Xiao
6f3b0663c8 edit: Convert tabs into four spaces in nav mode preview. 2018-11-17 18:17:31 +01:00
Qi Xiao
f9c873487f edit: Don't filter out newlines in nav mode preview. 2018-11-17 18:03:37 +01:00
Qi Xiao
a9bfa7cdb2 eval: Make putSelfInFg a nop if stdin is not a TTY. 2018-11-17 17:53:42 +01:00
Qi Xiao
754a43c2b6 _website: Add ttyshots to fundamentals. 2018-11-17 17:17:09 +01:00
Qi Xiao
1d97acfe1a _website: More fundemantals. 2018-11-12 23:08:33 +00:00
Qi Xiao
c018e1a7b6 _website: Change download/ to get/. 2018-11-08 00:20:44 +00:00
Qi Xiao
976fb3d03f _website: Slightly simplify homepage CSS. 2018-11-08 00:12:10 +00:00
Qi Xiao
197ea9c415 _website: Generate nav separator with CSS.
The padding of nav-link has to be moved into its <code> element to work
around a likely render bug of Chrome that would cause the right-side
padding to be ignored.
2018-11-07 23:31:14 +00:00
Qi Xiao
0c7b463994 _website: Add fallback fonts to the stylesheet. 2018-11-07 20:44:51 +00:00
Qi Xiao
d98e6fd6aa _website: Don't use a different color for visited links. 2018-11-07 20:34:00 +00:00
Qi Xiao
dff7d7b796 _website: Improve demo descriptions. 2018-11-07 20:14:45 +00:00
Qi Xiao
a1c48b5132 _website: Separate reset.css. 2018-11-07 14:13:26 +00:00