fish-shell / fish-shell/fish-shell
Syntax highlighting doesn't show user-specific home expansion tokens in appropriate color
Open
enhancement
- Dominant language
- Rust
- Stars
- 34.2k
- Forks
- 2.4k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 13
Description
When writing `~`, fish colors the character according to `$fish_color_operator`. However, when writing `~user`, which would expand to `/home/user/` on most systems, the `user` part of that string *isn't* colored the same way, but instead colored by `$fish_color_param`. I believe that this shouldn't be the behaviour, as `user` can neither be seen as an argument to `~`, as `~` is not a command, nor text appended to the expansion of `~`, since `~` expands to `/home/$USER` (not a literal string, expand variables) on most systems, and not `/home`.
Contributor guide
Assessment
This issue has not been assessed yet.