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

Improve custom BEMOJI_TYPE_CMD documentation #33

Open
dotaxis opened this issue Apr 21, 2024 · 3 comments
Open

Improve custom BEMOJI_TYPE_CMD documentation #33

dotaxis opened this issue Apr 21, 2024 · 3 comments

Comments

@dotaxis
Copy link

dotaxis commented Apr 21, 2024

Running from the terminal just gives this output. The emoji selector does appear.

bemoji -t
Usage: wtype <text-to-type>

Using keyboard shortcut it shows the emoji selector but then types nothing.

I'm using rofi as my picker.

Not sure when it stopped working but I know it worked a couple of weeks ago.

@marty-oehme
Copy link
Owner

Interesting, as of right now the wtype functionality still works on my end.
Essentially we just invoke wtype -s 30 "the-emoji" on our end.

Did wtype update as of late?
Perhaps the -s switch was renamed? We use it to wait a tiny bit before inputting anything.

Another possible area to investigate could be - are you manually setting the BEMOJI_TYPE_CMD environment variable?
If you are it may not work with wtype since we 'pipe' the result into the custom command but wtype needs it passed as an argument and does not understand pipes. That would also result in such an error message.

@dotaxis
Copy link
Author

dotaxis commented May 7, 2024

I actually was manually setting the BEMOJI_TYPE_CMD env var and unsetting it seems to have solved this issue.

Some further documentation on this would be great but I'm just happy to have it working now. :)

@dotaxis dotaxis closed this as completed May 7, 2024
@marty-oehme
Copy link
Owner

If you don't mind I would reopen this for the time being to figure out a better way to either

  • ensure that we document the behavior better so it is easier to understand how to use the env var
  • or change the way the env var works, though I think that's probably going a bit too deep into refactoring

@marty-oehme marty-oehme reopened this May 7, 2024
@marty-oehme marty-oehme changed the title bemoji -t Not Working With wtype Improve custom BEMOJI_TYPE_CMD documentation May 7, 2024
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