Commit graph

3 commits

Author SHA1 Message Date
4dace131b8 feat: make delete word in promp work more like bash
Now when you delete a word in a promp it will work more like how it
works in bash. If the text dose not end in a letter then the last word
and all of the tailing special characters will be deleted. If the text
dose end in a letter then only the last word will be deleted leaving the
special characters that are before the last word.

Examples:

| Before             | After       |
| -------------------| ----------- |
| `some word`        | `some `     |
| `some     word`    | `some     ` |
| `some word       ` | `some `     |
2023-01-07 13:49:36 +00:00
Ade Attwood
c9ce8ac4d1 feat: implement emacs bindings for the prompt like bash
Now the prompt will act like the default bash readline with emacs key
bindings, clear and delete word.

You can now also move left and right in the prompt to insert chars in
the middle of the prompt rather than having to delete your search term
and start again.
2022-07-24 12:50:30 +01:00
Ade Attwood
b82f1af2a1 chore: initial commit 2022-07-10 21:07:33 +01:00