mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Fix #125: Use shift-left/right for moving between switchers.
This commit is contained in:
parent
b0b8a0c477
commit
fda5badeb6
3 changed files with 13 additions and 17 deletions
|
@ -498,8 +498,8 @@ Rofi supports the following keybindings:
|
||||||
* `Ctrl-Enter`: Use entered text as command (in ssh/run dialog)
|
* `Ctrl-Enter`: Use entered text as command (in ssh/run dialog)
|
||||||
* `Shift-Enter`: Launch the application in a terminal (in run dialog)
|
* `Shift-Enter`: Launch the application in a terminal (in run dialog)
|
||||||
* `Shift-Enter`: Return the selected entry and move to the next item while keeping Rofi open. (in dmenu)
|
* `Shift-Enter`: Return the selected entry and move to the next item while keeping Rofi open. (in dmenu)
|
||||||
* `?`: Switch to the next modi. The list can be customized with the `-switchers` argument.
|
* `Shift-Right`: Switch to the next modi. The list can be customized with the `-switchers` argument.
|
||||||
* `ctrl-/`: Switch to the previous modi. The list can be customized with the `-switchers` argument.
|
* `Shift-Left`: Switch to the previous modi. The list can be customized with the `-switchers` argument.
|
||||||
* `Ctrl-space`: Set selected item as input text.
|
* `Ctrl-space`: Set selected item as input text.
|
||||||
* `Shift-Del`: Delete entry from history.
|
* `Shift-Del`: Delete entry from history.
|
||||||
* `grave`: Toggle case sensitivity.
|
* `grave`: Toggle case sensitivity.
|
||||||
|
|
22
doc/rofi.1
22
doc/rofi.1
|
@ -252,7 +252,7 @@ menu.
|
||||||
.PP
|
.PP
|
||||||
.RS
|
.RS
|
||||||
.nf
|
.nf
|
||||||
rofi \-fg "#005577"
|
rofi \-hlbg "#005577"
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
.IP
|
.IP
|
||||||
|
@ -265,7 +265,7 @@ menu.
|
||||||
.PP
|
.PP
|
||||||
.RS
|
.RS
|
||||||
.nf
|
.nf
|
||||||
rofi \-fg "#ffffff"
|
rofi \-hlfg "#ffffff"
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
.IP
|
.IP
|
||||||
|
@ -346,7 +346,7 @@ If value is larger then 100, the size is set in pixels. e.g. to span a full hd m
|
||||||
.PP
|
.PP
|
||||||
.RS
|
.RS
|
||||||
.nf
|
.nf
|
||||||
rofi \-width 1980
|
rofi \-width 1920
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
.IP
|
.IP
|
||||||
|
@ -625,9 +625,9 @@ Rofi supports the following keybindings:
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
\fB\fCShift\-Enter\fR: Return the selected entry and move to the next item while keeping Rofi open. (in dmenu)
|
\fB\fCShift\-Enter\fR: Return the selected entry and move to the next item while keeping Rofi open. (in dmenu)
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
\fB\fC?\fR: Switch to the next modi. The list can be customized with the \fB\fC\-switchers\fR argument.
|
\fB\fCShift\-Right\fR: Switch to the next modi. The list can be customized with the \fB\fC\-switchers\fR argument.
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
\fB\fCctrl\-/\fR: Switch to the previous modi. The list can be customized with the \fB\fC\-switchers\fR argument.
|
\fB\fCShift\-Left\fR: Switch to the previous modi. The list can be customized with the \fB\fC\-switchers\fR argument.
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
\fB\fCCtrl\-space\fR: Set selected item as input text.
|
\fB\fCCtrl\-space\fR: Set selected item as input text.
|
||||||
.IP \(bu 2
|
.IP \(bu 2
|
||||||
|
@ -655,18 +655,14 @@ Check quotes used on the commandline: e.g. used “ instead of ".
|
||||||
.SH WEBSITE
|
.SH WEBSITE
|
||||||
.PP
|
.PP
|
||||||
\fBrofi\fP website can be found at here
|
\fBrofi\fP website can be found at here
|
||||||
.UR https://davedavenport.github.io/rofi/
|
\[la]https://davedavenport.github.io/rofi/\[ra]
|
||||||
.UE
|
|
||||||
.PP
|
.PP
|
||||||
\fBrofi\fP bugtracker can be found here
|
\fBrofi\fP bugtracker can be found here
|
||||||
.UR https://github.com/DaveDavenport/rofi/issues
|
\[la]https://github.com/DaveDavenport/rofi/issues\[ra]
|
||||||
.UE
|
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
.PP
|
.PP
|
||||||
Qball Cow
|
Qball Cow
|
||||||
.MT qball@gmpclient.org
|
\[la]qball@gmpclient.org\[ra]
|
||||||
.ME
|
|
||||||
.PP
|
.PP
|
||||||
Original code based on work by: Sean Pringle
|
Original code based on work by: Sean Pringle
|
||||||
.MT sean.pringle@gmail.com
|
\[la]sean.pringle@gmail.com\[ra]
|
||||||
.ME
|
|
||||||
|
|
|
@ -1767,7 +1767,7 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
|
||||||
XA_PRIMARY : netatoms[CLIPBOARD],
|
XA_PRIMARY : netatoms[CLIPBOARD],
|
||||||
netatoms[UTF8_STRING], netatoms[UTF8_STRING], main_window, CurrentTime );
|
netatoms[UTF8_STRING], netatoms[UTF8_STRING], main_window, CurrentTime );
|
||||||
}
|
}
|
||||||
else if ( ( ( ev.xkey.state & ControlMask ) == ControlMask ) && key == XK_slash ) {
|
else if ( ( ( ev.xkey.state & ShiftMask ) == ShiftMask ) && key == XK_Left ) {
|
||||||
state.retv = MENU_PREVIOUS;
|
state.retv = MENU_PREVIOUS;
|
||||||
*( state.selected_line ) = 0;
|
*( state.selected_line ) = 0;
|
||||||
state.quit = TRUE;
|
state.quit = TRUE;
|
||||||
|
@ -1775,7 +1775,7 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
|
||||||
}
|
}
|
||||||
// Menu navigation.
|
// Menu navigation.
|
||||||
else if ( ( ( ev.xkey.state & ShiftMask ) == ShiftMask ) &&
|
else if ( ( ( ev.xkey.state & ShiftMask ) == ShiftMask ) &&
|
||||||
key == XK_slash ) {
|
key == XK_Right ) {
|
||||||
state.retv = MENU_NEXT;
|
state.retv = MENU_NEXT;
|
||||||
*( state.selected_line ) = 0;
|
*( state.selected_line ) = 0;
|
||||||
state.quit = TRUE;
|
state.quit = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue