Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Dec 1, 2019
1 parent 5f40fd1 commit 9838c9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This plugin allows you to search, copy and paste emojis/symbols.

Additionally you can configure favourites, set the unicode version and enable/disable categories.
Additionally you can configure favourites, set the unicode version, enable/disable categories and add custom emojis.
If you don't have colorful emojis please try the solution from https://github.com/alex1701c/EmojiRunner/issues/1/

### Required Dependencies
Expand Down Expand Up @@ -72,4 +72,10 @@ This way you can search for emojis without search results from other plugins
#### Configure settings
You can search for emojis, set the unicode level (later versions can not be displayed) and you can enable/disable categories
![Search for emojis](https://raw.githubusercontent.com/alex1701c/Screenshots/master/EmojiRunner/config.png)
*The sorting of the favourites inside Krunner does not work as intended, (they are not always sorted by relevance). Help is appreciated!*

#### Add a custom emoji
You must provide a name and and emoji, the description and tags are optional
![Add a custom emoji](https://raw.githubusercontent.com/alex1701c/Screenshots/master/EmojiRunner/enter_custom_emoji.png)
This gets saved in the ~/.local/share/emojirunner/customemojis.json file.
In this file you can also override the existing emojis, but you have to do that manually.
![Custom emojis file](https://raw.githubusercontent.com/alex1701c/Screenshots/master/EmojiRunner/custom_emojis_file.png)
2 changes: 1 addition & 1 deletion src/emojirunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void EmojiRunner::match(Plasma::RunnerContext &context) {
QString search = term;
if (prefixed) {
prefixRegex.indexIn(term);
search = prefixRegex.capturedTexts().at(1);
search = prefixRegex.capturedTexts().at(1).simplified();
}
QList<Plasma::QueryMatch> matches;
if (prefixed && search.isEmpty()) {
Expand Down

0 comments on commit 9838c9f

Please sign in to comment.