Commit Graph

5148 Commits

Author SHA1 Message Date
Supreet
8f2accb0b9 File module with pipe function. Pipe command marked deprecated in compiler.go and builtin_fn_io.go
Prclose and pwclose with Deprecation marked in specific file. Give
feedback regarding the test cases.

File module now has prclose and pwclose

Wrote test cases for prclose and pwclose, need better test cases

Deprecation for prclose and pwclose marked in respective files.
2021-04-19 18:48:22 -04:00
Qi Xiao
5a4934cf5e Document that exceptions also convert to $false. 2021-04-11 03:37:58 +01:00
Qi Xiao
2a1eda6bb0
Fix elvdoc of the src command 2021-04-11 01:17:39 +01:00
Qi Xiao
9b276a3431 Replace references to f{open close} in file module's elvdoc. 2021-04-09 13:03:47 +01:00
Qi Xiao
42d6e94dd7 Remove support for $-exports-. 2021-04-09 00:02:40 +01:00
Qi Xiao
c30a6a2fbe Remove support for using a lone "a=b" for assignment. 2021-04-08 23:57:40 +01:00
Qi Xiao
b53a92b964 Remove all builtin commands deprecated since 0.15.0. 2021-04-08 23:07:50 +01:00
Qi Xiao
318c4c14fd Clean up temporary files properly in the test for the file: module. 2021-04-08 23:07:11 +01:00
Qi Xiao
e1552ab4f5 Minor fixes for the file module:
* Add to release notes.

* Fix the deprecation level of fopen and fclose.

* Fix format of elvdoc and add ref doc.

* Minor style adjustments.
2021-04-08 22:55:33 +01:00
Supreet
77c40b9abb Links file module, marks fopen and fclose deprecation in compiler.go
aand builtin_fn_io.go
2021-04-08 22:45:16 +01:00
Qi Xiao
79c2a11d9c Document the new number system in the release notes. 2021-04-08 00:48:10 +01:00
Qi Xiao
c2a232a156 Merge branch 'num'
This fixes #241.
2021-04-08 00:43:19 +01:00
Qi Xiao
5eec2c049d Remove special treatment of the builtin: namespace.
This fixes #1227.
2021-04-08 00:42:58 +01:00
Qi Xiao
fd212c1f75 More doc, and add exact-num. 2021-04-07 07:05:08 +01:00
Qi Xiao
6997b06bb5 Expand the doc on the number type. 2021-04-06 23:31:56 +01:00
Qi Xiao
a5baad65f8 pkg/eval/vals: Clean up FromGo. 2021-04-06 22:38:56 +01:00
Qi Xiao
6052a4dc4a Remove the "fix int" terminology; just call it "int". 2021-04-06 22:35:58 +01:00
Qi Xiao
e2c4030728 pkg/eval: Handle non-positive step and overflow in the range builtin. 2021-04-06 22:33:02 +01:00
Qi Xiao
5c643181a4 Cleanup, docs and tests. 2021-04-05 20:48:22 +01:00
Qi Xiao
8a7073a20f pkg/cli/mode: Revise a comment. 2021-04-05 15:33:18 +01:00
Kurtis Rader
12980c2719 Some golint cleanups 2021-04-05 15:31:53 +01:00
Qi Xiao
da67ba8a4a Use machine word (int) instead of int64 for fixnum. 2021-04-04 13:37:38 +01:00
Qi Xiao
4612b58759 Support exact integer and rational numbers. 2021-04-04 00:58:53 +01:00
Qi Xiao
29034c20e9 website/learn/faq.md: Document name of Elvish as a backronym. 2021-03-29 01:09:03 +01:00
Qi Xiao
2995898c4b website/learn/tour.md: List some primitives that work with value IO 2021-03-29 01:05:33 +01:00
Qi Xiao
0745463ae7 Merge branch 'query'
This fixes #1051.
2021-03-29 00:10:21 +01:00
Qi Xiao
650161157e pkg/cli/mode: Refactor the handling of default FilterSpec.Maker. 2021-03-29 00:09:32 +01:00
Qi Xiao
6376a88a9a Document the new filter DSL. 2021-03-29 00:03:36 +01:00
Qi Xiao
b43e5b8793 Rename the query DSL to the filter DSL. 2021-03-28 23:52:25 +01:00
Kurtis Rader
ddf9bf040e Correctly highlight read-only except var
Using a read-only variable as the target of an `except` clause should
highlight just the var name rather than the entire `try...except...`
statement.

