Giter Club home page Giter Club logo

fast-syntax-highlighting's People

Contributors

alichtman avatar camsteffen avatar d10n avatar deepsourcebot avatar dependabot[bot] avatar desyncr avatar f-i-f avatar grigorii-horos avatar imgbotapp avatar infokiller avatar lilydjwg avatar nesvand avatar plexigras avatar pskarma avatar psprint avatar pushqrdx avatar ss-o avatar sugarsnack avatar vladdoster avatar xeruf avatar xpmo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fast-syntax-highlighting's Issues

[bug]: Unexpected token error

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

  • I'd be willing to address this documentation request myself.

Have you read the Contributing Guidelines?

Are you familiar with Contributor Covenant Code of Conduct?

Contact Details

[email protected]

[bug]: Conflict with zsh-autosuggestions, copy of the last word of the command when partial accept

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

  • I'd be willing to address this documentation request myself.

Have you read the Contributing Guidelines?

Are you familiar with Contributor Covenant Code of Conduct?

Contact Details

No response

[bug]: Tab completion breaks syntax highlighting

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).

image

  • Press the tab key to complete the command. It will now be displayed in white.

image

  • Press any key. The syntax highlighting will return to normal.

image

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

  • I'd be willing to address this documentation request myself.

Have you read the Contributing Guidelines?

Are you familiar with Contributor Covenant Code of Conduct?

Contact Details

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.