1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Fix alternate separator

This commit is contained in:
Dave Davenport 2017-03-31 20:57:42 +02:00
parent 2953e3cb1f
commit 563dc8dafd
5 changed files with 8 additions and 8 deletions

View file

@ -191,7 +191,7 @@ Example: Have a mode 'Workspaces' using the `i3_switch_workspaces.sh` script:
rofi -modi "window,run,ssh,Workspaces:i3_switch_workspaces.sh" -show Workspaces
Notes: The I3 Window manager does not like commas in the command when specifying an exec command.
For that case '/' can be used as an separator.
For that case '#' can be used as an separator.
`-case-sensitive`
@ -467,7 +467,7 @@ To get one merge view, of window,run,ssh:
rofi -show combi -combi-modi "window,run,ssh" -modi combi
Notes: The I3 Window manager does not like commas in the command when specifying an exec command.
For that case '/' can be used as an separator.
For that case '#' can be used as an separator.
### History and Sorting

View file

@ -1,5 +1,5 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "ROFI\-THEME\-MANPAGE" "" "2017-03-20" "" ""
.TH "ROFI\-THEME\-MANPAGE" "" "March 2017" "" ""

View file

@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "ROFI\-MANPAGE" "" "2017-03-31" "" ""
.TH "ROFI\-MANPAGE" "" "March 2017" "" ""
.
.SH "NAME"
\fBrofi\fR \- A window switcher, application launcher, ssh dialog and dmenu replacement
@ -268,7 +268,7 @@ rofi \-modi "window,run,ssh,Workspaces:i3_switch_workspaces\.sh" \-show Workspac
.IP "" 0
.
.P
Notes: The I3 Window manager does not like commas in the command when specifying an exec command\. For that case \'/\' can be used as an separator\.
Notes: The I3 Window manager does not like commas in the command when specifying an exec command\. For that case \'#\' can be used as an separator\.
.
.P
\fB\-case\-sensitive\fR
@ -712,7 +712,7 @@ rofi \-show combi \-combi\-modi "window,run,ssh" \-modi combi
.IP "" 0
.
.P
Notes: The I3 Window manager does not like commas in the command when specifying an exec command\. For that case \'/\' can be used as an separator\.
Notes: The I3 Window manager does not like commas in the command when specifying an exec command\. For that case \'#\' can be used as an separator\.
.
.SS "History and Sorting"
\fB\-disable\-history\fR \fB\-no\-disable\-history\fR (re\-enable history)

View file

@ -63,7 +63,7 @@ static void combi_mode_parse_switchers ( Mode *sw )
char *savept = NULL;
// Make a copy, as strtok will modify it.
char *switcher_str = g_strdup ( config.combi_modi );
const char * const sep = ",/";
const char * const sep = ",#";
// Split token on ','. This modifies switcher_str.
for ( char *token = strtok_r ( switcher_str, sep, &savept ); token != NULL;
token = strtok_r ( NULL, sep, &savept ) ) {

View file

@ -611,7 +611,7 @@ static int add_mode ( const char * token )
}
static void setup_modi ( void )
{
const char *const sep = ",/";
const char *const sep = ",#";
char *savept = NULL;
// Make a copy, as strtok will modify it.
char *switcher_str = g_strdup ( config.modi );