From 39cb677ed9e908e90478aa9fe5f3383dfc1a63f3 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 11 Dec 2025 13:10:21 -0600 Subject: [PATCH] news: add defaultEditor entry Let users know about new variable being set. Signed-off-by: Austin Horstman --- .../misc/news/2025/12/2025-12-11_13-04-30.nix | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 modules/misc/news/2025/12/2025-12-11_13-04-30.nix diff --git a/modules/misc/news/2025/12/2025-12-11_13-04-30.nix b/modules/misc/news/2025/12/2025-12-11_13-04-30.nix new file mode 100644 index 000000000..ddafb6dd1 --- /dev/null +++ b/modules/misc/news/2025/12/2025-12-11_13-04-30.nix @@ -0,0 +1,32 @@ +{ config, ... }: + +{ + time = "2025-12-11T19:04:30+00:00"; + condition = + let + helixEnabled = config.programs.helix.enable && config.programs.helix.defaultEditor; + kakouneEnabled = config.programs.kakoune.enable && config.programs.kakoune.defaultEditor; + neovimEnabled = config.programs.neovim.enable && config.programs.neovim.defaultEditor; + vimEnabled = config.programs.vim.enable && config.programs.vim.defaultEditor; + emacsEnabled = config.services.emacs.enable && config.services.emacs.defaultEditor; + in + helixEnabled || kakouneEnabled || neovimEnabled || vimEnabled || emacsEnabled; + message = '' + The 'defaultEditor' option now sets both {env}`EDITOR` and {env}`VISUAL` + environment variables. + + Previously, only {env}`EDITOR` was set. The {env}`VISUAL` variable is now + also configured to point to the same editor, which is the expected behavior + for modern terminal editors. + + This change affects the following modules: + - programs.helix + - programs.kakoune + - programs.neovim + - programs.vim + - services.emacs + + No action is required. This change should improve compatibility with tools + that check {env}`VISUAL` before {env}`EDITOR`. + ''; +}