diff --git a/README.md b/README.md
index 471f25d..bf6d425 100644
--- a/README.md
+++ b/README.md
@@ -19,18 +19,18 @@ https://github.com/dedukun/bookmarks.yazi/assets/25795432/9a9fe345-dd06-442e-99f
Yazi v0.2.5 (manual installation)
-
+
```sh
# 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
-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
```
-
Latest commit in Yazi (package manager)
diff --git a/init.lua b/init.lua
index 68fe4b6..b69a091 100644
--- a/init.lua
+++ b/init.lua
@@ -55,7 +55,7 @@ local _generate_description = ya.sync(function(state, file)
end)
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
state.bookmarks = {}
for _, value in pairs(body) do
@@ -67,7 +67,7 @@ end)
local _save_state = ya.sync(function(state, bookmarks)
if not bookmarks then
- ps.pub_static(10, "bookmarks", nil)
+ ps.pub_to(0, "@bookmarks", nil)
return
end
@@ -85,7 +85,7 @@ local _save_state = ya.sync(function(state, bookmarks)
end
end
- ps.pub_static(10, "bookmarks", save_state)
+ ps.pub_to(0, "@bookmarks", save_state)
end)
local _save_last_directory = ya.sync(function(state)