Comments (5)
I get this case as well, for example if I copy the title of this issue, and paste it in my shell I see this:
My integration looks like this:
fuzzy_git_status_widget() {
trap "" INT
result="$(git status --short | cut -c4- | ./fzy)"
if [ -n "$result" ]; then
LBUFFER="${LBUFFER}\"$(trim_quotes $result)\""
fi
zle redisplay
trap INT
}
zle -N fuzzy_git_status_widget
bindkey '^F' fuzzy_git_status_widget
from fzy.
I think ideally we could solve this here the one problem right now is that each character is handled individually
from fzy.
A possible hack fix for this is to pretend like these are keybindings. This patch works for me locally:
diff --git i/src/tty_interface.c w/src/tty_interface.c
index 9bc732b..db4bef1 100644
--- i/src/tty_interface.c
+++ w/src/tty_interface.c
@@ -152,6 +152,8 @@ static void action_prev(tty_interface_t *state) {
choices_prev(state->choices);
}
+static void action_ignore(__unused tty_interface_t *state) {}
+
static void action_next(tty_interface_t *state) {
update_state(state);
choices_next(state->choices);
@@ -236,6 +238,8 @@ static const keybinding_t keybindings[] = {{"\x7f", action_del_char}, /* DEL */
{"\x1bOB", action_next}, /* DOWN */
{"\x1b[5~", action_pageup},
{"\x1b[6~", action_pagedown},
+ {"\e[200~", action_ignore},
+ {"\e[201~", action_ignore},
{NULL, NULL}};
#undef KEY_CTRL
from fzy.
I've created a PR with this approach for discussion: #45
from fzy.
Fixed in 59d80ed. Thanks
from fzy.
Related Issues (20)
- Cyrillic characters in queries are case-sensitive HOT 1
- [FR] Support specifying weights
- RPM spec file
- Update Link In ALGORITHM.md
- Segmentation fault and "*** stack smashing detected ***" for very long lines HOT 1
- Displaying the prompt at the bottom
- Option for showing the count of results? And to not wrap around? HOT 4
- fzy will auto insert blank line if a line has CJK character and the line length more than terminal width
- Maintainers wanted? HOT 1
- Present interim results immediately when reading from pipe (like fzf) HOT 1
- Elaborate on more differences
- Prefer consecutive matches HOT 1
- Configure which part of the line to omit if line is too long
- Question: why would fzy lines persist while fzf does not (in tintin++)? HOT 2
- [UX] Show in readme how to replace bash history search with fzy HOT 6
- README says it's in app-shells on gentoo
- Top Down view
- Makefile dependency issue
- Add null separator support `-0` for `xargs`
- Failed to build binary when running ./install on Cygwin
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 fzy.