Commit Graph

4955 Commits

Author SHA1 Message Date
Qi Xiao
088190b4a5 Address remaining feedback of #1018. 2020-06-28 01:33:27 +01:00
Qi Xiao
bd1a6e98dc pkg/eval/vals: Rework the structmap mechanism.
* Fields may now be exposed via getter methods.

* Field names are automatically converted to dashed-case.

* Assoc behavior is no longer implemented for structmaps.

* The IsStructMap marker method no longer takes a special marker argument. There
  is a little danger of a value accidentally implementing this method.
2020-06-28 01:26:58 +01:00
Kurtis Rader
e8a8ee04b8 Add a wildcard [type:xxx] modifier
This allows filtering the wildcard expansion by path type. For example,
whether the path is a directory, regular file, or something else. So
instead of `find . -type f` you can now do `**[type:file]`.

Resolves #1015
2020-06-28 01:25:32 +01:00
Qi Xiao
ee79ba529e .cirrus.yml: Add tasks for checking style. 2020-06-24 23:21:59 +01:00
Qi Xiao
e2d590e48c Makefile: Split checkstyle into checkstyle-{go md}.
This will make it easy to run those steps in separate containers in Cirrus.
2020-06-24 23:08:12 +01:00
Qi Xiao
970f80efc8 Format Markdown files. 2020-06-24 23:00:59 +01:00
Qi Xiao
5e0ea92b3f Makefile: Add "checkstyle" target. 2020-06-24 23:00:23 +01:00
Qi Xiao
ff16eda59f pkg/eval/exc: Add missing unit tests for exc:is-pipeline-exc. 2020-06-24 22:41:59 +01:00
Qi Xiao
df6d741217 pkg/eval/exc: Add exc:is-pipeline-exc. 2020-06-24 22:41:00 +01:00
Qi Xiao
e3387b2be0 pkg/eval/exc: Add missing example for exc:is-fail-exc. 2020-06-24 22:35:44 +01:00
Qi Xiao
b5ba977266 website: Optimize fonts by embedding all fonts into a single CSS.
Also substract the subset of glyphs that we need to reduce the size of the fonts.
2020-06-15 00:06:28 +01:00
Qi Xiao
07312a0d6a website: Make the article list of category index pages configurable. 2020-06-14 14:10:26 +01:00
Qi Xiao
f5a32cd33b Makefile: Resurrect "buildall" as it's used by elves/up. 2020-06-14 14:03:44 +01:00
Qi Xiao
be000ee9d9 website/ref/edit.md: Move all overview sections under overview. 2020-06-14 13:59:17 +01:00
Qi Xiao
88c1d1514f website: Restructure directory.
* Remove the _ prefix from directories.