Resolves #1258
2021-03-28 22:01:31 +01:00
Qi Xiao
3e512a6dd6 pkg/edit/query: Add test for Highlight.
This package now has 100% unit test coverage.
2021-03-27 02:42:14 +00:00
Qi Xiao
cfb05588c7 Merge branch 'master' into query 2021-03-27 02:06:47 +00:00
Qi Xiao
f5aaba0691 pkg/cli/mode: Deflake stub_test.go by adding an app.Redraw call. 2021-03-27 02:06:35 +00:00
Qi Xiao
dea300f9d6 pkg/{cli edit}: Use the query DSL for location, completion and navigation modes. 2021-03-27 01:55:03 +00:00
Qi Xiao
8870defc98 pkg/cli: Refactor how config for custom filters are passed. 2021-03-27 01:21:53 +00:00
Qi Xiao
558ef69f5a website: Append blog title to the <title> of article pages.
This is not done for the category index pages since all of them already have
"Elvish" in their names.
2021-03-26 17:37:12 +00:00
Qi Xiao
89bf4b19ef website/learn: Add new "quick tour" doc.
Also remove the cookbook doc as it is superseded by this new doc.
2021-03-26 15:16:43 +00:00
Qi Xiao
2b6effc060 website: Make the nav bar slightly more compact. 2021-03-26 13:41:28 +00:00
Qi Xiao
4e89c374d9 website: Fix mistyped font-stretch in fonts.css. 2021-03-22 12:45:12 +00:00
Qi Xiao
74fbedc14c website: Update fonts.
* Update the download URL of Source Serif, and drop "Pro" from the name.

* Work around the issue of the space in Fira Mono being too narrow.

* Tweak the flags to "fonttools subset" to make the fonts slightly smaller.

* Regenerate fonts.css using latest versions of the fonts.
2021-03-21 22:31:38 +00:00
Qi Xiao
7a18649a1c website/ref: Document boolean and nil values. 2021-03-21 01:49:47 +00:00
Qi Xiao
959120162b pkg/eval: Use cmpd.StringLiteral in one more place.
Also remove an unused method that is now superseded by the cmpd package.
2021-03-19 23:18:42 +00:00
FallenWarrior2k
aaa4d2a431 Lock image versions in Dockerfile
I'm suspecting the broken build was related to the package name
changing, and restricting the versions in use should prevent this in
future.
2021-03-19 23:14:10 +00:00
FallenWarrior2k
ce255e0672 Fix Docker build failure (man -> mandoc) 2021-03-19 23:14:10 +00:00
Kurtis Rader
69a8adb2e9 Allow quoted var names in an except... block
Related #1258
2021-03-19 22:59:25 +00:00
Qi Xiao
4ecdb7f278 pkg/cli: Simplify the TTY interface by making it embed term.Writer. 2021-03-19 21:40:32 +00:00
Kurtis Rader
663e04ff75 Fix when cursor is shown by edit:clear
Showing the cursor should only happen after the prompt is redrawn.

Fixes #1238
2021-03-19 21:12:21 +00:00
Qi Xiao
6439a3cbb2 website/learn: Add an FAQ page.
This page supersedes the "name" and "philosophy" pages, which have been removed.
HTTP 301 redirects will be set up on the server of elv.sh to keep the old URLs
valid.
2021-03-02 00:00:57 +00:00
Qi Xiao
57d3515ec1 Add highlighting for histlist query. 2021-02-27 23:51:49 +00:00
Qi Xiao
d3a38e0414 pkg/ui: Add utility for styling multiple regions in a text.
The code is factored from pkg/edit/highlight and is generally useful.
2021-02-27 23:05:42 +00:00