-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
[feature] Show editor settings #430
Comments
Add version information about the currently used editor as configured in the `$EDITOR` environment variable to the output. fixes: fastfetch-cli#430 Signed-off-by: Moritz Röhrich <moritz@ildefons.de>
Try |
I doubt if I want to support this. There are other settings ( eg compiler version, pager version ) that are as easy as |
ENV vars can be read much faster than opening a shell, maybe we can do something similar to command just for env:
Maybe a 2.0 thing. If the version is desired, i think command is the way to go too. |
Please use Command module |
I think we could consider this. I use hyfetch and it has a module for it. I know I could just use the command module, but I think the easier the better. What do you think? |
Fixed in dev branch |
Tested the 2.13.2 release from Ubuntu PPA and worked better than I expected. I thought it would just have |
Current state:
Default editor settings are completely ignored and it is impossible to show them in the output.
Wanted state:
On Platform that support it, e.g. Linux, FreeBSD and MacOS, the environment variables
$VISUAL
and$EDITOR
can be queried to fetch the configured default visual and/or line editor. On modern systems where line editors are rarely used, the distinction less important. But the environment variables may still be used to communicate which editor should be referred to to programs, e.g. https://github.com/git/git/blob/master/editor.c.Work in progress sample:
![fastfetch](https://user-images.githubusercontent.com/17141774/223483904-cd846f4f-b68e-4a5d-a7e8-0315ce8670ce.png)
Why the change is sensible:
Many users of fetching programs like this and the unfortunately unmaintained
neofetch
are happy to show off their individual choice of software. This includes the editor, especially in case of command line editors likenano
andneovim
, which integrate deeply with other system programs like command line email clients, git and more via system mechanisms.This feature would allow users to show off their choice of editor along the other system configurations like window managers, shells and terminal emulators.
The text was updated successfully, but these errors were encountered: