forked from c-bata/go-prompt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prompt: fix some keybindings to work with multilines
- The behavior of the `Home`/`End` keys has been changed: now, the cursor moves to the beginning/end of the entire command (instead of the line) when these keys are pressed. - The behavior of the `alt-b`/`alt-f` keys has been changed: now, the cursor moves one word backward in multiline commands, and the word delimeter characters are `\n` and ` `. - The associated emacs keybindings has been changed: now `ctrl-b`/`ctrl-f` allow to move over the entire multiline command. `ctrl-a`/`ctrl-e` same as `Home`/`End`. - Added integration tests for emacs keyset. Closes #6
- Loading branch information
Showing
8 changed files
with
443 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.