Comments (4)
Thanks for your suggestion. I modelled fizsh after fish version 1.23.1. If I remember correctly, this version of fish did not have autosuggestions.
This being said, autosuggestion for zsh is currently provided by https://github.com/tarruda/zsh-autosuggestions. It seems that Tarruda's package works fine with fizsh after loading it at the end of ~/.fizsh/.fizshrc.
I have never thought of packaging zsh-autosuggestions as a part of fizsh, but it could be worth considering. Or at least I could provide some instructions on how to add zsh-autosuggestions in such a way that it works with fizsh.
from fizsh.
The main file of https://github.com/tarruda/zsh-autosuggestions is called "autosuggestions.zsh". In this file the fragment
ZLE_AUTOSUGGEST_COMPLETION_WIDGETS=( complete-word expand-or-complete expand-or-complete-prefix list-choices menu-complete reverse-menu-complete menu-expand-or-complete menu-select accept-and-menu-complete )
yields an error when autocompletion is invoked within fizsh. In fizsh tab
is bound to the widget _fizsh-expand-or-complete-and-highlight
(and not to expand-or-complete
). This is to address zsh-users/zsh-syntax-highlighting#102.
Autocompletion seems to work when the above fragment is changed into:
ZLE_AUTOSUGGEST_COMPLETION_WIDGETS=( complete-word _fizsh-expand-or-complete-and-highlight expand-or-complete-prefix list-choices menu-complete reverse-menu-complete menu-expand-or-complete menu-select accept-and-menu-complete )
from fizsh.
Thanks for explanation. I'll give a shot.
Thanks.
from fizsh.
The main file of https://github.com/tarruda/zsh-autosuggestions is called "autosuggestions.zsh". In this file the fragment
ZLE_AUTOSUGGEST_COMPLETION_WIDGETS=( complete-word expand-or-complete expand-or-complete-prefix list-choices menu-complete reverse-menu-complete menu-expand-or-complete menu-select accept-and-menu-complete )
yields an error when autocompletion is invoked within fizsh. In fizsh
tab
is bound to the widget_fizsh-expand-or-complete-and-highlight
(and not toexpand-or-complete
). This is to address zsh-users/zsh-syntax-highlighting#102.Autocompletion seems to work when the above fragment is changed into:
ZLE_AUTOSUGGEST_COMPLETION_WIDGETS=( complete-word _fizsh-expand-or-complete-and-highlight expand-or-complete-prefix list-choices menu-complete reverse-menu-complete menu-expand-or-complete menu-select accept-and-menu-complete )
That is now broken. Could you maybe post an new solution?
from fizsh.
Related Issues (18)
- Changing and/or removing the welcome message? HOT 4
- Adding current Github repo status HOT 11
- What is the status on this repository HOT 2
- does it support termux? HOT 2
- Creating fizsh files from ansible HOT 2
- Put `.fizsh` into `.local`? HOT 2
- Changing prompt character in fizsh HOT 2
- Doesn't compatiable with vim's quickfix. HOT 6
- `cp: cannot stat` messages when trying to run fizsh HOT 1
- How to add `ls alias` for `fizsh` ? HOT 1
- Proot-distro alias of Arch Linux in Termux HOT 1
- Cannot modify install location of /etc/fizsh HOT 2
- Fails with setopt nounset HOT 1
- The doc installation instructions are inapropriate HOT 1
- Fizsh cannot be used as login shell due to missing PATH HOT 34
- Is it possible to install a zsh theme in fizsh? If so how? HOT 2
- fizsh-miscellaneous.zsh:57: no matches found: key[End]}= HOT 3
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 fizsh.