rofi icon indicating copy to clipboard operation
rofi copied to clipboard

[REQUEST] Switch modes with keyword prefix

Open amithm7 opened this issue 2 years ago • 5 comments

Before opening a feature request

  • [X] I checked the next branch to see if the feature has already been implemented
  • [X] I searched existing reports to see if it is already requested.

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

amithm7 avatar Dec 30 '22 13:12 amithm7

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 avatar Dec 30 '22 16:12 DaveDavenport

duplicate of #746?

DaveDavenport avatar Jan 24 '23 22:01 DaveDavenport

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)?

amithm7 avatar Jan 25 '23 10:01 amithm7

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.

joaomendoncaa avatar Oct 11 '23 16:10 joaomendoncaa

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.

DaveDavenport avatar Oct 11 '23 17:10 DaveDavenport