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

Special env vars #7105

Closed
uncomfyhalomacro opened this issue May 22, 2023 · 2 comments
Closed

Special env vars #7105

uncomfyhalomacro opened this issue May 22, 2023 · 2 comments
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much

Comments

@uncomfyhalomacro
Copy link
Contributor

Hello. Long time helix user here. Not sure if this is in the scope of the project but I want helix to be able to have special environmental variables. This special environmental variables are quite helpful in creating scripts or help configure LSPs in language.toml. Kakoune does this. For example. with kak_buffile, an environmental variable that gives the whole path to the buffer or file, allows me to versatile scripts e.g. sending the buffer file to another kakoune instance. This also allows me to enhance my LSP experience with Julia with kak-lsp as seen in https://github.com/kak-lsp/kak-lsp/blob/52197dde1a1c5e997a3ad989a8dfdd8017056a3b/kak-lsp.toml#L168-L170. This way, if I open a file where I am not within the root of the project, the kak_buffile is an env var that allows me to get the full path to the project.

Not sure if there were any plans for this. But if it is okay to implement, will you give me a try to contribute?

@uncomfyhalomacro uncomfyhalomacro added the C-enhancement Category: Improvements label May 22, 2023
@kirawi kirawi added E-easy Call for participation: Experience needed to fix: Easy / not much A-helix-term Area: Helix term improvements labels May 23, 2023
@the-mikedavis
Copy link
Member

This is already being worked on in #6979 for command expansions and after that there is #5626.

@uncomfyhalomacro
Copy link
Contributor Author

Ah that's cool! Closing since this is a duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements E-easy Call for participation: Experience needed to fix: Easy / not much
Projects
None yet
Development

No branches or pull requests

3 participants