Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User can use array key to move cursor left/right or up/down for pre/next command. #24

Closed
Tracked by #2
superxcgm opened this issue Jun 25, 2021 · 1 comment
Closed
Tracked by #2
Assignees

Comments

@superxcgm
Copy link
Owner

superxcgm commented Jun 25, 2021

Epic

Process

Description

For good user experience,

  1. user should can use left/right arrow key to navigate cursor in input line and edit.
  2. user should can use up/down to get pre/next command.

AC

Given: User input something, and cursor not on left most
When: User hit left arrow key
Then: Move cursor one character to left

Given: User input something, and cursor on left most
When: User hit left arrow key
Then: No move cursor

Given: User input something, and cursor not on right most
When: User hit right arrow key
Then: Move cursor one character to right

Given: User input something, and cursor on right most
When: User hit right arrow key
Then: No move cursor

Given: none
When: User hit up arrow key
Then: Previous input line appear

Given: none
When: User hit down arrow key
Then: Next input line appear

@superxcgm superxcgm mentioned this issue Jun 25, 2021
32 tasks
@superxcgm superxcgm self-assigned this Jul 2, 2021
@superxcgm
Copy link
Owner Author

Those feature call interactive line edit. I use GNU readline here to get it quick. And we can implement ourselves in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant