Page MenuHomeSolus

Replace zsh-syntax-highlighting with fast-syntax-highlighting
Closed, WontfixPublic

Description

We ship the following package: https://github.com/zsh-users/zsh-syntax-highlighting R3330 but there exists a popular, faster & better-optimized fork that also has increased granularity with the syntax that it actually highlights.
I'd like to suggest replacing R3330's upstream with https://github.com/zdharma/fast-syntax-highlighting. It's pretty much the same, but better in every way. It keeps up-to-date, too. Last commit at the time of making this request was 8 hours ago.

I'll provide the standard package request information for fast-syntax-highlighting, to assist with making changes 'n' such.

*The upstream developer seems to be quite cooperative and is happy to have this packaged by adding newer GitHub releases.
https://github.com/zdharma/fast-syntax-highlighting/issues/19

Since it's just a Zsh plugin, it'd be possible to have both packaged and they shouldn't conflict in any way that'd break things, but I think it'd be better to prevent unnecessary package duplication.

Comparison video available:
https://asciinema.org/a/112367

zsh-syntax-highlighting's old package request: T3342

TL;DR because similar naming: zsh-syntax-highlighting upsteam > fast-syntax-highlighting upstream, because improved & up-to-date fork.

Snuggle created this task.May 30 2018, 7:44 PM
Snuggle edited projects, added Software; removed Package Requests.May 30 2018, 7:57 PM
JoshStrobl moved this task from Backlog to Improvement on the Software board.Aug 24 2018, 1:14 PM
JoshStrobl triaged this task as Normal priority.
JoshStrobl renamed this task from Please replace zsh-syntax-highlighting (R3330) upstream with improved fork to Replace zsh-syntax-highlighting with fast-syntax-highlighting.

Lacks any sort of Makefile or documentation on recommended system-wide paths (from what I can tell). Not just gonna arbitrarily throw it into a directory.

Snuggle added a comment.EditedAug 31 2018, 3:44 PM

A lot of people use Zsh plugin managers which can be slow, but they have different directories.

Assuming no plugin manager, this directory is the best place to put it.

/usr/share/zsh/plugins/fast-syntax-highlighting

Someone would also have to add this to their ~/.zshrc to actually source it.

source  /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
DataDrake closed this task as Wontfix.Oct 20 2018, 4:44 PM
DataDrake added a subscriber: DataDrake.

Closing due to lack of activity in over 30 days. Still eligible for inclusion.