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

[FileBrowser] Bind kb-delete-entry to toggle show-hidden.

This commit is contained in:
Dave Davenport 2022-10-31 21:28:17 +01:00
parent 62ebb863ed
commit 804eb908bd
3 changed files with 11 additions and 0 deletions

View file

@ -1149,6 +1149,9 @@ configuration {
.fi .fi
.RE .RE
.PP
The \fB\fCshow-hidden\fR can also be triggered with the \fB\fCkb-delete-entry\fR keybinding.
.SS Other .SS Other
.PP .PP
\fB\fC-drun-use-desktop-cache\fR \fB\fC-drun-use-desktop-cache\fR

View file

@ -708,6 +708,8 @@ configuration {
} }
``` ```
The `show-hidden` can also be triggered with the `kb-delete-entry` keybinding.
### Other ### Other
`-drun-use-desktop-cache` `-drun-use-desktop-cache`

View file

@ -523,6 +523,9 @@ static ModeMode file_browser_mode_result(Mode *sw, int mretv, char **input,
retv = RELOAD_DIALOG; retv = RELOAD_DIALOG;
} }
} else if ((mretv & MENU_ENTRY_DELETE) == MENU_ENTRY_DELETE) { } else if ((mretv & MENU_ENTRY_DELETE) == MENU_ENTRY_DELETE) {
file_browser_config.show_hidden = !file_browser_config.show_hidden;
free_list(pd);
get_file_browser(sw);
retv = RELOAD_DIALOG; retv = RELOAD_DIALOG;
} }
return retv; return retv;
@ -678,6 +681,9 @@ ModeMode file_browser_mode_completer(Mode *sw, int mretv, char **input,
g_free(dir); g_free(dir);
retv = RELOAD_DIALOG; retv = RELOAD_DIALOG;
} else if ((mretv & MENU_ENTRY_DELETE) == MENU_ENTRY_DELETE) { } else if ((mretv & MENU_ENTRY_DELETE) == MENU_ENTRY_DELETE) {
file_browser_config.show_hidden = !file_browser_config.show_hidden;
free_list(pd);
get_file_browser(sw);
retv = RELOAD_DIALOG; retv = RELOAD_DIALOG;
} }
return retv; return retv;