Feature/Improvement request: Favorites / most used emojis as default
DiggsAsura opened this issue · 4 comments
Hi,
I'm still just an aspiring programmer myself, so can't really put up a pull request or anything.. But Here's a thing I would love to see in this plugin.
Either or:
- Sort after usage (favorites)
and/or - Make lists of favs, which then will be default
I just started using this, so this is coming from very fresh (and very happy!) eyes, after wathing the LInuxCast episode just now.
I'm glad to hear it!
Sadly, since this is a plugin to Rofi instead of a script that wraps Rofi, we're limited to the very small API that Rofi exposes.
For example:
- Rofi tracks history for the app launcher, but only for the app launcher, not for any plugins.
- We're not able to accept any configuration, either runtime through CLI arguments or config files through Rofi.
What we could do is build our own parallell config file to be placed under .config/rofi/rofi-emoji
and use that for certain settings. We could also respond to environment variables instead of CLI arguments in order to toggle some things.
It's all pretty hacky really, and will never be super comfortable to use. I think I would recommend anyone that wants features like this to do so by wrapping Rofi in a script, where this plugin could act as a data source of some sort. Then the only thing that is really required here is probably to make it easier to swap in other Emoji data files.
So, to summarize:
- Your wishlist is not something we can do inside this project realistically.
- We could make this plugin easier to use in a wrapping script.
- Adding wrapping scripts to this repo as a good starting point for people to build their own scripts is workable.
I'll open up an issue detailing what I think this plugin should add to make this easier for people like you. :-)
Thanks to you I had another look through Rofi's header files and found out a lot of features in their Plugin API that I wasn't aware of.
This was the basis for my rework into version 3: #44.
I suspect with the foundation inside there that we could add real "favorites" functionality in the plugin proper, but it's going to be a bit further along.