* Move cmd/website -> website/cmd.
2020-06-14 13:56:58 +01:00
Qi Xiao
ba4f672694 website/Makefile: add genblog as a nop target to avoid breaking elves/up. 2020-06-14 13:43:37 +01:00
Qi Xiao
03cb64ea2f genblog: Further simplify code. 2020-06-14 13:40:09 +01:00
Qi Xiao
fa77792ad5 genblog: Further simplify the code. 2020-06-14 13:14:51 +01:00
Qi Xiao
48145ded88 genblog: Remove default template and CSS. 2020-06-14 12:55:09 +01:00
Qi Xiao
f5bf45ed5c Vendor the genblog command.
This simplifies the website toolchain to no longer depend on an external
repository, and allows developing the genblog command in lockstep with the needs
of the website.
2020-06-14 12:45:17 +01:00
Qi Xiao
af7fe6c596 website: Link to draft release notes from both /get and /blog. 2020-06-14 12:32:33 +01:00
Qi Xiao
75be505c08 Make NEXT-RELEASE canonical. 2020-06-14 12:30:16 +01:00
Qi Xiao
e5d2ef71d4 NEXT-RELEASE: Document $edit:small-word-abbr in release note. 2020-06-14 12:26:48 +01:00
Qi Xiao
abe9fa3aec Fixup for platform:hostname. 2020-06-14 12:24:42 +01:00
Kurtis Rader
90860c1ba2 Implement platform hostname command
Resolves #1028
2020-06-14 12:19:41 +01:00
Qi Xiao
ff0c1b2318 website/ref/edit.md: Fix link. 2020-06-14 01:33:07 +01:00
Qi Xiao
a5c44724de Improve doc for abbreviation and words. 2020-06-14 01:29:53 +01:00
Qi Xiao
fbfce20b67 pkg/cli: Clean up abbreviation code. 2020-06-14 00:32:10 +01:00
Kurtis Rader
d061a258ea
Add $edit:small-word-abbr, and document $edit:{small-word- ''}abbr (#980)
Augment the implementation by adding support for small word based
expansion to that mimics typical editor behavior. This also makes it
safer to create and use abbreviations that consist of alphanum sequences
without having them expanded in unexpected places.

Resolves #947
2020-06-13 23:51:12 +01:00
Qi Xiao
65eeda9ae2 pkg/eval/exc: Rename is-*-error to is-*-exc.
These predicates are for exceptions, not errors. Moreover, Elvish doesn't really
have a concept of errors, only exceptions.

This addresses #208.
2020-05-31 13:59:55 +01:00
Qi Xiao
50d0b33e53 pkg/eval/exc: Add exc:is-fail-error.
This addresses #208.
2020-05-31 13:57:27 +01:00
Qi Xiao
270c7f230e pkg/eval: Support passing any value to "fail". 2020-05-31 13:56:59 +01:00
Qi Xiao
530963c6c3 NEXT-RELEASE: Document the "order" command.
This addresses #1045.
2020-05-31 01:54:19 +01:00
Qi Xiao
6127905085 NEXT-RELEASE: Rearrange the new features section into categories. 2020-05-31 01:54:03 +01:00
Qi Xiao
d387e5111f Update CONTRIBUTING.md, and add a NEXT-RELEASE.md symlink.
This addresses #1045.
2020-05-31 01:42:26 +01:00
Qi Xiao
4bf795a08d pkg/eval/exc: Introduce is-{external-cmd-error nonzero-exit killed}.
This addresses #208.
2020-05-30 12:05:07 +01:00
Qi Xiao
e13ee5aba4 pkg/eval: Fix a nil pointer panic.
The preExit function is not checking whether fm.DaemonClient is nil, which
causes "exit" and "exec" to panic in non-interactive mode.
2020-05-29 00:20:12 +01:00
Qi Xiao
8af7608382 website/ref/builtin.md: Rewrite the paragraph on using builtin: explicitly. 2020-05-26 21:32:38 +01:00
Qi Xiao
599ba74eec website/ref: Put module names at the beginning of titles. 2020-05-26 21:26:15 +01:00
Kurtis Rader
b9c64583d7 Update the docs regarding builtin modules
The existing documentation is somewhat inconsistent with respect to
builtin modules and what constitutes "reference" documentation. This
change attempts to bring a bit more consistency to the documentation and
fill in some gaps.
2020-05-26 21:24:57 +01:00
Kurtis Rader
720181be03 Fix two typos 2020-05-26 21:24:57 +01:00
Qi Xiao
ff292d43ce pkg/eval: Make the sorting of "order" always stable. 2020-05-25 21:50:09 +01:00
Qi Xiao
1cd192daaf pkg/eval: Implement "order".
This fixes #651.
2020-05-25 17:45:08 +01:00
Qi Xiao
0724478faf pkg/eval/testutils.go: Print outputs using Repr when they don't match. 2020-05-25 17:44:49 +01:00
kim yongbin
ef563c2367 errata for greet-and-bye.elv 2020-05-22 14:01:16 +01:00
Kurtis Rader
2d86a2453d Clarify the rules for using styled #RGB values
Document that an unqouted `#` character has special meaning to the Elvish
parser in the context of passing `#RGB` values to the `styled` command.
Also document the `fg-` color name prefix.
2020-05-18 00:25:05 +01:00
Qi Xiao
5d30ddb85f pkg/edit: Fix the heading of edit:redraw. 2020-05-18 00:09:16 +01:00
Qi Xiao
8cccda0d51 pkg/edit: Document $edit:{before after}-readline. 2020-05-18 00:03:44 +01:00
Qi Xiao
da8957eac8 website/blog: Add $edit:add-cmd-filters to 0.14.0 release notes. 2020-05-18 00:02:07 +01:00
Qi Xiao
13245e6f28 pkg/edit: Move the add-cmd-filters code to config_api.go.
Test has been moved too.
2020-05-18 00:01:05 +01:00