marvinkreis / rofi-file-browser-extended

Use rofi to quickly open files
MIT License
240 stars 15 forks source link

Feature request: quick access custom commands #18

Open idanarye opened 5 years ago

idanarye commented 5 years ago

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.

marvinkreis commented 4 years ago

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?

idanarye commented 4 years ago

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.

marvinkreis commented 4 years ago

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.

areographe commented 3 years ago

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.