diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2022-06-20 23:26:33 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-07 22:45:50 +0000 |
commit | ed8a919812974307c68d5238a95322a137f14545 (patch) | |
tree | d61eda2500116d2a580eb442c11ebab944c0b53c /DOCS/man/console.rst | |
parent | 659353b7d6e9862d7d5b92d99548144e47cc72c9 (diff) | |
download | mpv-ed8a919812974307c68d5238a95322a137f14545.tar.bz2 mpv-ed8a919812974307c68d5238a95322a137f14545.tar.xz |
console: show completion suggestions as table
Completion suggestions are now nicely formatted into a table.
Maximum width of the table is estimated based on OSD size and
font size.
This requires a new scaling factor option `font_hw_ratio`.
A factor of 2.15 works great for me,
but the default is 2.0 to avoid problems with other fonts.
The space between columns is automatically adjusted to be
between 2 and 8 spaces.
It tries to use as few rows as possible.
Diffstat (limited to 'DOCS/man/console.rst')
-rw-r--r-- | DOCS/man/console.rst | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/DOCS/man/console.rst b/DOCS/man/console.rst index 681b7e5da1..cfcc643323 100644 --- a/DOCS/man/console.rst +++ b/DOCS/man/console.rst @@ -135,8 +135,9 @@ Configurable Options ``font`` Default: unset (picks a hardcoded font depending on detected platform) - Set the font used for the REPL and the console. This probably doesn't - have to be a monospaced font. + Set the font used for the REPL and the console. + This has to be a monospaced font for the completion suggestions to be + aligned correctly. ``font_size`` Default: 16 @@ -153,3 +154,10 @@ Configurable Options Default: true Remove duplicate entries in history as to only keep the latest one. + multiplied by "scale." + +``font_hw_ratio`` + Default: 2.0 + + The ratio of font height to font width. + Adjusts table width of completion suggestions. |