Skip to content

Commit

Permalink
Clean, rephrase, repurpose!
Browse files Browse the repository at this point in the history
+ added mutant_table.txt to the repo (like preview.txt is in there too)
+ move all the tools (except the main build and install scripts) to ./tools
+ 😜
  • Loading branch information
Zentropivity committed Oct 7, 2024
1 parent f92461c commit 6a8de00
Show file tree
Hide file tree
Showing 8 changed files with 7,845 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
venv
out
mutant-table.txt
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,28 @@ Why? Because its a great emoji font! I want to see them all over my desktop.

First you need to make sure the required tools are installed:

- `nushell` (probably could have made it without, but I like to script using it `¯\_(ツ)_/¯`)
- `nushell` (probably could have made it without, but I like to write nushell scripts `¯\_(ツ)_/¯`)
- `python` (and its virtualenv/venv and pip)
- `git` of course

0. Make sure you have the submodules. Either clone this repo with `--recursive` or do `git submodule update --init`
1. Create a python virtual environment and activate it, like: `python -m venv venv` then source the activation file for your shell (for nushell just run `./pyvenv`)
1. Create a python virtual environment and activate it, like: `python -m venv venv` then source the activation file for your shell (for nushell just run `./tools/pyvenv.nu`)
2. Run `./build_ttf.nu -i cbdt`
this produces the font file in `out/build/MutantStandardEmoji-CBDT.ttf`
(Note: you can build other font formats too, check `./build_ttf.nu -h` or the script for more info)
3. On linux, you could also copy the font and its license to the system fonts by running `sudo ./install.nu`

## Fuzzy finder in the command line!

If you want to be able to fuzzy find specific emoji from the Mutant Standard set, you could try running `export_memoji_codes.nu`
The output text file will have the format of `emoji character` `space` `emoji shortcode` (so a line may be like this: `😸 cat_smile`)
If you want to pick a specific emoji from the Mutant Standard set, take a look at [./mutant_table.txt](./mutant_table.txt) (generated by [tools/export_memoji_codes.nu](tools/export_memoji_codes.nu))

There is an example fuzzy finder *nushell* script (module) using `sk` and `wl-copy` at `./tools/_memoji.nu`
There is an example fuzzy finder script (module) using [skim](https://github.com/lotabout/skim) and [wl-clipboard](https://github.com/bugaevc/wl-clipboard) at [tools/_memoji.nu](./tools/_memoji.nu).
Use it like `use ./tools/_memoji.nu *` then `memoji copy` to pick and copy to clipboard.
It may look like this: (rendering still has to be supported by your terminal in ways...)

![Screenshot_20240929_120700](https://github.com/user-attachments/assets/146ce312-a515-4604-b20d-e1744645709d)

Or if you know you want to touch 3 files named as different emoji, run this after the use: `for $ in 1..3 { memoji | touch $in }`
Or in the extremely likely scenario when you want to touch 3 files named as different emoji, run this after the use: `for $ in 1..3 { memoji | touch $in }`

## License

Expand Down
2 changes: 0 additions & 2 deletions gen_preview.nu

This file was deleted.

Loading

0 comments on commit 6a8de00

Please sign in to comment.