Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] Switch modes with keyword prefix #1771

Open
2 tasks done
amithm7 opened this issue Dec 30, 2022 · 5 comments
Open
2 tasks done

[REQUEST] Switch modes with keyword prefix #1771

amithm7 opened this issue Dec 30, 2022 · 5 comments
Assignees

Comments

@amithm7
Copy link
Contributor

amithm7 commented Dec 30, 2022

Before opening a feature request

  • I checked the next branch to see if the feature has already been implemented
  • 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

@DaveDavenport
Copy link
Collaborator

DaveDavenport commented Dec 30, 2022

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
Copy link
Collaborator

duplicate of #746?

@amithm7
Copy link
Contributor Author

amithm7 commented Jan 25, 2023

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

This comment was marked as spam.

@DaveDavenport
Copy link
Collaborator

DaveDavenport commented Oct 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants