Giter Club home page Giter Club logo

bemoji's People

Contributors

arkadiusz-wieczorek avatar jc00ke avatar laurent2916 avatar marty-oehme avatar nobodyinperson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bemoji's Issues

Where to set the environment variables?

Probably a stupid question, but where do I define the environment variables such as BEMOJI_PICKER_CMD? Is it a config file stored somewhere?

It looks like I should setting the BEMOJI_PICKER_CMD to "fuzzel", but I don't know where.

Make use of new XDG spec for history state

There's a new directory in (XDG) town and it looks like a perfect fit for the emoji history file: XDG_STATE_HOME.

It is intended for basically exactly this:

$XDG_STATE_HOME defines the base directory relative to which user-specific state files should be stored. If $XDG_STATE_HOME is either not set or empty, a default equal to $HOME/.local/state should be used.

More here: https://teddit.net/r/linux/comments/ny34vs/new_xdg_state_home_in_xdg_base_directory_spec/
and here: https://wiki.debian.org/XDGBaseDirectorySpecification#state

One consideration is if it should, by default, still fall back to the old XDG_DATA_HOME directory or break with it and follow the new XDG spec more closely.

[Feature] allow setting skin tone

If your search matches an emoji with skin tones, your results can be spammed with all the skin tone variations of one or two emojis rather than showing you 10 or more different emojis. The result you are looking for may be pushed off the first page by all the skin tone variations.

For example, if you search for red, there are 6 entries for "man with red hair", 6 entries for "woman with red hair" and 6 more for "person with red hair".

If a skin tone could be set on the CLI, there could be only 3 results instead of 18:

bemoji --skin-tone="medium"
  • man: medium skin tone, red hair
  • woman: medium skin tone, red hair
  • person: medium skin tone, red hair

Or, perhaps even cleaner is not mention the skin tone at all when it's given on the CLI, so the results could be simply:

  • man: red hair
  • woman: red hair
  • person: red hair

In this case "man: red hair" would actually show and select "man: medium skin tone, red hair" instead of the generic "man: red hair" emoji.

Release with fuzzel

Could we get an official release with the new fuzzel picker included? That would be awesome ๐Ÿ˜บ

A problem with typing `--delay30` string by xdotool

Hi Marty!

I use bemoji -t with instant typing parameter to paste an emoji character into an active input. I've discovered that xdotool also typing a following string: --delay30:

image

So I decided to fix it, here is my PR: #2

First entry in picker is "No suitable picker tool found."

Having bemenu installed and in my path, running the command bemoji -n, I get "No suitable picker tool found." as the first entry in the picker. Except for that, it works like a charm. All the other entries are actual emoji, and copying them works.

Return 1 if cancelled

This would be helpful for scripting purposes when you abandon selection on Esc. bemenu does so.

Allow list downloading when lists already exist

Currently, once there are lists existing in the bemoji data directory, the program will never download additional lists.
This holds, even if you specifically supply the program with the -D option which tells the program which lists you would like downloaded.

That means, for most people, after running the program once they will not be able to download additional lists and the -D option becomes largely useless.

What would improve usability instead, I believe, would be to change -D into a command switch, akin to -t, -c and -e currently, which starts a download of all lists supplied - no matter the current state of the data directory.

This will allow downloading additional lists at any point and makes the -D switch a little less useless after the initial run.

Ability to limit maximum recent entries

Currently, the complete history of emoji (though only unique entries) is displayed whenever the program is called up with history function.

This is no problem when only the default emoji set is used since matching emoji are removed from the output list.

But if multiple changing and unique emoji sets are used, more and more emoji from those will pile up which might prove to be a problem.

[Feature] Unicode addition in the db

A new argument flag that gives the user a choice to download Unicode characters dictionary from the source (This one can be used).

Having emoji and Unicode together can have conflict so we can have different search patterns to make it easier

e.g normal search results in emoji on top
searching with u:<name> should result in Unicode on top
This can be achieved by adding u: at the start of the Unicode description .txt and for bemenu we can sed it and remove it when the user invokes it.

`noto-fonts-emoji` support ?

I'm not sure if this is only my setup issue but, bemoji outputs empty list. I already have noto-fonts-emoji installed on my arch. I'm using fuzzel btw. Should I do something more ?

LOGS

$[~]$ echo $BEMOJI_PICKER_CMD 
fuzzel --dmenu
$[~]$ bemoji 
info: main.c:1154: version: 1.9.2 +cairo +png +svg(nanosvg) -assertions
info: config.c:1475: loading configuration from /etc/xdg/fuzzel/fuzzel.ini
info: wayland.c:2018: HDMI-A-1: 1920x1080+0x0@60Hz DELL S2216H 21.68" scale=1 PPI=106x108 (physical) PPI=106x108 (logical), DPI=101.60
info: fcft.c:338: fcft: 3.1.6 +graphemes +runs +svg(nanosvg) -assertions
info: fcft.c:377: fontconfig: 2.14.2, freetype: 2.13.2, harfbuzz: 8.3.0, utf8proc: 2.9.0 (Unicode 15.1.0)
info: fcft.c:838: /usr/share/fonts/TTF/iosevka-regular.ttc: size=12.00pt/17px, dpi=101.60
info: main.c:455: theme: hicolor
My fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>

  <!-- settings go here -->

  <!-- Fallback fonts preference order -->
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Noto Sans</family>
      <family>Open Sans</family>
      <family>Droid Sans</family>
      <family>Roboto</family>
    </prefer>
  </alias>
  <alias>
    <family>serif</family>
    <prefer>
      <family>Noto Serif</family>
      <family>Droid Serif</family>
      <family>Roboto Slab</family>
    </prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer>
	  <family>Iosevka</family>
	  <family>Noto Sans Mono</family>
	  <family>Droid Sans Mono</family>
	  <family>Roboto Mono</family>
    </prefer>
  </alias>

</fontconfig>

Fuzzel issue tracker here

Copy and type

How can i copy and type the emoji at the same time ?

Visual artifacts

The bemoji window also flickers but that apparently isn't captured by OBS Studio:

output

Bump to Emoji 15.0

I miss the ๐Ÿชฟ.

And maybe it makes sense to put URLs for both emojis and math symbols at the top as variables, so all hardcoded values are clearly visible and not buried in the code.

Allow user choice of (in-built) picker tool

Currently we allow the user to set a completely custom picker tool (via envvar BEMOJI_PICKER_CMD) or relying on the tool selecting a picker for them from an in-built list.
There is no in-between option for a user to select their picker from the built-in list.

If the BEMOJI_PICKER_CMD first goes through the existing default pickers and chooses the right one and then simply uses the input as-is we could satisfy both conditions.

I.e. BEMOJI_PICKER_CMD=rofi would select rofi from the default, while BEMOJI_PICKER_CMD="mypicker -mode dmenu" directly use the option as command. For that matter, BEMOJI_PICKER_CMD="rofi -dmenu -p EMOJI" would also directly work as command.

While doing this it might make sense to think about allowing this option to be set through a command line option as well.

Changing picker to fuzzel not working

I have changed the picker using the env like this into my .bashrc
export BEMOJI_PICKER_CMD=fuzzel

But now when I try to execute bemoji, the emojis are not being displayed, instead the default fuzzel with the .desktop icons appears

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.