Updated DDS interface

This commit is contained in:
Diogo Duarte
2024-06-24 13:05:31 +01:00
parent b892e89712
commit 15304f3535
2 changed files with 7 additions and 7 deletions

View File

@@ -19,18 +19,18 @@ https://github.com/dedukun/bookmarks.yazi/assets/25795432/9a9fe345-dd06-442e-99f
<details> <details>
<summary>Yazi v0.2.5 (manual installation)</summary> <summary>Yazi v0.2.5 (manual installation)</summary>
```sh ```sh
# Linux/macOS # Linux/macOS
git clone https://github.com/dedukun/bookmarks.yazi.git ~/.config/yazi/plugins/bookmarks.yazi git clone -b 0.2.5 https://github.com/dedukun/bookmarks.yazi.git ~/.config/yazi/plugins/bookmarks.yazi
# Windows # Windows
git clone https://github.com/dedukun/bookmarks.yazi.git %AppData%\yazi\config\plugins\bookmarks.yazi
git clone -b 0.2.5 https://github.com/dedukun/bookmarks.yazi.git %AppData%\yazi\config\plugins\bookmarks.yazi
``` ```
</details> </details>
<details> <details>
<summary>Latest commit in Yazi (package manager)</summary> <summary>Latest commit in Yazi (package manager)</summary>

View File

@@ -55,7 +55,7 @@ local _generate_description = ya.sync(function(state, file)
end) end)
local _load_state = ya.sync(function(state) local _load_state = ya.sync(function(state)
ps.sub_remote("bookmarks", function(body) ps.sub_remote("@bookmarks", function(body)
if not state.bookmarks and body then if not state.bookmarks and body then
state.bookmarks = {} state.bookmarks = {}
for _, value in pairs(body) do for _, value in pairs(body) do
@@ -67,7 +67,7 @@ end)
local _save_state = ya.sync(function(state, bookmarks) local _save_state = ya.sync(function(state, bookmarks)
if not bookmarks then if not bookmarks then
ps.pub_static(10, "bookmarks", nil) ps.pub_to(0, "@bookmarks", nil)
return return
end end
@@ -85,7 +85,7 @@ local _save_state = ya.sync(function(state, bookmarks)
end end
end end
ps.pub_static(10, "bookmarks", save_state) ps.pub_to(0, "@bookmarks", save_state)
end) end)
local _save_last_directory = ya.sync(function(state) local _save_last_directory = ya.sync(function(state)