Comments (11)
I have some more information, but the situation is very confused. I have a setup where the "od" tool reports for the Home and End keys the codes ^[OH and ^[OF, while using another terminal I get the ^[[H and ^[[F codes. The first codes do work, the second do not. Without zsh-autosuggestions the keys always work.
I've not been able to consistently reproduce the ^C issue: sometimes just one ^C is sufficient to delete the line, sometimes two are needed.
Sometimes the Tab completion breaks: I get no completion at all. Even here the behavior is not consistent. The completeinword option does not work with zsh-autosuggestions. My zshrc is rather minimal:
source /usr/share/zsh-antigen/antigen.zsh
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-history-substring-search
antigen bundle tarruda/zsh-autosuggestions
zle-line-init() {
zle autosuggest-start
}
zle -N zle-line-init
antigen apply
still I get all these incompatibilities. If I don't load the zsh-syntax-highlighting bundle but I load zsh-autosuggestions I get an error on each keypress:
autosuggest-highlight-suggested-text:2: _zsh_highlight: function definition file not found
and this should not happen... Maybe I just have to accept that zsh-autosuggestions will not work in my setup.
from zsh-autosuggestions.
Still an issue?
from zsh-autosuggestions.
It was last time I checked (~2 month ago), I'll try again soon.
from zsh-autosuggestions.
The keybindings works, but tab-completion is still broken. It only works with file (not with git, with options, etc…) and I don't think the colors in the suggestions. It works fine without zsh-autosuggestions.
from zsh-autosuggestions.
Fixed now?
from zsh-autosuggestions.
The completion is still broken. For example git commands are not completed, only files are.
from zsh-autosuggestions.
Happens for me too, Home and End are not working. German keyboard and Terminology as terminal emulator.
from zsh-autosuggestions.
I am also affected by @legovini's sub-issue 1:
- With zsh-autosuggestions installed, the
Home
andEnd
keys fail to move the cursor to the beginning and end of the line... - ... but
^A
and^E
still work... - .... and deinstalling zsh-autosuggestions restore working
Home
andEnd
.
I am not affected by the two other problems.
I run gnome-terminal-3.16, zsh-5.0.8, oh-my-zsh, and load zsh-autosuggestions with:
source $HOME/.zsh-autosuggestions/autosuggestions.zsh
unset COMPLETION_WAITING_DOTS # https://github.com/tarruda/zsh-autosuggestions#known-issues
AUTOSUGGESTION_HIGHLIGHT_COLOR='fg=3'
zle-line-init() {
zle autosuggest-start
}
zle -N zle-line-init
Additional data point: I started using zsh-autosuggestions some months ago (like april 2015), I never faced this bug. I tried checking out each git revision (git checkout HEAD^
, test, ^D
to get a new zsh, repeat) until november 2014 and all have the bug.
→ It must be caused by a change in another component :-/ . I thought it could be a plugin common to all of us (I also use zsh-syntax-highlighting history-substring-search
) but removed those and still have the bug. Something in our initialization/environment?
Any idea?
from zsh-autosuggestions.
@legovini as I use oh-my-zsh, this is not an antigen issue. Can you update the issue title?
from zsh-autosuggestions.
Workaround if you use tmux \o/ ! In your ~/.tmux.conf
,
# move to next/prev word with Ctrl, http://stackoverflow.com/questions/9444900/settings-to-move-to-end-of-line-using-tmux
bind -n C-left send-keys M-b
bind -n C-right send-keys M-f
from zsh-autosuggestions.
I don't think this is still an issue w/ v0.1.x.
from zsh-autosuggestions.
Related Issues (20)
- [oh-my-zsh] plugin 'zsh-autosuggestions' not found HOT 5
- auto suggestions from history have weird prefixes with underscores ex: __1__/{real_directory} HOT 1
- _arguments error
- add suggestion icons HOT 1
- Cant source .bash file HOT 1
- Disable completions when line contains a comment HOT 1
- Escaping symbol added after every word to a Folder name HOT 4
- zsh-autosuggestions clashes with zsh-manydots-magic
- How do I stop it from expanding a variable ('$') that is set with export? Why won't it autocomplete a folder?
- Add `--offline` mode that disables all network features at runtime HOT 1
- Add build and run time options to disable ML/AI features HOT 1
- Strange behavior when aliasing `echo` HOT 1
- .
- Command Autosuggestion Cycling HOT 1
- An error occurred during the signature verification. HOT 15
- New release/tag
- Autosuggest prevous piped commands HOT 2
- how to change history preview color ?
- compgen -g command cause repeatable autosuggestions crash
- Unhandled ZLE widget HOT 1
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 zsh-autosuggestions.