Skip to content

Commit

Permalink
add 'ui.column.spec' docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pyroscope committed Jun 17, 2018
1 parent 77e4374 commit 1d1c235
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 22 additions & 1 deletion docs/include-cmd-ui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,34 @@ Commands in this group control aspects of the ‘curses’ UI.

.. rubric:: *rTorrent-PS 1.1+ only*

This is a multi-command that holds the column layout definitions
This is a multi-command that holds the column layout specifications
for the customizable *canvas v2* display in `rTorrent-PS` version 1.1+,
and maps them to their rendering commands.

See `Customizing the Display Layout`_ in the `rTorrent-PS` manual for a detailed explanation.


ui.column.spec

.. rubric:: *rTorrent-PS 1.1+ only*

.. code-block:: ini
ui.column.spec = ‹column index› ≫ string (column specification)
For a given column index, looks up the column specification as defined in
:term:`ui.column.render`.
This can also be used to check whether a certain index is defined
– an undefined one returns an empty string.

.. rubric:: Examples

.. literalinclude:: rtorrent-ps/tests/commands/ui.txt
:language: console
:start-after: # ui.column.spec
:end-before: # END


ui.column.hide
ui.column.show
ui.column.is_hidden
Expand Down
2 changes: 1 addition & 1 deletion docs/rtorrent-ps

0 comments on commit 1d1c235

Please sign in to comment.