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

Add more functionality to dmenu #56

Open
ericonr opened this issue Jul 9, 2020 · 5 comments
Open

Add more functionality to dmenu #56

ericonr opened this issue Jul 9, 2020 · 5 comments

Comments

@ericonr
Copy link
Contributor

ericonr commented Jul 9, 2020

nwgdmenu could:

  • have a working graphical erase button, the current one doesn't seem to do anything
  • launch the first application in the list if you press return inside the search box
  • have an option for displaying desktop applications (only the titles)
  • have an option for case insensitive search
  • be capable of performing fuzzy matching

What do you think of these ideas?

@nwg-piotr
Copy link
Owner

nwg-piotr commented Jul 9, 2020

have a working graphical erase button, the current one doesn't seem to do anything

It may be impossible: the search entry widget is "read-only" on purpose, see #47 (comment). That's why the Delete key clears the box.

launch the first application in the list if you press return inside the search box

Doable. I did it in sgtk-menu, though some workaround was necessary.

have an option for displaying desktop applications (only the titles)

I wouldn't like dmenu to do this, as it means tons of new code. This needs a regular menu, which in postponed for now. It would be not bad to submit the menu overflow issue somewhere, but I have no idea what the culprit is - sway, wayland itself or gtk3. Could you take a look at the issue?

have an option for case insensitive search

Doable for sure.

be capable of performing fuzzy matching

I'm not sure what you mean. Please tell me more. Alright, Google is your friend. Well, this is intended to be a small and fast application. Fuzzy matching means a lot of sophisticated code and use of dictionaries. So - no, thanks :)

@ericonr
Copy link
Contributor Author

ericonr commented Jul 10, 2020

It may be impossible: the search entry widget is "read-only" on purpose, see #47 (comment). That's why the Delete key clears the box.

I see, that makes sense.

Doable. I did it in sgtk-menu, though some workaround was necessary.

Cool.

Could you take a look at the issue?

Sure! I want to see if I can work the desktop menu stuff from grid into dmenu. If I can accomplish it without much weirdness / duplication, would you be open to accepting it?

Doable for sure.

Great!

Fuzzy matching means a lot of sophisticated code and use of dictionaries. So - no, thanks :)

Fair enough.

Are you working on any of these? I can try my hand at them.

@nwg-piotr
Copy link
Owner

I want to see if I can work the desktop menu stuff from grid into dmenu.

Far not enough. You also need categories list and localized category names. Take a look at https://github.com/nwg-piotr/sgtk-menu/blob/master/sgtk_menu/menu.py. I insist on doing this as a separate program, not a feature of nwgdmenu.

Are you working on any of these? I can try my hand at them.

That's what could be considered before 1.0.0 IMO:

  • launch the first application in the list if you press return inside the search box
  • have an option for case insensitive search

Tell me if you'd like to take care of one of above.

@ericonr
Copy link
Contributor Author

ericonr commented Jul 10, 2020

Far not enough. You also need categories list and localized category names. Take a look at https://github.com/nwg-piotr/sgtk-menu/blob/master/sgtk_menu/menu.py. I insist on doing this as a separate program, not a feature of nwgdmenu.

I see. For my use case I would like to have it as a flat list, no categories or anything. That's why I thought it could be inserted into dmenu. Have you used wofi? It would be similar to that. Do you feel that doesn't fit the project?

I can try my hand at either of those, let me know what you prefer to do!

@nwg-piotr
Copy link
Owner

nwg-piotr commented Jul 10, 2020

Have you used wofi?

A rofi-like menu, which works on Wayland properly, but slowly? Yes, I used it for a short time. I'm not sure if the world is ready for another rofi clone, but this could be included into nwgdmenu under two conditions:

  1. It should not slow nwgdmenu down noticeably.
  2. The menus created from stdin (if any) should comply the json template format.

If you decide to give it a go, I may take care of both minor features mentioned above. For the first one I'll only need to translate some python into C++. The second one is trivial, but requires a hot key and possibly a UI button.

nwg-piotr added a commit that referenced this issue Jul 14, 2020
auto-select 1st line in search results #56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants