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

Can move index of search string (Input value) with arrow keys, but visible cursor stays at end of string #92

Open
lukeflo opened this issue Oct 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lukeflo
Copy link

lukeflo commented Oct 25, 2024

Describe the bug

If you hit / in one of the tabs Static, Dynamic and Strings, which open a search prompt at the bottom border, you can type a search pattern. Its also possible to move the index of state.input.value using the arrow keys; e.g. to change an intermediate typo. But the visible cursor block doesn't move with the index. It always stays at the end of the string. Thus, its hard to guess which character you're at.

To reproduce

Just run the binary or cargo run, select one of the mentioned tabs, type a search pattern, move back some index fields with the arrow keys and try inserting or deleting an intermediate character.

Software information

  • Operating system: Void GNU/Linux x86_64 6.6.58_1
  • Rust version: rustc 1.82.0 (f6e511eec 2024-10-15)
  • Project version: 0.2.1

Edit

Opened a PR (#93) which makes the cursor move with the index. But its not perfect in terms of rendering. You might have a look yourself...

@lukeflo lukeflo added the bug Something isn't working label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants