diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 18:48:09 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 18:48:09 +0900 |
| commit | f40d2e9b77c1e6a904fff483a2e3b08dbce1477e (patch) | |
| tree | 4dc25be274edc3bdc2e4120c7b0214f599d0fe55 /mac/.config/yazi/plugins | |
| parent | 561c004a88275d7e157ab9990301d8b881fc4455 (diff) | |
modified shell/profile, modified yazi/keymap-default.toml, deleted confirm-quit.yazi/main.lua, modified yazi/yazi.toml
Diffstat (limited to 'mac/.config/yazi/plugins')
| -rw-r--r-- | mac/.config/yazi/plugins/confirm-quit.yazi/main.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/mac/.config/yazi/plugins/confirm-quit.yazi/main.lua b/mac/.config/yazi/plugins/confirm-quit.yazi/main.lua deleted file mode 100644 index f171bc0..0000000 --- a/mac/.config/yazi/plugins/confirm-quit.yazi/main.lua +++ /dev/null @@ -1,20 +0,0 @@ -local count = ya.sync(function() - return #cx.tabs -end) - -local function entry() - if count() < 2 then - return ya.emit("quit", {}) - end - - local yes = ya.confirm({ - pos = { "center", w = 60, h = 10 }, - title = "Quit?", - content = ui.Text("There are multiple tabs open. Are you sure you want to quit?"):wrap(ui.Wrap.YES), - }) - if yes then - ya.emit("quit", {}) - end -end - -return { entry = entry } |
