Comments (4)
I honestly thought that was intended behavior, or at least I didn't think much about it.
You mentioned in another issue that binding the arrow-keys is hard to do without curses. Is this still correct, is there even a way to solve this issue?
from selecta.
Yeah... it's caused by the newly-added support for ESC. When you hit an arrow key, it sends an escape sequence. Selecta sees the ESC character and aborts, thinking that you hit the escape key.
The normal workaround is to introduce some kind of delay. You see an ESC, and you wait 250 ms or so before assuming that it's an actual press of the ESC key. I think I'm just going to revert the support for ESC. I should've trusted my intuition on that. ;)
from selecta.
What about simply requiring ESC to be hit twice? That'd allow selecta to support arrow keys as well.
from selecta.
from selecta.
Related Issues (20)
- Support keyboard arrow keys? HOT 2
- how to drop shell escape codes HOT 2
- Respecting gitignore? HOT 4
- (macos) tmux + brew gnu coreutils combination does not work with 'selecta' HOT 3
- selecta blows up when given input before output is written to stdout HOT 2
- Windows support HOT 2
- Match count label HOT 4
- use within zsh causing TTY output to shift to bottom of screen HOT 5
- Should we keep the new boundary-aware scoring algorithm? HOT 10
- Selecta could/should allow use of up/down arrows HOT 7
- --search broken on master HOT 3
- Error when exiting with ^C under some shells HOT 24
- Option to ignore whitespace in query string HOT 3
- Suggestion: Multiple selections HOT 10
- Render Selecta less intrusively HOT 8
- The way to render menu full-height HOT 2
- Redraw on WINCH signal HOT 2
- fish-shell: selecta doesn't work in subshell HOT 12
- how to use selecta in ruby with $stdin ? HOT 1
- Prompt left at top of choices after choosing an option HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selecta.