Comments (11)
@ztNFny I cannot reproduce this. kill -9
followed by fzf-completion looks identical to me with and without zsh-autocomplete
. Can you please update and try again? This might have been fixed already in 3980bb7.
from zsh-autocomplete.
@marlonrichert I'm on the latest version already.
With zsh-autocomplete:
Without:
I can repoduce that with a minimal .zshrc:
source "$HOME/.zinit/bin/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
zinit ice pick"shell/key-bindings.zsh" src"shell/completion.zsh"
zinit light junegunn/fzf
zinit light marlonrichert/zsh-autocomplete
from zsh-autocomplete.
Ah, now I see. It's not broken. It's working as intended. When you press Tab with zsh-autocomplete
, it never uses fzf
. 🙂
If you want to use fzf
's completion with zsh-autocomplete
, you need to press CtrlSpace. Please see the Readme: https://github.com/marlonrichert/zsh-autocomplete/blob/master/README.md#with-fzf
Try it: Type kill -9
and press CtrlSpace. You'll get the same result as in your second image.
from zsh-autocomplete.
You can disable this behavior and keep the default fzf
tab behavior by putting the following into your .zshrc
file:
zstyle ':autocomplete:tab:*' completion fzf
from zsh-autocomplete.
is "zstyle ':autocomplete:" something that's defined by this plugin? I can only find information on "zstyle ':completion:" but not autocomplete
from zsh-autocomplete.
zstyle
is Zsh's mechanism for storing preferences. You can read more about it here: http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#The-zsh_002fzutil-Module
from zsh-autocomplete.
that one i found, i was wondering about :autocomplete: specifically
from zsh-autocomplete.
what I'm trying to achieve is when I'm in the middle of a word to use zsh-autocomplete (e.g. "ls tes") but with a space prefix to use fzf (e.g. "ls ") but I fail to see where in zsh-autocomplete.zsh that zstyle ':autocomplete:tab:*' completion fzf is handled to derive from it
from zsh-autocomplete.
that one i found, i was wondering about :autocomplete: specifically
That's the prefix/namespace I use for zsh-autocomplete
.
from zsh-autocomplete.
what I'm trying to achieve is when I'm in the middle of a word to use zsh-autocomplete (e.g. "ls tes") but with a space prefix to use fzf (e.g. "ls ") but I fail to see where in zsh-autocomplete.zsh that zstyle ':autocomplete:tab:*' completion fzf is handled to derive from it
That's not currently doable out of the box. If that's a feature you want, please open a new issue for it. 🙂
from zsh-autocomplete.
@ztNFny There's an issue for this now: #51. Let's discuss there.
from zsh-autocomplete.
Related Issues (20)
- how Keep history after restarting the system?
- Oh My ZSH integration HOT 1
- sudo autocomplete broken HOT 2
- Conflict with zsh-vi-mode HOT 3
- Please add directory autocomplete HOT 2
- The possibility of integrating argc-completions? HOT 2
- The plugin doesn't suggest shell functions HOT 1
- Remove ancestor dirs feature
- Complete all components of a path HOT 1
- Is there any way to cancel certain shortcut keys? HOT 2
- Not work in zsh under Cygwin. HOT 1
- Can we support command line completion before history completion? HOT 1
- Inserting from history in Vim normal mode removes the last character HOT 2
- Down arrow key doesn't work with bindkey -v
- Color of Suggestions HOT 2
- `*.tar.zst` is not considered for `tar -xvf`
- Feature Request: Flag or option to disable variable preview added in Issue #161
- Hidden text HOT 2
- On Debian LXC Containers The first characters entered are displayed twice HOT 4
- Is there a way to disable the up-arrow search history? HOT 10
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-autocomplete.