Skip to content

Commit

Permalink
docs: document virt text property
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Sep 27, 2023
1 parent 540389b commit 98af046
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1973,6 +1973,7 @@ multiple `dropbar_menu_entry_t` instances while a
| `separator` | [`dropbar_symbol_t`](#dropbar_symbol_t) | separator to use in the entry |
| `padding` | `{left: integer, right: integer}` | padding to use between the menu entry and the menu border |
| `components` | [`dropbar_symbol_t[]`](#dropbar_symbol_t) | components<sub>[`dropbar_symbol_t[]`](#dropbar_symbol_t)</sub> in the entry |
| `virt_text` | `string[][]?` | list of virtual text chunks to display below the entry |
| `menu` | [`dropbar_menu_t?`](#dropbar_menu_t) | the menu the entry belongs to |
| `idx` | `integer?` | the index of the entry in the menu |
Expand Down
18 changes: 13 additions & 5 deletions doc/dropbar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1832,36 +1832,44 @@ contain multiple `dropbar_symbol_t` instances.

`dropbar_menu_entry_t` has the following fields:

dropbar_menu_t.separator *dropbar_menu_t.separator*
dropbar_menu_entry_t.separator *dropbar_menu_t.separator*

Separator to use in the entry

Type ~
`dropbar_symbol_t`

dropbar_menu_t.padding *dropbar_menu_t.padding*
dropbar_menu_entry_t.padding *dropbar_menu_t.padding*

Padding to use between the menu entry and the menu border

Type ~
{ left: integer, right: integer }

dropbar_menu_t.components *dropbar_menu_t.components*
dropbar_menu_entry_t.components *dropbar_menu_t.components*

Symbols got from sources |dropbar-developers-classes-dropbar_source_t|
in the entry

Type ~
`dropbar_symbol_t`[]

dropbar_menu_t.menu *dropbar_menu_t.menu*
dropbar_menu_entry_t.virt_text *dropbar_menu_t.virt_text*

Symbols got from sources |dropbar-developers-classes-dropbar_source_t|
in the entry

Type ~
`string`[][]?

dropbar_menu_entry_t.menu *dropbar_menu_t.menu*

The menu the entry belongs to

Type ~
`dropbar_menu_t`?

dropbar_menu_t.idx *dropbar_menu_t.idx*
dropbar_menu_entry_t.idx *dropbar_menu_t.idx*

The index of the entry in the menu

Expand Down

0 comments on commit 98af046

Please sign in to comment.