1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Fix -l as alias for -lines (in dmenu mode) rename -l to -row

This commit is contained in:
QC 2015-08-02 21:24:07 +02:00
parent 8ca3c276c9
commit dbf992d756
3 changed files with 33 additions and 5 deletions

View file

@ -493,15 +493,23 @@ The following options are further explained in the theming section:
Default: *dmenu*
`-l` *selected line*
`-row` *selected line*
Select a certain line.
Default: *0*
`-l` *number of lines to show*
Maximum number of lines the menu may show before scrolling.
rofi -lines 25
Default: *15*
`-i`
Number mode, return the index of the selected row. (starting at 0)
Makes dmenu match menu entries case insensitively.
`-a` *X*

View file

@ -871,7 +871,7 @@ Default: *dmenu*
.IP "" 0
.
.P
\fB\-l\fR \fIselected line\fR
\fB\-row\fR \fIselected line\fR
.
.IP "" 4
.
@ -886,13 +886,32 @@ Default: *0*
.IP "" 0
.
.P
\fB\-l\fR \fInumber of lines to show\fR
.
.P
Maximum number of lines the menu may show before scrolling\.
.
.IP "" 4
.
.nf
rofi \-lines 25
.
.fi
.
.IP "" 0
.
.P
Default: \fI15\fR
.
.P
\fB\-i\fR
.
.IP "" 4
.
.nf
Number mode, return the index of the selected row\. (starting at 0)
Makes dmenu match menu entries case insensitively\.
.
.fi
.

View file

@ -197,7 +197,7 @@ int dmenu_switcher_dialog ( char **input )
find_arg_str ( "-format", &format );
// Check prompt
find_arg_str ( "-p", &dmenu_prompt );
find_arg_int ( "-l", &selected_line );
find_arg_int ( "-row", &selected_line );
// Urgent.
char *str = NULL;
find_arg_str ( "-u", &str );
@ -234,6 +234,7 @@ int dmenu_switcher_dialog ( char **input )
g_strfreev ( tokens );
}
find_arg_uint ( "-l", &(config.menu_lines));
/**
* Dmenu compatibility.