You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file extension of a symlink should be used as a file type hint, when the one on the destination file does not help.
This is in regards to syntax highlighting.
Reproduction Steps
Minimum reproducible example:
I have two files, one real one name test.c.1 with my c source code
and a symlink to that previous file named test.c.
When I open test.c.1 there is no syntax highlighting which is expected since there is not hint for the editor, however when I open test.c (symlink to test.c.1), I would expect it to open with c syntax highlighting (at least as a fallback).
This expected behavior is the current behavior of other popular editors (Ex: neovim)
Helix log
~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines
This would be a nice feature because I have often run into its lack, especially on NixOs. When you have a ~/.config/helix/config.toml file which is a symlink to /nix/store/blablabla-helix-config (plain text), so I don't have syntax highlighting.
Summary
The file extension of a symlink should be used as a file type hint, when the one on the destination file does not help.
This is in regards to syntax highlighting.
Reproduction Steps
Minimum reproducible example:
I have two files, one real one name
test.c.1
with my c source codeand a symlink to that previous file named
test.c
.When I open test.c.1 there is no syntax highlighting which is expected since there is not hint for the editor, however when I open test.c (symlink to test.c.1), I would expect it to open with c syntax highlighting (at least as a fallback).
This expected behavior is the current behavior of other popular editors (Ex: neovim)
Helix log
~/.cache/helix/helix.log
Platform
Linux + MacOs
Terminal Emulator
Iterm2 Build 3.4.19
Helix Version
helix 23.05 (7f5940b)
The text was updated successfully, but these errors were encountered: