Added more documentation to palette

This commit is contained in:
Igor Támara 2025-10-21 22:32:01 -05:00 committed by CJ van den Berg
parent d14b44ed1c
commit 34ec8be355

View file

@ -5,7 +5,12 @@
.layout = "tutorial.shtml", .layout = "tutorial.shtml",
.draft = false, .draft = false,
.custom = { .custom = {
.githubedit = "/docs/architecture/palette.md" .githubedit = "docs/architecture/palette.md",
.prevurl = "docs/minimode",
.prevtext = "Mini modes",
.topurl = "docs/architecture",
.toptext = "Architecture",
.codepath ="src/tui/mode/overlay/clipboard_palette.zig",
}, },
--- ---
@ -98,7 +103,8 @@ ready, it's time to make the palette available as a command.
## Registering the palette ## Registering the palette
Commands that open the palette are defined in `tui.zig` in a similar way as it Commands that open the palette are defined in `tui.zig` in a similar way as it
is done with [minimodes](/docs/architecture/minimode). is done with [minimodes](/docs/architecture/minimode). We have got
you covered if in doubt about [how to create a command](/docs/architecture/command).
To view a complete implementation of a palette, take a look at To view a complete implementation of a palette, take a look at
[clipboard history palette commit](https://github.com/neurocyte/flow/commit/634a18cb5685a3c3fcfc08301306e628d33c3256) [clipboard history palette commit](https://github.com/neurocyte/flow/commit/634a18cb5685a3c3fcfc08301306e628d33c3256)