docs: Update mactag.yazi README.md
This commit is contained in:
@@ -21,7 +21,7 @@ Add the following to your `~/.config/yazi/init.lua`:
|
|||||||
|
|
||||||
```lua
|
```lua
|
||||||
require("mactag"):setup {
|
require("mactag"):setup {
|
||||||
-- You can change the colors of the tags here
|
-- Keys used to add or remove tags
|
||||||
keys = {
|
keys = {
|
||||||
r = "Red",
|
r = "Red",
|
||||||
o = "Orange",
|
o = "Orange",
|
||||||
@@ -30,6 +30,7 @@ require("mactag"):setup {
|
|||||||
b = "Blue",
|
b = "Blue",
|
||||||
p = "Purple",
|
p = "Purple",
|
||||||
},
|
},
|
||||||
|
-- Colors used to display tags
|
||||||
colors = {
|
colors = {
|
||||||
Red = "#ee7b70",
|
Red = "#ee7b70",
|
||||||
Orange = "#f5bd5c",
|
Orange = "#f5bd5c",
|
||||||
@@ -57,16 +58,18 @@ run = "mactag"
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
This plugin also provides the functionality to add and remove tags. Add following keybindings to your `~/.config/yazi/keymap.toml` to enable it:
|
Besides displaying tags attached to files, you can also add or remove tags within Yazi using this plugin.
|
||||||
|
|
||||||
|
Add following keybindings to your `~/.config/yazi/keymap.toml` to enable it:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[manager.prepend_keymap]]
|
[[manager.prepend_keymap]]
|
||||||
on = [ "b", "a" ]
|
on = [ "b", "a" ]
|
||||||
run = 'plugin mactag --args="add"'
|
run = 'plugin mactag --args="add"'
|
||||||
desc = "Add tag to selected files"
|
desc = "Tag selected files"
|
||||||
|
|
||||||
[[manager.prepend_keymap]]
|
[[manager.prepend_keymap]]
|
||||||
on = [ "b", "r" ]
|
on = [ "b", "r" ]
|
||||||
run = 'plugin mactag --args="remove"'
|
run = 'plugin mactag --args="remove"'
|
||||||
desc = "Remove tag from selected files"
|
desc = "Untag selected files"
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user