Commit Graph

16 Commits

Author SHA1 Message Date
Stefan Holderbach
2c24ff6140
Bump dependency versions (#232)
Make sure we are up to date on unicode crates et al.
2022-01-02 20:19:11 +01:00
Darren Schroeder
6884ec4062
add the ability to optionally turn off ansi coloring (#197)
* add the ability to optionally turn off ansi coloring

* also strip from the hinter
2021-12-09 21:48:08 +01:00
Stefan Holderbach
550ce9b486
Bump dependency versions (#177) 2021-11-08 10:49:30 +13:00
JT
93c2146fcf
Bump version (#152)
* Bump to 0.2

* Add to README

* Improve top docs

* Clear to the end of each newline to remove any leftovers
2021-09-24 07:40:32 +12:00
Sherub Thakur
30f9d419f3
Add tests to emacs and vi edit mode (#146)
* Add equality derive for EditCommand and ReedlineEvent

* Move matches to keybinds for emacs edit mode

* Simplify event matching in emacs edit mode

* Bugfix: All matches happening at same point

* Add failing test to check keybinding override

* Bugfix: Inserting capital character works

* Unknown requirement: test to be to capture currently unknown requirement

* Add rstest

The reason is to easily write parameterized tests

* Add test: for emoji input to emacs

* Add tests and fixes for vi edit mode

* Reedline None event and vi keybinds

* Keybindings are overridable

* Vi Reedline::None
2021-09-22 16:37:19 +12:00
JT
cd87851ad9
Cleanup some deps and improve build times (#144) 2021-09-06 05:39:19 +12:00
JT
ccce8d5fa1
Fix double chars (#140)
* Fix double chars

* Fix double chars

* Updates

* doctest fixes

* see if it's paying attention

* see if it's paying attention
2021-09-05 07:32:02 +12:00
Sherub Thakur
83ab5ddd6a
Add pretty_assertions lib (#73) 2021-06-24 06:07:58 +12:00
Darren Schroeder
0a224bef05
syntax highlighting fileio (#56)
* syntax highlighting fileio

* add an example syntax json file

* complied with jt's wishes because reasons :)
2021-06-16 08:02:29 +12:00
JT
e0714819e4
Add configurable keybindings (#51) 2021-06-11 12:08:09 +12:00
Stefan Holderbach
afd2c9526e
Basic API docs to give an overview of the current state (#47)
* Doctests for History

* Improve the general documentation of History.
* Doc tests to understand the API.
* Includes regression test to read back correctly from file.

* Run doctests in CI

* Minimal doc comments for Clipboard

* Basic API docs for the most important components

Still work in progress

* Add README and lib.rs docs

* Document more internals to help new contributors

* Doctest linebuffer

* Revert "Doctest linebuffer" for now

This reverts commit 08ff9c152c.

* Format run
2021-05-04 12:12:08 +02:00
Guillermo Lella
6c8ca05b4c
added OS's clipboard (#43)
Should work in Linux, macOS and Windows
2021-04-26 18:55:49 +12:00
Jonathan Turner
c376cefd3e
Begin multiline editing (#35) 2021-03-21 11:01:28 +13:00
Darren Schroeder
6ec4f86068
added a slightly-fancy prompt (#29) 2021-03-19 06:39:23 +13:00
Jonathan Turner
1473098ff2
Merge in refactor and unicode work (#3)
* First stage of refactor

* Finish moving to insertion point

* refactor to move word

* WIP

* Working a bit better
2021-03-06 11:30:44 +13:00
Niklas Schoellhorn
21180f15b5 Implement primitive word-jumping
With this patch, if you hold ALT (or Option on Mac) and then
press Arrow Left or Arrow Right, the cursor will jump over the
whole word instead of just one character to allow for more
natural text editing.
2021-03-01 08:36:19 +01:00