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

Sort entries when using drun #817

Closed
ghost opened this issue Jun 15, 2018 · 12 comments
Closed

Sort entries when using drun #817

ghost opened this issue Jun 15, 2018 · 12 comments

Comments

@ghost
Copy link

ghost commented Jun 15, 2018

I don't know if this is already possible or if I misunderstood the -drun-match-fields but I'd like to limit the number of .desktop entries in my menu so that I can, for example, only show the .desktop entries with the "Office" category. Is it possible to do this with -show drun or do I need an external script for the job?

Version

1.5.1-dirty (tags/1.5.1)

Configuration

https://paste.ubuntu.com/p/qqFGXJ9ktp/

Launch Command

rofi -disable-history -show drun -theme ~/.cache/wal/colors-rofi-dark.rasi

@ghost ghost changed the title Sort entries when in using drun Sort entries when using drun Jun 15, 2018
@DaveDavenport
Copy link
Collaborator

There is currently no way to pre-filter the list.
You should however be able to type in 'Office' to see the office applications .
(rofi -show drun -filter Office)

@ghost
Copy link
Author

ghost commented Jun 16, 2018

It works for now. Thanks for helping me! You said there is currently no way to do this, but do you plan to eventually add it in the future? There is no urgency, of course

@DaveDavenport
Copy link
Collaborator

Never thought about it. Ill mark it as 'Nice to have'.

@dannycolin
Copy link
Contributor

Indeed that would be nice to have that feature :). Would also be nice to have a widget that show all the categories.

@DaveDavenport
Copy link
Collaborator

@dannycolin Widget? Not sure how you would see this. Can you make a mockup?

@dannycolin
Copy link
Contributor

@DaveDavenport By widget I mean something like in Gnome Shell Activities Overview. As you can see in that screenshot, there's a list a categories on the right that act like buttons.

@DaveDavenport
Copy link
Collaborator

I don't think that fits/works well with rofi.

@dannycolin
Copy link
Contributor

Why not? The sidebar widget that show modes is very similar. You can select a mode and see the active one. We could definitely do something similar with a category-filter widget.

@DaveDavenport
Copy link
Collaborator

because it is very specific to a single mode (the mode selector is not), it won't work with combi mode or full keyboard access (without making mode-specific keybindings).

Anyway I don't see merits in it, other solutions to filter easily on category I would consider.

@dannycolin
Copy link
Contributor

because it is very specific to a single mode (the mode selector is not), it won't work with combi mode or full keyboard access (without making mode-specific keybindings).

Now I see your point and I totally understand (and agree) you want to keep the core code as generic as possible. Thanks for the clarifications.

@DaveDavenport
Copy link
Collaborator

thx for understanding.

@github-actions
Copy link

github-actions bot commented Jun 2, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants