Commit Graph

2220 Commits

Author SHA1 Message Date
Qi Xiao
f7bc03deb9 Put editor builtin declarations and bindings in separate mode files.
This is to prepare to put the builtins in their own namespaces.
2017-05-19 01:25:06 +01:00
Qi Xiao
f75dbe76ca edit: Declare builtin functions in a map, not a slice. 2017-05-19 00:33:58 +01:00
Qi Xiao
1097ad5891 Support pinning directories using $le:loc-pinned.
This fixes #342.
2017-05-18 01:56:07 +01:00
Qi Xiao
d2c58c34cf Add description for RPM package.
Applying #300 manually.
2017-05-15 00:08:31 +02:00
Qi Xiao
9fb776d79b Add a "repr" builtin. 2017-05-15 00:05:24 +02:00
Kevin Madison
5083fac000 fix spelling error in README (#346) 2017-05-09 21:25:36 +01:00
Qi Xiao
89538b642d Dead code removal. 2017-04-11 02:20:37 +02:00
Qi Xiao
bcdffbfd65 Reorder builtins in code. 2017-04-11 02:16:43 +02:00
Qi Xiao
a9451d53e4 Remove eval.WrapFn entirely. 2017-04-11 01:56:37 +02:00
Qi Xiao
e44b9a9378 Remove all uses of eval.WrapFn in eval package. 2017-04-11 01:43:15 +02:00
Qi Xiao
83f99acc78 Replace some uses of eval.WrapFn with less magical ScanArgs and ScanOpts. 2017-04-10 22:47:15 +01:00
Qi Xiao
858c95050a Change capitalization rule of Elvish.
Elvish should now be treated as a proper noun; this is what most other
programming languages do.
2017-04-09 16:23:09 +02:00
Qi Xiao
c884b5cb7d Fix test. 2017-04-09 01:43:37 +02:00
Qi Xiao
5c0bce8bf6 Rename "unpack" to "explode" for more vividness. 2017-04-09 01:30:53 +02:00
Qi Xiao
8556834802 Add an experimental -match builtin. 2017-03-30 00:10:50 +02:00
Qi Xiao
344fddfb83 Remember location when cding in nav mode.
This fixes #340.
2017-03-29 22:53:22 +02:00
Qi Xiao
62404232f2 Add an embedded readline-binding module.
This addresses #339.
2017-03-26 20:06:45 +02:00
Qi Xiao
ee48673048 Embedded modules now live under embedded:. 2017-03-26 19:44:18 +02:00
Qi Xiao
5e63f06960 In loc mode, match the shown string instead of the actual string.
This fixes #338.
2017-03-26 19:36:49 +02:00
Qi Xiao
6c3ff79ce8 Small refactor and documentation. 2017-03-26 19:12:48 +02:00
Qi Xiao
d7ef483273 Support raw insert, bound to ^V.
This fixes #182.
2017-03-26 18:52:16 +02:00
Qi Xiao
cd9a9121a3 Add a repeat function a la Clojure. 2017-03-26 01:23:01 +01:00
Qi Xiao
856dde57b6 Fix representation of Exception. 2017-03-07 01:08:37 +00:00
Qi Xiao
a12933c37d Somewhat fix tracebacks of control structures.
This fixes #335.
2017-03-03 01:13:04 +00:00
Qi Xiao
e071aeafa6 Fix variable-less "except".
This fixes #334.
2017-03-03 01:05:46 +00:00
Qi Xiao
e701abf766 Builtin modules are now known as embedded modules. 2017-03-03 00:44:54 +00:00
Qi Xiao
f6825ed797 Builtin modules now live under "elves:". 2017-03-03 00:42:37 +00:00
Qi Xiao
38876b571c Add special forms "and" and "or". 2017-03-03 00:21:59 +00:00
Qi Xiao
3958fdd008 Add a "not" builtin, and group bool builtins together. 2017-03-03 00:07:34 +00:00
Qi Xiao
846ec05b6d Expose all store methods through the daemon. 2017-03-01 01:48:10 +00:00
Qi Xiao
6a21a6ac18 Rename store methods. 2017-03-01 01:30:34 +00:00
Qi Xiao
bafd299a94 Add store.Cmd as return type of {Last,First}Cmd. 2017-03-01 01:21:36 +00:00
Qi Xiao
a6bdb0c591 Rename store methods. 2017-03-01 01:14:03 +00:00
Qi Xiao
700b6a836c Implement (*Store).Cmds with .IterateCmds. 2017-03-01 01:09:32 +00:00
Qi Xiao
f8b9be9ebf Require -log for daemon, handle SIGTERM, and add a GetPid request. 2017-02-28 14:15:22 +00:00
Qi Xiao
605e6683fd Add daemon. 2017-02-28 03:44:30 +00:00
Qi Xiao
b174b990ed Let the main package handle flags. 2017-02-28 02:03:22 +00:00
Qi Xiao
88ff213deb Support ~ in location mode. 2017-02-25 21:18:52 +00:00
Qi Xiao
3523c830da Add $le:loc-hidden, a list of directories to be hidden in location mode.
This fixes #326.
2017-02-25 21:08:46 +00:00
Qi Xiao
0bd348a6fb Document keybinding problem with xterm. 2017-02-25 17:43:01 +00:00
Qi Xiao
91a6ca611a Consider a compound to be one word in bang mode and insert-last-word.
This fixes #331.
2017-02-25 17:23:41 +00:00
Qi Xiao
182d66b756 eval/builtin-modules.bash -> gen-builtin-modules, now in elvish 2017-02-25 01:52:58 +00:00
Qi Xiao
35d8a800c6 Update README. 2017-02-18 06:18:27 +00:00
Qi Xiao
9cb29783f6 Simplify compileFn with argsWalker. 2017-02-18 05:30:37 +00:00
Qi Xiao
59d2bd580c Enforce blocks in control forms to be lambdas. Make except-var optional. 2017-02-18 05:27:07 +00:00
Qi Xiao
28fe942cad Remove an unused method of eval.argWalker. 2017-02-18 05:00:45 +00:00
Qi Xiao
dce8be6a18 eval.Fn -> Callable, eval.Iterator -> Iterable 2017-02-18 04:45:40 +00:00
Qi Xiao
9d9c2a250d PredCapture -> ExceptionCapture 2017-02-18 04:43:27 +00:00
Qi Xiao
052a1a60da Make "if" a special form using curly braces.
Now we have eliminated all control structures. They are now all special forms
instead. Yay!
2017-02-18 04:34:11 +00:00
Qi Xiao
b90f0c776d Make "try" a special form using curly braces. 2017-02-18 04:16:21 +00:00