View Code? Open in Web Editor
NEW
This project forked from z-shell /f-sy-h
Feature-rich Syntax Highlighting for Zsh.
Home Page: https://wiki.zshell.dev
License: BSD 3-Clause "New" or "Revised" License
fast-syntax-highlighting's Issues
Feature description
add syntax highlighting for grep and cat outputs
Related Code
No response
Additional Context
Self-service
Have you read the Contributing Guidelines?
Are you familiar with Contributor Covenant Code of Conduct?
Contact Details
[email protected]
Environment
MacOS
Expected behavior
Should be able to run
source ~/.zshrc
Current behavior
When I run it, It gives an error:
bash: ${${0:#$ZSH_ARGZERO}:-${(%):-%N}}: bad substitution
bash: ${${(M)0:#/*}:-$PWD/$0}: bad substitution
bash: typeset: -g: invalid option
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...
bash: typeset: -g: invalid option
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...
bash: typeset: -g: invalid option
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...
bash: typeset: -g: invalid option
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...
bash: typeset: -g: invalid option
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...
bash: ${FAST_WORK_DIR}: bad substitution
mkdir: : No such file or directory
bash: /Users/ganapolsky/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh: line 129: syntax error near unexpected token )' bash: /Users/ganapolsky/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh: line 129:
() {'
ganapolsky-macbookpro: ganapolsky$ thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', library/std/src/io/stdio.rs:1017:9
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
Steps to reproduce
Create a .zsh
directory to store our plugins in one place
mkdir ~/.zsh
Clone repo to ~/.zsh/
directory
cd ~/.zsh && git clone [email protected] :zdharma/fast-syntax-highlighting.git
Enable 'fast-syntax-highlighting' plugin in ZSH
echo "source $HOME/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh" >> ~/.zshrc
Reload ZSH
source ~/.zshrc
Code snippet
eval "$(starship init zsh)"
source $HOME/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
Aditional information
Following the tutorial here:
https://tjay.dev/howto-my-terminal-shell-setup-hyper-js-zsh-starship/
Self-service
Have you read the Contributing Guidelines?
Are you familiar with Contributor Covenant Code of Conduct?
Contact Details
[email protected]
Environment
OSTYPE=linux-gnu CPUTYPE=x86_64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.9
Expected behavior
When partially accepting an autosuggestion, if it is the last word, it should just be accepted and complete the suggestion
Current behavior
When partially accepting the last word, it is duplicated three times
Steps to reproduce
Have the both plugin installed, and partially accept the last word of a suggestion
Code snippet
There is nothing to show really, I didn't change the default variables
Aditional information
The highlighting plugin of zsh-users works so it has to be coming from here
Self-service
Have you read the Contributing Guidelines?
Are you familiar with Contributor Covenant Code of Conduct?
Contact Details
No response
Environment
OSTYPE=darwin21.0 CPUTYPE=arm64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.8.1
Expected behavior
All tokens in the input line should receive syntax highlighting no matter what.
Current behavior
If a token is completed by pressing the TAB key, it will display without syntax highlighting until more keyboard input is provided.
Steps to reproduce
Begin typing the name of a program that is in the PATH (for this example, I will use neofetch
). Type only part of the name, so that it is syntax highlighted in red (neof
).
Press the tab key to complete the command. It will now be displayed in white.
Press any key. The syntax highlighting will return to normal.
Code snippet
antigen bundle zdharma-continuum/fast-syntax-highlighting
(this issue also occurs when the plugin is installed through other means)
Aditional information
This will only impact the token being tab-completed. For example, cat some_fi[TAB]
will highlight cat
correctly, but display some_file
in white.
Self-service
Have you read the Contributing Guidelines?
Are you familiar with Contributor Covenant Code of Conduct?
Contact Details
No response