yazi editors

This commit is contained in:
Matt Nish-Lapidus 2025-04-08 12:26:52 -04:00
parent a72a24fabb
commit 7a7dad92d4
3 changed files with 39 additions and 39 deletions

View file

@ -98,6 +98,7 @@ in
XDG_SESSION_TYPE = "wayland";
MOZ_ENABLE_WAYLAND = "1";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
EDITOR = "emacsclient -r -n";
};
cursor = {
@ -259,10 +260,8 @@ in
binds =
with config.lib.niri.actions;
let
wez =
spawn "wezterm" "--config-file" "/home/emenel/.config/wezterm/launcher.lua" "start"
"--always-new-process";
wezlaunch = wez "--class" "launcher";
wez = spawn "/home/emenel/.local/bin/wezapp";
wezlaunch = spawn "/home/emenel/.local/bin/wezlauncher";
in
{
# shows a list of important hotkeys.

View file

@ -127,10 +127,11 @@
};
opener = {
edit = [
{ run = "emacsclient -r -n \"$@\""; desc = "open in current emacsclient"; orphan = true; }
{ run = "$EDITOR \"$@\""; desc = "emacsclient"; orphan = true; block = false; }
{ run = "nano \"$@\""; desc = "nano"; orphan = false; block = true; }
];
extract = [
{ run = "ouch d -y \"$@\""; desc = "Extract here with ouch"; }
{ run = "ouch d -y \"$@\""; desc = "Extract here with ouch"; }
];
};
open = {