Qi Xiao
09d82fb6eb
newedit/core: Export Fake{TTY,SignalSource}.
2018-09-24 22:20:50 +01:00
Qi Xiao
fdf5586919
.gitignore: Add /_bin/.
2018-09-24 22:20:50 +01:00
Simon Schürrle
c55df583d5
Replace re:replace with replaces in epm ( #756 )
...
By using `replaces` it doesn't attempt to interpret \U as regex escape sequence. The \U comes from `C:\Users` which is like `/home` on Linux.
This closes #755
2018-09-24 00:09:40 +01:00
Qi Xiao
a9d8df8260
_website/download: Move old versions to the bottom.
2018-09-23 22:12:37 +01:00
Qi Xiao
2e351a0b2d
_website/download: Wording
2018-09-23 22:06:47 +01:00
Qi Xiao
16f96c122e
_website/download: Link to BSD builds and rearrange download matrix.
2018-09-23 22:05:29 +01:00
Qi Xiao
723529aeb3
_tools/buildall.sh: Build for {Free,Open,Net}BSD.
2018-09-23 21:53:12 +01:00
Qi Xiao
9009bd72b2
Quote file path separator in the filename completer.
...
This is needed on Windows.
2018-09-23 18:21:37 +01:00
Qi Xiao
bfb4922b16
newedit/insert: New package implementing insert mode.
2018-09-23 18:21:37 +01:00
Qi Xiao
5f5ab9ed9c
newedit/utils: Fix handling of insertions in the middle.
2018-09-23 18:21:37 +01:00
Qi Xiao
5113fe82be
Improve key translation in Windows.
2018-09-23 03:01:24 +01:00
Qi Xiao
cc620a7f26
Fix compilation; last commit doesn't build.
2018-09-23 02:53:57 +01:00
Qi Xiao
58d8901c54
Fix conversion of keycodes on Windows:
...
* More correct extraction of modifiers. The dwControlKeyState also
field containers the state of Numlock and Scrolllock, not just
modifiers; we now explicitly only extract the bits we care about.
* When a key press is deemed to be a function key, always normalize the
key rune to lower case.
This fixes #567 .
2018-09-23 02:48:53 +01:00
Qi Xiao
08dd5178ff
_website: Add linux-{386 arm64} links for v0.10.
2018-09-23 01:52:17 +01:00
Qi Xiao
6910a7f81e
_website: Fix download link /facepalm
2018-09-23 01:41:46 +01:00
Qi Xiao
96a7d25479
_website/download: Wording
2018-09-23 01:40:11 +01:00
Qi Xiao
c30fafad16
_website: Update download and release note URLs.
2018-09-23 01:39:49 +01:00
Qi Xiao
ee9f017a8c
Add tool for building old tags with latest buildall.sh.
2018-09-23 01:07:18 +01:00
Qi Xiao
493e1aaa28
buildall.sh: Numerous changes.
...
* Uses new directory layout of $GOOS-$GOARCH/elvish-$VERSION.
* Resilient against build failures. This makes it suitable for building
older versions of Elvish that doesn't support as many platforms as
now.
2018-09-23 00:42:25 +01:00
Qi Xiao
8714d900b4
binaries-travis.sh: Specify manifest explicitly.
2018-09-22 23:02:57 +01:00
Qi Xiao
3914712507
buildall.sh: manifest defaults to /dev/null now.
2018-09-22 23:00:31 +01:00
Qi Xiao
e23a22288d
_tools/buildall.sh: Remove unneeded flags; revert build order.
2018-09-22 22:55:42 +01:00
Qi Xiao
ab2fbb5baf
_tools/buildall.sh: Disable CGO.
2018-09-22 22:48:16 +01:00
Qi Xiao
d7b5fda8c2
_tools/buildall.sh: Always force rebuild with -a.
2018-09-22 22:45:04 +01:00
Qi Xiao
0001464c6b
newedit/prompt: Fix default stale threshold.
...
It has been accidentally set to 2ms, instead of 200ms, and has caused
test failures.
2018-09-22 22:33:10 +01:00
Qi Xiao
e61827407d
newedit: Mode.HandleKey -> Mode.HandleEvent.
...
The new method is used for handling all tty.Event, not just keys.
2018-09-22 21:41:18 +01:00
Qi Xiao
8458dd91e8
newedit/core/editor_test.go: Extract setup and cleanup into functions.
2018-09-22 21:15:53 +01:00
Qi Xiao
e526f9982f
newedit: Move BasicMode from core to utils (new package).
...
The test has also been rewritten to not depend on an editor setup.
2018-09-22 20:55:53 +01:00
Qi Xiao
ce41fe3bc8
newedit: Move State type and its friends to the types package too.
2018-09-22 18:31:27 +01:00
Qi Xiao
d80c5d6dd0
README: Bump requirement of Go version to 1.10.
2018-09-22 18:04:29 +01:00
Qi Xiao
ce21d07237
newedit: Move type definitions from core to a new types package.
2018-09-22 17:59:27 +01:00
Qi Xiao
2f03722a05
eval: Support renaming module when use-ing.
...
This fixes #751 .
2018-09-22 17:33:44 +01:00
Brian Callahan
396b472056
Add OpenBSD package instructions to download page. ( #749 )
2018-09-21 01:50:29 +01:00
Qi Xiao
fc1747e035
Disable coverage upload on AppVeyor.
2018-09-21 00:41:53 +01:00
Qi Xiao
04495765c6
newedit: Add comments.
2018-09-20 23:27:00 +01:00
Qi Xiao
787753d3db
newedit: Test default prompts.
2018-09-20 23:21:33 +01:00
Qi Xiao
2c7e0ac4cf
newedit: More test for prompt API.
2018-09-20 03:17:11 +01:00
Qi Xiao
5190aafa8d
newedit: Test against error handling in prompt API.
2018-09-20 03:03:49 +01:00
Qi Xiao
4229e9d8df
newedit: Export the actual Editor type directly.
2018-09-20 02:34:50 +01:00
Qi Xiao
ac00b2e60d
newedit: Add prompt API.
2018-09-20 02:22:45 +01:00
Qi Xiao
c61a60c103
newedit/prompt: Export the Prompt type and its constructor.
2018-09-20 02:13:47 +01:00
Qi Xiao
fa981045ec
newedit/core: Add a Notify method.
2018-09-20 02:03:48 +01:00
Qi Xiao
c8ef66aeb2
newedit/core: Implement note flushing and test against it.
2018-09-20 01:56:25 +01:00
Qi Xiao
ad3b6f0743
newedit: Build namespace in NewEditor.
2018-09-20 00:47:20 +01:00
Qi Xiao
16fc3d22c5
Add newedit/prompt, forked from edit/prompt.
2018-09-19 22:17:12 +01:00
Qi Xiao
07200bc1a7
newedit/core: Add a force flag to Prompt.Trigger.
2018-09-19 00:34:25 +01:00
Qi Xiao
e5b5915cbf
_tools/buildall.sh: Fix ldflag for static building.
2018-09-18 02:53:53 +01:00
Qi Xiao
200fb1c2ad
_tools/buildall.sh: do static linking.
2018-09-18 02:42:33 +01:00
Qi Xiao
4eb2f16011
newedit/core: Clean up some comments.
2018-09-18 01:04:39 +01:00
Qi Xiao
d7c23d52a7
newedit: Add comment doc.
2018-09-18 01:00:54 +01:00