Xuan Chen
|
07b0d19dd7
|
Seperated editor IO. (#347)
Signed-off-by: xchenan <xchenan@gmail.com>
|
2017-05-22 21:11:27 +01:00 |
|
Qi Xiao
|
515435e28d
|
edit: Put le:abbr also in Editor.variables.
|
2017-05-22 02:13:35 +01:00 |
|
Qi Xiao
|
cbb7d18fbc
|
edit: Put user-customizable variables in a map.
|
2017-05-22 02:00:44 +01:00 |
|
Qi Xiao
|
b6d57a8be2
|
edit: Make argCompleter a field of Editor.
|
2017-05-22 01:15:52 +01:00 |
|
Qi Xiao
|
e36b0d8371
|
edit/uitypes -> edit/ui.
|
2017-05-22 00:33:38 +01:00 |
|
Qi Xiao
|
e5a4a74cbb
|
Oops, missed a source file.
|
2017-05-22 00:29:28 +01:00 |
|
Qi Xiao
|
99b3f32f61
|
edit/tty: Unify the results of the reader into one channel.
|
2017-05-22 00:28:03 +01:00 |
|
Qi Xiao
|
106600a7da
|
Fix misspellings.
|
2017-05-21 23:57:57 +01:00 |
|
Qi Xiao
|
910610f583
|
Make golint slightly happier.
|
2017-05-21 23:54:04 +01:00 |
|
Qi Xiao
|
b9735f3940
|
Run "gofmt -s".
|
2017-05-21 23:18:24 +01:00 |
|
Qi Xiao
|
b2895233d7
|
edit/tty: Add some tests for reader.go.
Right now only key reading is tested.
|
2017-05-21 23:14:59 +01:00 |
|
Qi Xiao
|
c48dc45bdc
|
edit: Add a very basic test against setupTerminal.
|
2017-05-21 22:09:10 +01:00 |
|
Qi Xiao
|
fa5bd464ff
|
edit: Suppress flushing using a const, not comment.
|
2017-05-21 21:59:29 +01:00 |
|
Qi Xiao
|
a82e4014de
|
edit: Remove the need to sort []styled.
|
2017-05-21 21:44:36 +01:00 |
|
Qi Xiao
|
50b8f8b7b8
|
edit: Add tests for buffer.go, and cleanups.
|
2017-05-21 21:28:26 +01:00 |
|
Qi Xiao
|
3abdc9aebc
|
Fix names of builtins in the le: namespace.
|
2017-05-21 17:34:13 +01:00 |
|
Qi Xiao
|
884fe716fc
|
edit: test the BuiltinFn type.
|
2017-05-21 02:27:58 +01:00 |
|
Qi Xiao
|
26a04b7b2c
|
edit: Merge edit/eval interaction stuff into api.go.
|
2017-05-21 01:43:31 +01:00 |
|
Qi Xiao
|
04fb460978
|
edit: Cleanup and more tests.
|
2017-05-21 01:37:03 +01:00 |
|
Qi Xiao
|
60c24de7f8
|
Put editor builtins in subnamespaces according to their mode.
For instance, builtins related to the location mode are put in le:loc instead
of le: (and starting with loc-).
|
2017-05-20 04:35:21 +01:00 |
|
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
|
a9451d53e4
|
Remove eval.WrapFn entirely.
|
2017-04-11 01:56:37 +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
|
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
|
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
|
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
|
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
|
dce8be6a18
|
eval.Fn -> Callable, eval.Iterator -> Iterable
|
2017-02-18 04:45:40 +00:00 |
|
Qi Xiao
|
b90f0c776d
|
Make "try" a special form using curly braces.
|
2017-02-18 04:16:21 +00:00 |
|
Qi Xiao
|
01f6302153
|
Make "for" a special form using curly braces.
|
2017-02-18 00:12:15 +00:00 |
|
Qi Xiao
|
f06898f364
|
When compilation error is at end, don't attempt to highlight culprit.
|
2017-02-17 00:19:22 +00:00 |
|
Qi Xiao
|
79350d7b9c
|
Let edit.completion embed edit.compl.
|
2017-02-13 00:54:32 -05:00 |
|
Qi Xiao
|
18c06f6a5b
|
Boring renames.
|
2017-02-13 00:49:11 -05:00 |
|
Qi Xiao
|
e1dc20eb3c
|
Call two sides of Assignment and Redir simply Left and Right.
|
2017-02-13 00:42:00 -05:00 |
|
Qi Xiao
|
01794c5b54
|
Show completion error in tip, not in notification.
|
2017-02-13 00:18:35 -05:00 |
|
Qi Xiao
|
71b1f60763
|
Support completing map indices.
|
2017-02-13 00:13:03 -05:00 |
|
Qi Xiao
|
e86a86b69d
|
Support completing redir RHS.
|
2017-02-12 23:02:19 -05:00 |
|
Qi Xiao
|
1b35bb6f5b
|
Slight cleanup.
|
2017-02-12 22:53:11 -05:00 |
|
Qi Xiao
|
8889ff83b5
|
Make completion for command name comprehensive.
|
2017-02-12 22:25:39 -05:00 |
|
Qi Xiao
|
6fac1ca4b5
|
Log the path from root to leaf when completion fails.
|
2017-02-12 22:25:19 -05:00 |
|
Qi Xiao
|
3ba3528d9d
|
stylist -> highlighter; don't depend on the whole editor.
|
2017-02-12 21:57:33 -05:00 |
|
Qi Xiao
|
5fa523f687
|
A trivial cleanup.
|
2017-02-12 21:47:04 -05:00 |
|
Qi Xiao
|
9dc81e87f1
|
Get rid of edit.Token.
|
2017-02-12 01:29:24 -05:00 |
|