Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat]: alias-proof syntax highlighting #62

Open
GotaLoveFiraCode opened this issue Jan 3, 2024 · 2 comments
Open

[feat]: alias-proof syntax highlighting #62

GotaLoveFiraCode opened this issue Jan 3, 2024 · 2 comments

Comments

@GotaLoveFiraCode
Copy link

If the feature request is for a plugin or theme, specify it here.

fast syntax highlighting

If the feature solves a problem you have, specify it here.

I use an alias for sudo: _. When I use this alias, the alias itself has highlighting, but everything after it doesn’t. Highlighting works fine for sudo. Example:

$ _ dnf update

_ is highlighted, dnf update is not.

$ sudo dnf update

sudo and dnf are highlighted green, update yellow (intended behavior).

Describe the proposed feature.

It would be awesome if fast-syntax-highlighting could interpret aliases, and one could achieve proper syntax highlighting despite using them.

Describe alternatives you've considered

No response

Additional context

fast-syntax-highlighting does manage to interpret aliases to a certain degree, the problem really does seem to be “nested” commands :) Love the plugin though!!! Keep up the good work!

2024-01-03T20:14:03,826227021+01:00
2024-01-03T20:14:09,925853723+01:00

Related Issues

No response

@L0laapk3
Copy link

I also ran into this issue.

alias foo="noglob foo"
foo bar?

bar? will highlight blue.

@AtifChy
Copy link

AtifChy commented Aug 8, 2024

hum, don't have this problem with zsh-syntax-highlighting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants