summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-07-12 10:44:43 +0200
committerDave Davenport <qball@gmpclient.org>2016-07-12 10:44:43 +0200
commitb47e9c3846e3813baa93fa63bd69bac9969ca69f (patch)
tree688e6b3c53a902dbe71b67486478e4c827c2cb93 /doc
parent9e41b6ee959f14350995c7bc041f8b08632a3df0 (diff)
Allow for more advanced window 'line' formatting
Diffstat (limited to 'doc')
-rw-r--r--doc/rofi-manpage.markdown9
-rw-r--r--doc/rofi.112
2 files changed, 16 insertions, 5 deletions
diff --git a/doc/rofi-manpage.markdown b/doc/rofi-manpage.markdown
index 63cad188..65c040d6 100644
--- a/doc/rofi-manpage.markdown
+++ b/doc/rofi-manpage.markdown
@@ -587,7 +587,9 @@ See [here](https://developer.gnome.org/pango/stable/PangoMarkupFormat.html) for
Format what is being displayed for windows.
-*format*:
+*format*: {field[:len]}
+
+*field*:
* **w**: Desktop name
* **t**: Title of window
@@ -595,7 +597,10 @@ Format what is being displayed for windows.
* **r**: Role
* **c**: Class
-default: w c t
+*len*: maximum field length (0 for auto-size). If length negative and window *width* is negative field length is *width - len*.
+
+
+default: {w} {c} {t}
### Message dialog
diff --git a/doc/rofi.1 b/doc/rofi.1
index 3fb228a1..e9cd6983 100644
--- a/doc/rofi.1
+++ b/doc/rofi.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "ROFI\-MANPAGE" "" "2016-07-11" "" ""
+.TH "ROFI\-MANPAGE" "" "July 2016" "" ""
.
.SH "NAME"
\fBrofi\fR \- A window switcher, run launcher, ssh dialog and dmenu replacement
@@ -936,7 +936,10 @@ Tell \fBrofi\fR that DMenu input is pango markup encoded and should be rendered\
Format what is being displayed for windows\.
.
.P
-\fIformat\fR:
+\fIformat\fR: {field[:len]}
+.
+.P
+\fIfield\fR:
.
.IP "\(bu" 4
\fBw\fR: Desktop name
@@ -956,7 +959,10 @@ Format what is being displayed for windows\.
.IP "" 0
.
.P
-default: w c t
+\fIlen\fR: maximum field length (0 for auto\-size)\. If length negative and window \fIwidth\fR is negative field length is \fIwidth \- len\fR\.
+.
+.P
+default: {w} {c} {t}
.
.SS "Message dialog"
\fB\-e\fR \fImessage\fR