marvinkreis/rofi-file-browser-extended

Feature request: quick access custom commands

Opened this issue · 4 comments

Add command line options for mapping commands to kb-custom-1 through kb-cutsom-10 (kb-custom-11+ seem to be reserved for rofi-file-browser-extended operations)

e.g.:

rofi -modi file-browser -show file-browser \
    -file-browser-custom-4 gwenview

And then highlighting a directory and hitting Shift+4 will open Gwenview on that directory.

I think being able to define own commands for open custom is enough to quickly open files with custom commands, and is also less confusing than having to remember multiple key bindings. Do you think this is enough, or is there a use case for which multiple key bindings would be preferable?

I wanted quick access to opening a terminal emulator, a GUI file browser, and a text editor. But at this point is probably just a nice-to-have - saving a few quick-strokes compared to using the custom command.

As for "having to remember multiple key bindings" - if someone takes the trouble to define a custom key binding, they probably use that command quite a lot - so they should be able to remember it.

As for "having to remember multiple key bindings" - if someone takes the trouble to define a custom key binding, they probably use that command quite a lot - so they should be able to remember it.

Yeah, good point.

I'll leave the issue open for now. Maybe I'll implement this sometime down the road.

Hey, just touching base that this feature would be super useful to me. My workflow used to involve Alfred on macOS, which has a feature where when a file is selected, Enter opens the file, and Enter opens the file manager at the directory with the file already selected. I can do this with rofi-file-browser-extended by using the custom command nemo --no-desktop but it'd be really nice to be able to map that custom command to e.g. CtrlEnter.