summaryrefslogtreecommitdiff
path: root/fedora/.config/yazi/plugins/toggle-pane.yazi/main.lua
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-28 15:42:50 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-28 15:42:50 +0900
commitae78dbbff81196f1d7bc8fabf84d05e6b9f3ca03 (patch)
treefdc69ee3e2772aa4db7e8efe4bd30d101c7f82ac /fedora/.config/yazi/plugins/toggle-pane.yazi/main.lua
parent06ad645351572c0e7188c52028998384d718df2e (diff)
updatesHEADmaster
Diffstat (limited to 'fedora/.config/yazi/plugins/toggle-pane.yazi/main.lua')
-rw-r--r--fedora/.config/yazi/plugins/toggle-pane.yazi/main.lua45
1 files changed, 0 insertions, 45 deletions
diff --git a/fedora/.config/yazi/plugins/toggle-pane.yazi/main.lua b/fedora/.config/yazi/plugins/toggle-pane.yazi/main.lua
deleted file mode 100644
index 72bbf0e..0000000
--- a/fedora/.config/yazi/plugins/toggle-pane.yazi/main.lua
+++ /dev/null
@@ -1,45 +0,0 @@
---- @since 25.5.31
---- @sync entry
-
-local function entry(st, job)
- local R = rt.mgr.ratio
- job = type(job) == "string" and { args = { job } } or job
-
- st.parent = st.parent or R.parent
- st.current = st.current or R.current
- st.preview = st.preview or R.preview
-
- local act, to = string.match(job.args[1] or "", "(.-)-(.+)")
- if act == "min" then
- st[to] = st[to] == R[to] and 0 or R[to]
- elseif act == "max" then
- local max = st[to] == 65535 and R[to] or 65535
- st.parent = st.parent == 65535 and R.parent or st.parent
- st.current = st.current == 65535 and R.current or st.current
- st.preview = st.preview == 65535 and R.preview or st.preview
- st[to] = max
- end
-
- if not st.old then
- st.old = Tab.layout
- Tab.layout = function(self)
- local all = st.parent + st.current + st.preview
- self._chunks = ui.Layout()
- :direction(ui.Layout.HORIZONTAL)
- :constraints({
- ui.Constraint.Ratio(st.parent, all),
- ui.Constraint.Ratio(st.current, all),
- ui.Constraint.Ratio(st.preview, all),
- })
- :split(self._area)
- end
- end
-
- if not act then
- Tab.layout, st.old = st.old, nil
- st.parent, st.current, st.preview = nil, nil, nil
- end
- ya.emit("app:resize", {})
-end
-
-return { entry = entry }