davatorium / rofi

Rofi: A window switcher, application launcher and dmenu replacement
https://davatorium.github.io/rofi/
Other
13.04k stars 609 forks source link

[REQUEST] Switch modes with keyword prefix #1771

Open amithm7 opened 1 year ago

amithm7 commented 1 year ago

Before opening a feature request

What is the user problem or growth opportunity you want to see solved?

Ease of switching enabled rofi modes.

How do you know that this problem exists today? Why is this important?

...

Who will benefit from it?

Users

Rofi version (rofi -v)

1.7.3

Configuration

not needed

Additional information

If multiple modes are enabled

rofi \
    -modi drun \
    -modi window \
    -show drun

I could switch to next mode using keybinding for kb-mode-next, which is Ctrl+Tab for me on Linux.

It would be better if modes could be switched if user types a mode like window: & pressing Space after it would change the mode.

Ref: gh-1770

DaveDavenport commented 1 year ago

Given we have the combi mode I don't see how this is much different. You can type !w or !r to only see window or run mode (less typing even) and filter these further by adding more keywords. If you don't want to see the full unfiltered list of all modes on opening, that is possible (on an up2date rofi).

rofi -show combi -modes combi -combi-modi 'drun,window' -theme-str 'listview {require-input: true; }'

I don't see a reason to implement this (given the extra code it would be to maintain), but a plugin (or patch if maintained) is welcome. Given how rofi works, the best way to do this is clone the combi mode and change the logic.

DaveDavenport commented 1 year ago

duplicate of #746?

amithm7 commented 1 year ago

duplicate of

Maybe, I haven't used Alfred / OSX to know for sure...

but a plugin (or patch if maintained) is welcome

I would like to try that, could you assign me this issue (if that's possible)?

joaomendoncaa commented 11 months ago

Any news on the topic? Would really love to have support for prefixes to run different modes/commands.

Maybe I didn't read enough and that's already a thing, would love some insights into it.

DaveDavenport commented 11 months ago

As mentioned in the manpages and above, you can prefix your query with !mode (or the first characters) to target a certain type if you combine them using the 'combi' mode..

Commenting on an issue 'is there any news on the topic' is pointless and polutes the issue tracker and pings people without providing more information. If there was more information, it would be in the issue.

See the guidelines:

Do NOT ask for an update. Asking does not contribute to solving the issue and just annoys people with a notification. The answer is already available; if there is an update it will be linked/mentioned in the issue, otherwise there is no update.