From 1d75175be80d6de9d0300afc6de5e900e2aa18b4 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Sat, 7 Feb 2026 13:22:00 +0100 Subject: [PATCH] Change default for text & add title Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- home/system/mime/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/home/system/mime/default.nix b/home/system/mime/default.nix index 99824ac..7f51578 100644 --- a/home/system/mime/default.nix +++ b/home/system/mime/default.nix @@ -8,7 +8,10 @@ with lib; let defaultApps = { # check desktop files here: `ls $(echo $XDG_DATA_DIRS| sed "s/:/ /g")` browser = ["brave.desktop"]; - text = ["org.gnome.TextEditor.desktop"]; + text = [ + # "org.gnome.TextEditor.desktop" + "nvim-ghostty.desktop" + ]; code = ["nvim-ghostty.desktop"]; image = ["imv-dir.desktop"]; audio = ["mpv.desktop"]; @@ -122,7 +125,7 @@ with lib; let nvim-ghostty = pkgs.makeDesktopItem { name = "nvim-ghostty"; desktopName = "Neovim (Ghostty)"; - exec = "ghostty -e nvim %F"; + exec = ''ghostty --title="Neovim Editor" -e nvim %F''; terminal = false; categories = ["Development" "TextEditor"]; mimeTypes = mimeMap.code ++ mimeMap.text;