z-shell / f-sy-h Goto Github PK
View Code? Open in Web Editor NEW⚙️ Feature-rich Syntax Highlighting for Zsh
Home Page: https://wiki.zshell.dev/search?q=F-Sy-H
License: BSD 3-Clause "New" or "Revised" License
⚙️ Feature-rich Syntax Highlighting for Zsh
Home Page: https://wiki.zshell.dev/search?q=F-Sy-H
License: BSD 3-Clause "New" or "Revised" License
# TODO: handle the non-SVN path's specifics
undefined
# TODO: map-outdates e.g: pnpm
Title says it all.
No response
No response
No response
OSTYPE=darwin21.3.0 CPUTYPE=arm64 / MACHINE_TYPE=arm ZSH_VERSION=5.9
Press <tab>
and show nothing:
time -<tab>
> time -
- -fast-highlight-fill-option-variables -fast-highlight-process
-fast-highlight-check-path -fast-highlight-init -fast-highlight-string
-fast-highlight-check-path-handler -fast-highlight-main-type -fast-highlight-string-process
-fast-highlight-dollar-string -fast-highlight-math-string -fsh_sy_h_shappend
time -<tab>
I use oh-my-zsh:
plugins=(... F-Sy-H)
None.
No response
OSTYPE=linux-gnu CPUTYPE=x86_64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.9
(with default theme)
With the prompt git commit some/file.lua
👉 The given file to commit is colored with 'correct-subtle'.
With the prompt git commit some/folder/with/changes/
👉 The given path to commit SHOULD BE colored with 'correct-subtle' as well
With the prompt git commit some/folder/with/changes/
👉 The given path to commit is instead colored with 'incorrect-subtle', so looks like an error even though is completely valid git-wise.
N/A ?
No special config, the plugin is loaded with zi light /path/to/F-Sy-H-plugin
N/A ?
here on github
Env: OSTYPE=linux-gnu CPUTYPE=x86_64 MACHINE_TYPE=x86_64 ZSH_VERSION=5.8.1
a rapid check of the code seems to show that I could set the FAST_WORK_DIR
to change where the state of FSH is stored, by trying that:
FAST_WORK_DIR=~/.long_term_cache/zsh--fast-syntax-highlighting
echo "FAST_WORK_DIR (before zi): $FAST_WORK_DIR"
zi light z-shell/F-Sy-H
echo "FAST_WORK_DIR (after zi): $FAST_WORK_DIR"
Starting a new shell I get:
FAST_WORK_DIR (before zi): /home/lesell_b/.long_term_cache/zsh--fast-syntax-highlighting
FAST_WORK_DIR (after zi): /home/lesell_b/.cache/fsh
Which seems wrong...
In addition to that, it seems that the chroma system assumes the theme is stored in ~/.cache/fsh, and does not check what FAST_WORK_DIR
is set to.
I tried to fix that in #24, but further testing showed the weird inconsistency above.
As per #22 antigen
requires special flags to indicate the use of main
as the primary branch.
Instructions should specify antigen bundle z-shell/F-Sy-H --branch=main
ZI (this repository)
OSTYPE=linux-gnu CPUTYPE=x86_64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.9
For example, git subcommands should be highlighted.
No command-specific highlighting. Chroma files/functions not found:
$ chroma/-git.ch
zsh: chroma/-git.ch: function definition file not found
Install F-Sy-H without package manager. For example, as a git submodule: https://github.com/amezin/zdotdir
Type "git checkout" in prompt, "checkout" isn't highlighted
source "${ZDOTDIR}/fast-syntax-highlighting/F-Sy-H.plugin.zsh"
# Adding the following line makes git-specific highlighting work
fpath+=("${ZDOTDIR}/fast-syntax-highlighting")
chroma
should likely be inside functions
No response
Prepare for upcoming releases.
1 - CI
2 - Syntax
3 - Documentation
OSTYPE=linux-gnu CPUTYPE=x86_64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.9
With this global alias:
alias -g NOOUT=">/dev/null"
When I use it in a simple command like echo foo NOOUT
it shows like this (with default theme):
When I use it in a git command like git commit --dry-run NOOUT
the chroma identifies the alias as an invalid token and uses color 'incorrect-subtle':
😞
N/A?
No special config, the plugin is loaded with zi light /path/to/F-Sy-H-plugin
N/A?
here on github
I just saw that https://github.com/zdharma/fast-syntax-highlighting got created again and now points to this repo (https://github.com/z-shell/fast-syntax-highlighting) as upstream repo. Are you the real zdharma and is this now again the official upstream? https://github.com/zdharma-continuum/fast-syntax-highlighting got created in the meantime and accepted in the community.
If you are the real zdharma, can we rely on you not again deleting this repo?
More context for the drama: https://www.reddit.com/r/zsh/comments/qinb6j/httpsgithubcomzdharma_has_suddenly_disappeared_i/
I think it would be helpful for you to give us an answer on all this and not just pretend like it never happened.
# TODO: handle the SVN path's specifics
undefined
This repository uses main
as its default branch whereas zgen
by itself searches only for master
.
Hence, zgen load z-shell/F-Sy-H
in the README should be replaced with zgen load z-shell/F-Sy-H . main
or something like that.
On an unrelated note, when you try to create a new issue you're prompted to select the type, and "Community Discussion" leads to https://github.com/org/z-shell/discussions which doesn't exist.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.